How to run EZH HMC commands remotely over SSH (Easy HMC Command Line Interface)
brian_s 270002K5X3 Visits (4449)
If you aren't familiar with EZH (the Easy HMC Command Line Interface), check out the EZH
I was recently asked if it is possible to use EZH commands remotely over an SSH connection. For example, say you had a NIM server with SSH keys setup to your HMC, can you run a script on the NIM server that connects to the HMC and then use an EZH command? The answer is YES, it can be done, if you use a SSH command line such as this:
This connects to the HMC, loads the ezh script, and runs the "lparls" ezh command. Note that the quotation mark placement must match the example for this to work.
EZH was first released September 2012 so it has been out for about a year. If you haven't seen it yet, give it a try... If you have any suggestions for how to improve EZH please post a comment or send me an email.