Use 'for' Loops with the vSphere Management Assistant

The VMware vSphere Management Assistant (vMA) claim to fame is that it has a UNIX shell and the vSphere CLI installed, making it handy for a lot of things, and makes cutting & pasting comands real easy when it’s paired with a decent SSH client. One of my favorite ways to use it is with ‘for’ loops in the shell, to make the same change to all of my ESXi hosts. Let’s say you have a list of servers you want to make a change to, like using esxcli to set the HBA queue depth. My list is a text file I create in nano or vi (see my post on installing nano on the vMA), one host per line: …

Read More

Install the nano Editor on the VMware vMA 5

The VMware vSphere Management Assistant (vMA) is a handy appliance for interacting with your environment via the Linux command line. I use it a lot, and I’m starting to get more of my team to use it. The problem is that it only ships with the vi text editor, which, described politely, is sort of arcane. Being a UNIX guy I’m used to it, but for others that just want to edit a file it’s overkill. For those situations I like nano, a simple open source editor. To install it on the vMA issue the command: sudo zypper install nano If you’re prompted for a password use the one you set for vi-admin (or whoever you’re logged into the vMA …

Read More