8 Responses

  1. Juan Manuel
    Juan Manuel at |

    Nice post. On the cat command I suggest to less command instead or pipe the output to less. It will allow you to navigate through the log file using the arrow keys from your keyboard.

    Also tail by default only display the last 10 lines of a file so for search would be better to use:

    – grep

    or

    – cat | grep

    The Shift+PageDown Shift+PageUp tip is useful in a SSH session from Putty or a Linux box (in fact is a Bash feature) but it will not work in a ESXi Shell DCUI session, from the iLO or iDRAC of the server for example.

    Following are also some of my articles about ESXi shell commands, hope you like them 🙂

    – List packages installed in ESXi 4.1 and 5.0: http://jreypo.wordpress.com/2011/10/27/list-packages-installed-in-esxi-4-1-and-5-0/

    – DNS configuration with esxcli: http://jreypo.wordpress.com/2011/10/17/dns-configuration-with-esxcli/

    – Change ESXi hostname with esxcli: http://jreypo.wordpress.com/2011/11/15/change-esxi-5-0-hostname-with-esxcli/

    – List ARP table entries of an ESXi: http://jreypo.wordpress.com/2011/09/13/list-arp-table-entries-of-an-esxi/

    – Change ESXi 5.0 shell keyboard layout with esxcli: http://jreypo.wordpress.com/2011/11/14/change-esxi-5-0-shell-keyboard-layout-with-esxcli/

    – Getting network card driver version in ESXi 5.0 (also useful for other VMkernel modules/drivers): http://jreypo.wordpress.com/2011/11/15/getting-network-card-driver-version-in-esxi-5-0/

    – How to get network connections of an ESXi server: http://jreypo.wordpress.com/2011/08/16/how-to-get-the-network-connections-of-an-esxi/

    – Put ESXi in maintenance mode from TSM using vim-cmd: http://jreypo.wordpress.com/2011/08/17/put-esxi-server-in-maintenance-mode-from-tech-support-mode-using-vim-cmd/

    Again nice work, and hope you like my posts.

    Juanma.

    Reply
  2. Jonathan Frappier
    Jonathan Frappier at |

    Reblogged this on Jonathan Frappier's Blog.

    Reply
  3. Getting to know ESXCLI commands and how to use - Virtualization Tips

    […] to assume that you know how to access the command line or ESXi shell already if not have a read of how to become a Shell Ninja to get you […]

  4. ESX : ESX command line interface (cli) | Hall of Tips

    […] And more […]

  5. jg
    jg at |

    I have to disagree with your use of “ninja” in the title, sir. No reference was made to commands to stop/start/list VMs.

    See also: http://robertbchase.blogspot.com/2008/12/vmware-esxi-ssh-cli-commands.html (I have no affiliation here, just another hit in a Google search)

    Reply
  6. krisiboy
    krisiboy at |

    Nice and useful post.

    Got a query, How to clear the logs entries that shows undet the events tabs in the vpsher client, am connecting to a standalone esxi host

    I tried zeroing all log files /var/logs/ by using command
    > logfilename.log

    still the logs under events tabs wont go, any idea how to remove it

    Reply
  7. Finding Your SAN Bottlenecks with SQLIO – MyWebSketch

    […] useful shell commands http://wahlnetwork.com/2012/08/01/becoming-an-esxi-shell-ninja/ […]

Share your point of view!