- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding persistant route to multiple servers
Operating System - HP-UX
1822320
Members
6144
Online
109642
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2008 04:58 AM
тАО05-13-2008 04:58 AM
Adding persistant route to multiple servers
HP-UX 11.23
I have a ksh script that is to be run across multiple servers. I need to add a persistant route to the servers in runs on. I know I can use the 'route add' command quite easily to add a new route from within the script but how can I make this route permanent across reboots using the same method? Is there any way that avoids complex editing of the netconf file or is this the only way?
Thanks in advance
I have a ksh script that is to be run across multiple servers. I need to add a persistant route to the servers in runs on. I know I can use the 'route add' command quite easily to add a new route from within the script but how can I make this route permanent across reboots using the same method? Is there any way that avoids complex editing of the netconf file or is this the only way?
Thanks in advance
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2008 05:16 AM
тАО05-13-2008 05:16 AM
Re: Adding persistant route to multiple servers
Hi,
With scripting you can do it. But I do not think it is recommended. If something goes worng, then you will lost the remote connectivity of the system invovled. Otherwise, you must have GSP remote access to connect to those systems, if something goes unexpected way.
You could use sed to replace online the file /etc/rc.config.d/netconf. But the MAIN issue will be the lancard instance no. In some cases, it will be [0] or [1], etc.
Regards.
With scripting you can do it. But I do not think it is recommended. If something goes worng, then you will lost the remote connectivity of the system invovled. Otherwise, you must have GSP remote access to connect to those systems, if something goes unexpected way.
You could use sed to replace online the file /etc/rc.config.d/netconf. But the MAIN issue will be the lancard instance no. In some cases, it will be [0] or [1], etc.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 05:15 AM
тАО05-14-2008 05:15 AM
Re: Adding persistant route to multiple servers
If the current gateway address and the new address are same for all the servers, you can do something like this:
sed 's/10.33.27.126/10.33.33.222/g' netconf > newnetcof; mv newnetcof netconf
10.33.27.126 current
10.33.33.222 new
You have to make a backup copy of the netconf file before that.
Rgds.
sed 's/10.33.27.126/10.33.33.222/g' netconf > newnetcof; mv newnetcof netconf
10.33.27.126 current
10.33.33.222 new
You have to make a backup copy of the netconf file before that.
Rgds.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP