General
cancel
Showing results for 
Search instead for 
Did you mean: 

Service Guard Package IP Query !!

 
Highlighted
Honored Contributor

Service Guard Package IP Query !!

>>> Is there any specific command to check which package is having which relocatable IP ??

# netstat -in only shows the IP and package control file shows the relocatable IP but I like to know which command will help me to find the relocatable IP for running Cluster with more than 2 packages
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
3 REPLIES 3
Highlighted
Honored Contributor

Re: Service Guard Package IP Query !!

Just use:
nslookup packagename


regards,
ivan
Highlighted
Honored Contributor

Re: Service Guard Package IP Query !!

Not very elegant,
but assuming that the package control scripts are held in sync on all your cluster nodes (as common practice foresees)
then you could try parsing them similar to this:

# grep ^IP\\[ /etc/cmcluster/*/*.cntl|sed -e s,/etc/cmcluster/,, -e s,/.*=,\ ,|tr -d \"
Madness, thy name is system administration
Highlighted
Honored Contributor

Re: Service Guard Package IP Query !!

Not possible
"Light travels faster than sound. That's why some people appear bright until you hear them speak."