Its a little hit and miss depending on AIX versions but you can use
lsrsrc IBM.ManagementServer
then nslookup on the IP
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
From the HMC, there's a way to get all the info, using the HMC CLI (and some nifty grep and awk stuff I assume) if you have set up ssh from your LPARs to the HMC.
But try this:
[tt]uname -L[/tt]
...depending on how you named your lpars this may be sufficient to identify on which server any LPAR is running.
2) Finding out what managed system a certain lpar belongs to
for items in `cat /tmp/mansys.lst`
do
ssh HMC -l hscroot "lssyscfg -m $items -r lpar" | awk '{ print $0 }' RS=, | grep name | cut -c6- | grep -w rzvio1 > /dev/null
if [ $? = 0 ];
then
mansys=$items
echo "For rzvio1 the Managed System is $mansys"
fi
done
(Note: rzvio1 is the VIO Server for which I wanted to know the managed system. This also works perfectly if I use an array ( like ${VIO[$j]} ) containing all our VIO servers so it gives me a nice list of which VIO server belongs to to which managed system.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.