Operating System - HP-UX
1832592 Members
3469 Online
110043 Solutions
New Discussion

disable IP address of package by service guard

 
SOLVED
Go to solution
RiclyLeRoy
Frequent Advisor

disable IP address of package by service guard

In Service Guard wih 4 host and multiple package I need to disable one of 2 IP interfaces of 'mypkg' package, so I commented these two lines inside mypkg.cntl file, which is referenced as RUN_SCRIPT into 'mypkg.config'

 

file mypkg.cntl

...

#IP[0]="10.88.66.1 "

#SUBNET[0]="10.88.66.0"

cmcheckconf -P file

 

file mypkg.config

...

RUN_SCRIPT /etc/cmcluster/mypkg/mypkg.cntl

...

 

Then I executed these 2 commands on every host

cmcheckconf -P mypkg.config

cmapplyconf -P mypkg.config

cmhaltpkg mypkg

 

service on mypkg package is not listeneding so It's OK

But by "netstat -in" command, IP address "10.88.66.1" is always present in lan0 interface!

 

ahve you got suggestions ?

 

 

 

 

 

 

2 REPLIES 2
georgek_1
HPE Pro
Solution

Re: disable IP address of package by service guard

Hello RiclyLeRoy,

 

Usually we do not have to run cmcheckconf or cmapplyconf for the modification done to control script (cntl file) of a legacy file.
You need to make sure that the updated control script is copied to all the nodes in cluster which is configured to run the package .

It seems you already commented out the IP address from control file, which would be the reason the IP address still stays up though you have halted the package . Ideally halting the package should bring down / unplumb the IP address associated with it .

You may use the steps given below to remove the VIP (Virtual IP address).
# ifconfig lan0:1 0.0.0.0 up
# ifconfig lan0:1 down
# ifconfig lan0 
NIC won't be showing IP address at this time ,and won't be reported in netstat -in output .

I work for HPE/ I am an HPE Employee (HPE Community)



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Sunitha_Mod
Honored Contributor

Re: disable IP address of package by service guard

Hello @RiclyLeRoy

Let us know if you were able to resolve the issue.

If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.