{"id":750,"date":"2013-06-25T23:31:11","date_gmt":"2013-06-25T21:31:11","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=750"},"modified":"2018-02-23T09:13:00","modified_gmt":"2018-02-23T08:13:00","slug":"vmware-esxi-a-incomplete-list-of-host-commands-part-3","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/vmware-esxi-a-incomplete-list-of-host-commands-part-3\/","title":{"rendered":"VMware ESXi: A (incomplete) list of host commands Part 3"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_750 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_750')){$('.twoclick_social_bookmarks_post_750').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"VMware%20ESXi%3A%20A%20%28incomplete%29%20list%20of%20host%20commands%20Part%203\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Apart%203%20of%20my%20%28incomplete%29%20list%20of%20the%20esx%20cli.%0D%0A%0D%0AESXi%20Advanced%20Kernel%20Settings%2FParameters%0D%0A%0D%0AGet%20all%0D%0A%0D%0Aesxcli%20system%20settings%20advanced%20list%0D%0A%0D%0ASet%20one%2C%20i.e.%20disable%20the%20shell%20respectively%20ssh%20warnings%0D%0A%0D%0Aesxcli%20system%20settings%20advanced%20set%20-o%20%2FUserVars%2FSuppressShellWarning%20-i%201%0D%0A%0D%0AESXi%20Kernel%20modules%0D%0A%0D%0AList%20loaded%20kernel%20modules%0D%0A%0D%0Avmkload_mod%C2%A0%20-l%0D%0A%0D%0AGet%20a%20list%20of%20all%20enabled%20kernel%20%20...\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/vmware-esxi-a-incomplete-list-of-host-commands-part-3\\\/\",\"post_id\":750,\"post_title_referrer_track\":\"VMware+ESXi%3A+A+%28incomplete%29+list+of+host+commands+Part+3\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>part 3 of my (incomplete) list of the esx cli.<\/p>\n<p><strong>ESXi Advanced Kernel Settings\/Parameters<\/strong><\/p>\n<p>Get all<\/p>\n<p><code>esxcli system settings advanced list<\/code><\/p>\n<p>Set one, i.e. disable the shell respectively ssh warnings<\/p>\n<p><code>esxcli system settings advanced set -o \/UserVars\/SuppressShellWarning -i 1<\/code><\/p>\n<p><strong>ESXi Kernel modules<\/strong><\/p>\n<p>List loaded kernel modules<\/p>\n<p><code>vmkload_mod\u00a0 -l<\/code><\/p>\n<p>Get a list of all enabled kernel modules<\/p>\n<p><code>esxcfg-module -q<\/code><br \/>\n<!--more--><br \/>\nGet parameters of a kernel modul, i.e. an Emulex FC HBA module<\/p>\n<p><code>esxcfg-module -g lpfc820<\/code><\/p>\n<p><code>lpfc820 enabled = 1 options = 'lpfc0_lun_queue_depth=8 lpfc1_lun_queue_depth=8 lpfc2_lun_queue_depth=8 lpfc3_lun_queue_depth=8'<\/code><\/p>\n<p>Set kernel module parameters, also i.e. the Emulex FC HBA module<\/p>\n<p><code>esxcfg-module -s \"lpfc0_lun_queue_depth=8 lpfc1_lun_queue_depth=8 lpfc2_lun_queue_depth=8 lpfc3_lun_queue_depth=8\" lpfc820<\/code><\/p>\n<p>Get info of a module with all possible parameters and a description of each<\/p>\n<p><code>esxcfg-module -i lpfc820<\/code><\/p>\n<p><strong>Storage<\/strong><\/p>\n<p>Get a list of all storage devices<\/p>\n<p><code>esxcli storage filesystem list<\/code><\/p>\n<p>Rename a datastore<\/p>\n<p><code>vim-cmd hostsvc\/datastore\/rename OldName NewName<br \/>\n<\/code><\/p>\n<p>Get a list of all storage pathes<\/p>\n<p><span style=\"font-family: Courier New;\">esxcli storage core path list<\/span><\/p>\n<p>Get storage pathes for a specific drive<\/p>\n<p><span style=\"font-family: Courier New;\">esxcli storage core path list -d\u00a0naa.600000e00d11000000111a2400000000<\/span><\/p>\n<p>Show Storage Array Type and Path selection policies of disk devices<\/p>\n<p><code>esxcli storage nmp device list<\/code><\/p>\n<p>Set Roundrobin(VMW_PSP_RR) path selection policy for a disk device, possible other policies are &#8220;Most recently used&#8221;:VMW_PSP_MRU or &#8220;Fixed&#8221;:VMW_PSP_FIXED<\/p>\n<p><code>esxcli storage nmp device set <code>-P VMW_PSP_RR<\/code> -d naa.600000e00d11000000111a2400020000<br \/>\n<\/code><\/p>\n<p>Stat of the visorfs. <a title=\"VisorFS: A Special-purpose File System for Efficient Handling of System Images\" href=\"http:\/\/labs.vmware.com\/download\/152\/\" target=\"_blank\">Here<\/a> you can find\u00a0 is a detail description of the visorfs(Hypervisor Filesystem).<\/p>\n<p><code>vdf<\/code><\/p>\n<p>Usage of the visorfs<\/p>\n<p><code>vdu<\/code><\/p>\n<p>List all HBAs<\/p>\n<p><code>esxcfg-scsidevs -a<\/code><\/p>\n<p>List all HBAs with the corresponding WWNN and WWPN<\/p>\n<p><code>esxcli storage san fc list<\/code><\/p>\n<p>Reset a HBA and force an fabirc logon<\/p>\n<p><code>esxcli storage san fc reset -A vmhba3<\/code><\/p>\n<p><strong>Host Services<\/strong><\/p>\n<p>Enable ESXi Shell<\/p>\n<p><code>vim-cmd hostsvc\/enable_esx_shell<\/code><\/p>\n<p>Disable ESXi Shell<\/p>\n<p><code>vim-cmd hostsvc\/disable_esx_shell<\/code><\/p>\n<p>Start ESXi Shell<\/p>\n<p><code>vim-cmd hostsvc\/start_esx_shell<\/code><\/p>\n<p>Enable the ssh daemon<\/p>\n<p><code>vim-cmd hostsvc\/enable_ssh<\/code><\/p>\n<p>Disable ssh daemon<br \/>\n<code>vim-cmd hostsvc\/disable_ssh<\/code><\/p>\n<p>Start ssh daemon<\/p>\n<p><code>vim-cmd hostsvc\/start_ssh<\/code><\/p>\n<p>Enter Maintainance mode<\/p>\n<p><code>vim-cmd hostsvc\/maintenance_mode_enter<\/code><\/p>\n<p>Leave Maintanance Mode<\/p>\n<p><code>vim-cmd hostsvc\/maintenance_mode_exit<\/code><\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, part 3 of my (incomplete) list of the esx cli. ESXi Advanced Kernel Settings\/Parameters Get all esxcli system settings advanced list Set one, i.e. disable the shell respectively ssh warnings esxcli system settings advanced set -o \/UserVars\/SuppressShellWarning -i 1 ESXi Kernel modules List loaded kernel modules vmkload_mod\u00a0 -l Get a list of all enabled &hellip; <a href=\"https:\/\/michlstechblog.info\/blog\/vmware-esxi-a-incomplete-list-of-host-commands-part-3\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">VMware ESXi: A (incomplete) list of host commands Part 3<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[206,195,188,196,16,205,208,207,194,14],"class_list":["post-750","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-advanced","tag-cli","tag-command","tag-console","tag-esx","tag-kernel","tag-modules","tag-parameters","tag-ssh","tag-vmware-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=750"}],"version-history":[{"count":22,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/750\/revisions"}],"predecessor-version":[{"id":5240,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/750\/revisions\/5240"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}