× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Absotively!

I have written some Reasonably flexible CL that allows me to send SSH commands to HMC as well as Storwize, and Fiber switches too (add zones for example). With this you can check things or you could move tape drives or create or start partitions or check who owns the tape drive. The possibilities are literally endless!

Done correctly the output (return from the command) ends up in a file member. You can then simply read that with your favorite language (Mine is CL) and react based on that.

I set my code up to allow for either a single return (e.g. who owns the tape drive) or a list of returns which I send back in a data queue. (e.g. list the WWNs for a partition so I can create the fiber zoning)

Other things I've set up are reaching out to Storwize to start a flash copy or to end a flash copy. Then reaching out to HMC to IPL the partition we just flashed into existence.

I could play with this stuff for days, if I had days.....

- Larry "DrFranken" Bolhuis

www.Frankeni.com
www.iDevCloud.com - Personal Development IBM i timeshare service.
www.iInTheCloud.com - Commercial IBM i Cloud Hosting.

On 12/29/2018 9:39 AM, Joe Pluta wrote:
Okay, now I get to really show my ignorance.  You say "reach out to the HMC".  This seems to imply that a program running on IBM i can execute a command on the HMC. This would make sense, and would be very cool.  I found a document that explains the process in detail, but it does seem to rely heavily on SSH, an area where I'm not exactly an expert.  (I know that's a large field, but be nice, it's the holidays.)

http://www-01.ibm.com/support/docview.wss?uid=nas8N1019126

So, is this document, though a bit long in tooth, still what I need to do?  Because it then opens up some other very important capabilities.



On 12/29/2018 8:20 AM, DrFranken wrote:
HMC available? In the Exit program Holger mentions reach out to the HMC and check the status of each partition.

Run a command like this:

lssyscfg -r lpar -m <your machine name here> -F name,state --filter "lpar_names=<partition name here>"

Note that the --filter can accept multiple names in this format:

--filter \""lpar_names=Giest1,Guest2,Guest3\""

If you ran that for partitions as above you might get one of these responses:

Guest1,Running
Guest2,Not Activated
Guest3,Not Activated

If any are NOT in the 'Not Activated' state then Powering down is a bad idea.

**NOTE* ALL HMC StuFF is CaSe SensiTIVe!

        - Larry "DrFranken" Bolhuis

www.Frankeni.com
www.iDevCloud.com - Personal Development IBM i timeshare service.
www.iInTheCloud.com - Commercial IBM i Cloud Hosting.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.