- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using set_parms in script
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
07-24-2002 10:24 AM
07-24-2002 10:24 AM
I??m using "set_parms ip_address" to change the IP address of my HP, but I want that a script do it, so I try do something like this as root,create a script called ip.csh with this commands:
set_parms << EOF
10.4.6.45
y
n
EOF
That is the order of the set_parms interaction, first the new IP, then y to confirm and then n to no reboot, then I must reboot it in my script. I did the same to "set_parms hostname" and it did not work.
Any ideas how doing it in a script and in the last line of the script I put the reboot.
Cheers,
Mauro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 10:27 AM
07-24-2002 10:27 AM
Re: Using set_parms in script
The script in the original message was posted wrong, I tried the script :
set_parms ip_address << EOF
10.4.6.45
y
n
EOF
Sorry.
Any ideas ?
Cheers,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 11:56 AM
07-24-2002 11:56 AM
Re: Using set_parms in script
This member has assigned points to 3 of 73 responses to his/her questions.
To find your previous posts click here:
http://forums.itrc.hp.com/cm/TopSolutions/1,,CA745685!1!questions,00.html
The set_parms program is a script, maybe you can accomplish the same thing by copying the code?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 12:24 PM
07-24-2002 12:24 PM
Re: Using set_parms in script
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1e6f84534efbd5118ff40090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 12:57 PM
07-24-2002 12:57 PM
Re: Using set_parms in script
I have two HP machines one is backup of the other, so if one fails I need to change the IP address and the hostname. Doing it the HP machines become the same. When I do it I take the failed out of the network, so there is no IP conflict.
Using a script is the fast way to do this change. Everytime these machines have two know IP address, only change the IP to put the computer "on-line", this way I do not need do reconfigure the clients anf their hosts.
Understand ?
Any ideas ?
P.S: I'm goint to assign points. Sorry.
Cheers,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 01:21 PM
07-24-2002 01:21 PM
Re: Using set_parms in script
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 01:28 PM
07-24-2002 01:28 PM
Re: Using set_parms in script
--Misa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 03:45 PM
07-24-2002 03:45 PM
Re: Using set_parms in script
These two IP address are static, so I will only have these two IP addresses one in each computer. Do you think it a good idea to keep two /etc/rc.config.d/netconf files one as netconf_1 and other as netconf_2, each one using one IP address and hostname and when I want to change the hostname and the IP I just copy the netconf_1 or _2 to netconf ? Then send the command net stop and net start in this order.
It should be done to /etc/hosts too.
It would be easy to implement using a script.
Is this a good idea ?
Regards,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 04:24 PM
07-24-2002 04:24 PM
Re: Using set_parms in script
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 03:43 AM
07-25-2002 03:43 AM
Re: Using set_parms in script
It??s true but I can keep these file in /tmp, for example. If I choose to make a script, how can I do a script to directly modife the netconf ? It is my first idea.
Regards,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 12:05 PM
07-25-2002 12:05 PM
Re: Using set_parms in script
The old UNIX standby is /usr/local; you could make a /usr/local/etc/rc.config.d directory, for example. There are problems with /usr/local, though, including: you take up space in /usr, which tends mostly to be purely what came with the OS (I try to keep it that way for recovery), /usr/local is by default world-writeable (not good), and everyone and their brother would probably try to hack /usr/local. I think /opt/local is a good idea.
Editing netconf: if you're not an experienced programmer, I would handle this very carefully. You might take more time getting it going (after you got the wrong stuff in there and rebooted) than its worth. You might rather do the "cp netconf1 ..." approach. BUT if you want to edit it in place, I tend to like Perl. Others will claim awk or sed is better, or shells. O'Reilly publishing makes excellent books on this type of programming.
What you're doing, basically, is starting to re-invent MC/ServiceGuard. If your management is asking you to do this, suggest ServiceGuard to them. It will require training and/or professional services to implement, however. But it's better than re-inventing the wheel. :)
--Misa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 05:36 AM
07-26-2002 05:36 AM
Re: Using set_parms in script
It??s a good product but I feel like killing an ant with a atomic bomb :-) I don??t need the system on-line everytime, if it has a downtime of 10 minutes it??s great because these machines work fine, I just needed to change the host one time in the last two years. I only want a script because I could teach all the employees that work with these machines to run this script, if not and the on-line machine fail at 11 PM I think I??m going to lost my soccer game in TV and go to the company to make this procedure.
Thanks once more.
Regards,
Mauro