Exciting additions to esxcli with 5.1 plus found an oddity with esxicli maintenanceMode.

In esxi4.1 – you can catch the beginnings of esxcli

The name space is greatly expanded en esxi5.0 showing true commitment by VMware to its standardization going forward.

The update in esxi 5.1 is magnificent.  There are 82 commands added; to my joy 47 of them are in the *network* namespace.  We are even greeted with a brand new primary namespace:

esxcli network 5.0 on the left / esxcli network 5.1 on the right:

With the latest update – maintenance mode operations have also been added to esxcli.

esxcli system maintenanceMode get gives you the maintenance status of the host (Enabled or Disabled)

esxcli system maintenanceMode set provides two command options :

esxcli system maintenanceMode set -e -t 30 should theoretically set our host into maintenance mode, and sets the timeout to enter maintenance to 30 seconds.  Oddly enough it doesn’t work.

The command errors stating that the -e option requires a value…

Ran it again with some common sense applied were directions lacking

esxcli system maintenanceMode set -e yes -t 30

And voila! success!

To close the loop, I confirmed the following command removes maintenance mode:

esxcli system maintenanceMode set -e no

On that note – I need to go; more command exploration when I come into some free time.

– Gabe

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s