Operating System - HP-UX
1855711 Members
9508 Online
104103 Solutions
New Discussion

S.Guard A.11.19.00 and where to put routes

 
Carme Torca
Super Advisor

S.Guard A.11.19.00 and where to put routes

Hi,

I have this version in one cluster, and I have to add one route in one package:

#route add 177.165.2.14 10.10.0.23

Where I have to put it to do it permanent?

Thanks a lot of!
Carmen.
Users are not too bad ;-)
3 REPLIES 3
Fabio Ettore
Honored Contributor

Re: S.Guard A.11.19.00 and where to put routes

Hi Carmen,

as far as I know you can just add subnet to a SG package, that is into config files of the package. Routes are to be added into the netconf file instead.

Best regards,
Fabio

WISH? IMPROVEMENT!
Carme Torca
Super Advisor

Re: S.Guard A.11.19.00 and where to put routes

Hi,

Yes, but if I put the route in netconf, it doesn't works ok, and I caannot put in the node 2, because the ip 10.10.0.23 is a packages cluster's ip, so if the package is in node 1, I could do route add ... but I cannot do it in node 2, because the ip 10.10.0.23 doesn't exist.

Maybe, I need to put it in one script?

Thanks!
Carmen.
Users are not too bad ;-)
Stephen Doud
Honored Contributor

Re: S.Guard A.11.19.00 and where to put routes

In the legacy package control script, add custom actions to the customer_defined_run_cmds function and customer_defined_halt_cmds function.

In a modular package configuration, you must create an external_script link in the package configuration file to point to a script where you perform custom actions.

Copy /etc/cmcluster/examples/external_script.template to the target filename of the external script and customize it.

For complete instructions, start here in the Managing Serviceguard manual:
http://docs.hp.com/en/B3936-90144/ch04s08.html
and
http://docs.hp.com/en/B3936-90144/ch06s03.html

Or if you have access to the ITRC knowledge-database, use this document:
emr_na-c01987897
TITLE: HPUX Serviceguard - Implementing external scripts in modular packages