{"id":1281,"date":"2017-11-27T14:59:27","date_gmt":"2017-11-27T13:59:27","guid":{"rendered":"http:\/\/blog.purplescreen.fr\/?p=1281"},"modified":"2017-11-27T14:59:27","modified_gmt":"2017-11-27T13:59:27","slug":"starter-guide-ruby-vsphere-console","status":"publish","type":"post","link":"https:\/\/blog.purplescreen.fr\/?p=1281","title":{"rendered":"Starter Guide for Ruby vSphere Console"},"content":{"rendered":"<p>Most peoples don&#8217;t use\u00a0Ruby vSphere\u00a0Console but you could find some features very useful. I think it&#8217;s the best console when you use vSAN. I write this starter guide to help yourself with those features. You can send to me an email if you need more informations.<\/p>\n<p>First, open on SSH to your vCenter server. Then, enter &#8220;RVC&#8221;, you can show all option with &#8211;help option.<\/p>\n<pre>root@vcenterhome [ ~ ]# rvc --help\r\n Install the \"ffi\" gem for better tab completion.\r\n Ruby vSphere Console.\r\n\r\nUsage:\r\n rvc [options] [username[:password]@]hostname\r\n\r\nwhere [options] are:\r\n --path= Initial directory\r\n --create-directory Create the initial directory if it doesn't exist\r\n -c, --cmd= command to evaluate\r\n -s, --script= file to execute\r\n --script-args= arguments to script (default: )\r\n -k, --cookie= authentication cookie file\r\n -q, --quiet silence unnecessary output\r\n -a, --accept-unknown-host add unknown host into list of known hosts automatically\r\n -v, --version Print version and exit\r\n -h, --help Show this message<\/pre>\n<p>Example, if you are connected on your vCenter server. You can enter &#8220;localhost&#8221; with nothing else. After that, you have to enter your password for &#8220;Administrator@vsphere.local&#8221; :<\/p>\n<pre>root@vcenterhome [ ~ ]# rvc\r\nInstall the \"ffi\" gem for better tab completion.\r\nHost to connect to (user@host): <strong><span style=\"text-decoration: underline;\">localhost<\/span><\/strong>\r\n<strong><span style=\"text-decoration: underline;\">Using default username \"administrator@vsphere.local\"<\/span><\/strong>.\r\npassword:\r\n0 \/\r\n1 localhost\/<\/pre>\n<p>Use CD command line with ID to enter in the section that you wish as well as LS command to list all sections. You can show the NameSpace&#8217;s options with TAB button.<\/p>\n<p>All NameSpaces could be show if you enter command HELP as well.<\/p>\n<pre>\/localhost\/home&gt; help\r\nNamespaces:\r\nalarm\r\nbasic\r\ncluster\r\nconnection\r\ncore\r\ndatacenter\r\ndatastore\r\ndevice\r\ndiagnostics\r\nesxcli\r\nfind\r\nhost\r\nissue\r\nmark\r\nperf\r\npermissions\r\nresource_pool\r\nrole\r\nsnapshot\r\nspbm\r\nstatsinterval\r\nsyslog\r\nvds\r\nvim\r\nvm\r\nvm_guest\r\nvmrc\r\nvnc\r\nvsan\r\n<\/pre>\n<p>For example, when you use TAB button for the NameSpace vSAN. You could show all options available for this NameSpace.<\/p>\n<pre>\/vcenterhome.home.local\/home&gt; vsan.\r\nvsan.apply_license_to_cluster\r\nvsan.host_claim_disks_differently\r\nvsan.perf.\r\nvsan.check_limits\r\nvsan.host_consume_disks\r\nvsan.proactive_rebalance\r\nvsan.check_state \r\nvsan.host_evacuate_data\r\nvsan.proactive_rebalance_info\r\nvsan.clear_disks_cache\r\nvsan.host_exit_evacuation\r\nvsan.purge_inaccessible_vswp_objects\r\nvsan.cluster_change_autoclaim\r\nvsan.host_info\r\nvsan.reapply_vsan_vmknic_config\r\nvsan.cluster_info\r\nvsan.host_wipe_non_vsan_disk\r\nvsan.recover_spbm\r\nvsan.cluster_set_default_policy\r\nvsan.host_wipe_vsan_disks\r\nvsan.resync_dashboard\r\nvsan.cmmds_find\r\nvsan.iscsi_target.\r\nvsan.scrubber_info\r\nvsan.disable_vsan_on_cluster\r\nvsan.lldpnetmap\r\nvsan.stretchedcluster.\r\nvsan.disk_object_info\r\nvsan.login_iso_depot\r\nvsan.support_information\r\nvsan.disks_info\r\nvsan.obj_status_report\r\nvsan.upgrade_status\r\nvsan.disks_stats\r\nvsan.object_info\r\nvsan.v2_ondisk_upgrade\r\nvsan.enable_vsan_on_cluster\r\nvsan.object_reconfigure\r\nvsan.vm_object_info\r\nvsan.enter_maintenance_mode\r\nvsan.observer\r\nvsan.vm_perf_stats\r\nvsan.fix_renamed_vms\r\nvsan.observer_process_statsfile\r\nvsan.vmdk_stats\r\nvsan.health.\r\nvsan.ondisk_upgrade\r\nvsan.whatif_host_failures<\/pre>\n<p>Have fun !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most peoples don&#8217;t use\u00a0Ruby vSphere\u00a0Console but you could find some features very useful. I think it&#8217;s the best console when you use vSAN. I write this starter guide to help yourself with those features. You can send to me an email if you need more informations. First, open on SSH to your vCenter server. Then,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,14],"tags":[49,16],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Starter Guide for Ruby vSphere Console - PurpleScreen<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.purplescreen.fr\/?p=1281\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ogosselin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.purplescreen.fr\/?p=1281\",\"url\":\"https:\/\/blog.purplescreen.fr\/?p=1281\",\"name\":\"Starter Guide for Ruby vSphere Console - PurpleScreen\",\"isPartOf\":{\"@id\":\"https:\/\/blog.purplescreen.fr\/#website\"},\"datePublished\":\"2017-11-27T13:59:27+00:00\",\"dateModified\":\"2017-11-27T13:59:27+00:00\",\"author\":{\"@id\":\"https:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.purplescreen.fr\/?p=1281#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.purplescreen.fr\/?p=1281\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.purplescreen.fr\/?p=1281#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.purplescreen.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Starter Guide for Ruby vSphere Console\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.purplescreen.fr\/#website\",\"url\":\"https:\/\/blog.purplescreen.fr\/\",\"name\":\"PurpleScreen\",\"description\":\"by Olivier Gosselin\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.purplescreen.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3\",\"name\":\"ogosselin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.purplescreen.fr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g\",\"caption\":\"ogosselin\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/olivier-gosselin-30090498\/\"],\"url\":\"https:\/\/blog.purplescreen.fr\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Starter Guide for Ruby vSphere Console - PurpleScreen","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.purplescreen.fr\/?p=1281","twitter_misc":{"Written by":"ogosselin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.purplescreen.fr\/?p=1281","url":"https:\/\/blog.purplescreen.fr\/?p=1281","name":"Starter Guide for Ruby vSphere Console - PurpleScreen","isPartOf":{"@id":"https:\/\/blog.purplescreen.fr\/#website"},"datePublished":"2017-11-27T13:59:27+00:00","dateModified":"2017-11-27T13:59:27+00:00","author":{"@id":"https:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3"},"breadcrumb":{"@id":"https:\/\/blog.purplescreen.fr\/?p=1281#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.purplescreen.fr\/?p=1281"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.purplescreen.fr\/?p=1281#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.purplescreen.fr\/"},{"@type":"ListItem","position":2,"name":"Starter Guide for Ruby vSphere Console"}]},{"@type":"WebSite","@id":"https:\/\/blog.purplescreen.fr\/#website","url":"https:\/\/blog.purplescreen.fr\/","name":"PurpleScreen","description":"by Olivier Gosselin","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.purplescreen.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3","name":"ogosselin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.purplescreen.fr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g","caption":"ogosselin"},"sameAs":["https:\/\/www.linkedin.com\/in\/olivier-gosselin-30090498\/"],"url":"https:\/\/blog.purplescreen.fr\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts\/1281"}],"collection":[{"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1281"}],"version-history":[{"count":13,"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts\/1281\/revisions"}],"predecessor-version":[{"id":1294,"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts\/1281\/revisions\/1294"}],"wp:attachment":[{"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}