Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get HMC name from LPAR command line 1

Status
Not open for further replies.

McleanWJM

MIS
Aug 18, 2003
36
US
IF you dont know the HMC name for an lpar you have to search the RSCT log files.

find /var/ct -type file -exec grep -i HscHostName {} /dev/null \;

example output..
/var/ct/567237452/log/mc/IBM.CSMAgentRM/trace:Slot info is [HscName=7315C01*0215BCA;HscIPAddr=10.15.79.137;HscHostName=aig2mc601.infra.boulder.mebs.ihost.com;RMCKey=xxxxxxxxxxxxxxxx;RMCKeyLength=8;HmcStat=1;]



 
lsrsrc can also give you the information (at least the IP address of the HMC)

[tt]lsrsrc IBM.ManagementServer[/tt]


HTH,

p5wizard
 
Have another star p5, always on the ball with a concise solution to what some numpty dreams up as a complex solution to a non-existent problem.
 
just as an fyi, i have a little function in my .profile that does the same thing, only pretty. :)

might find it handy to add if you're in an environment like me with many hmc's.

Code:
[3896][xxxxxx]:/home/jeffq> lshmc
xxxx.com is 10.xxx.xxx.65
xxxx.com is 10.xxx.xxx.66
[3897][xxxxxxx]:/home/jeffq> declare -f lshmc
lshmc ()
{
    for i in `lsrsrc -dx IBM.ManagementServer Hostname|awk -F\" '{print $2}'`;
    do
        host $i 2> /dev/null;
        [ $? != 0 ] && echo $i;
    done
}
[3898][xxxxx]:/home/jeffq>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top