Tuesday, April 5, 2011

Scripts to web publish HMC managed systems configs

2 Quick scripts (shell & expect) to grab configs off HMCs for managed IBM POWER(aix/linux/vio)systems and format them into a html web page.

Will work where no ssh trust exists (ie Where you cant run mkauthkeys -u lpar2rrd -a 'ssh-dss ....' as hscroot)
If ssh trust exists then the script does not need the hmccli expect script

Script renders HTML to stdout so just redirect eg ./$0 > index.htm

Here is an expect script hmccli that it can call

...blogger needs a code tag :(

No comments:

Post a Comment