- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- start up script help ..
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
01-30-2002 08:08 AM
01-30-2002 08:08 AM
start up script help ..
I have this route add script here that adds routes on start up.The problem is that the
/etc/rc.config.d/static_route
part only holds one route. If I add more then one to the config file it does not add them. I have tried with the []forat
STATIC_ROUTE_DESTINATION[1]
STATIC_ROUTE_DESTINATION[2]
But no luck. Any ideas?
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 08:14 AM
01-30-2002 08:14 AM
Re: start up script help ..
Have you tried adding the routes to the route section of the netconf file?
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 08:18 AM
01-30-2002 08:18 AM
Re: start up script help ..
You can try adding the routes to the /etc/rc.config.d/netconf file. For a complete instruction and syntax, check this out:
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=0a3c99a11344f9a0ef/screen=ckiDisplayDocument?docId=200000053723989
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 08:21 AM
01-30-2002 08:21 AM
Re: start up script help ..
If you are looking for the proper syntax, consider this:
#!/usr/bin/sh
ARY[0]=hello
ARY[1]=richard
echo "${ARY[0]} there ${ARY[1]}"
ARY[0]=date
ARY[1]=hostname
eval ${ARY[0]}
eval ${ARY[1]}
Does this help?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 08:23 AM
01-30-2002 08:23 AM
Re: start up script help ..
Route that you want to be available at boot time should be added in netconf
/etc/rc.config.d/netconf.
Example :-
#
ROUTE_DESTINATION[2]="net 10.8.48.0" # Destination
ROUTE_MASK[2]=255.255.254.0
ROUTE_GATEWAY[2]="192.1.0.239"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""
#
ROUTE_DESTINATION[3]="net 192.1.4.0" # Destination
ROUTE_MASK[3]=255.255.255.0
ROUTE_GATEWAY[3]="192.1.0.250"
ROUTE_COUNT[3]="1"
ROUTE_ARGS[3]=""
Note that they increment up by one for each route. This file is read at boot time and so to add a route on the live server :-
route add - see man route.
And also add it to the netconf file if you want it available after a reboot.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 09:29 AM
01-30-2002 09:29 AM
Re: start up script help ..
I have added to the routes to the netconf file. Now tell me if I am wrong. But the reason I am going this route is because I was told that there are limitations on how many static routes you can add in the netconf file.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 10:20 AM
01-30-2002 10:20 AM
Re: start up script help ..
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 11:23 AM
01-30-2002 11:23 AM
Re: start up script help ..
I don't know about the limit on the number of routes that can be placed in netconf. I do know that it can be helpful to have a script to set your routes. It becomes rather simple to run the script manually should your routing table be zapped or some routes dropped.
Darrell