Operating System - Tru64 Unix
1753792 Members
4800 Online
108799 Solutions
New Discussion юеВ

script for sysman to change ip

 
SOLVED
Go to solution
Michael Schulte zur Sur
Honored Contributor

script for sysman to change ip

Hi,

I need a script to change the ip of an alpha server remote using sysman.
I have read man sysman but do not understand the syntax.

thanks,

Michael
6 REPLIES 6
Ralf Puchner
Honored Contributor

Re: script for sysman to change ip

changing it remote will lead to a problem because your network adapter will unavailable during restart... ;-)
Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: script for sysman to change ip

Ralf,

I need a script to run with nohup that changes the ip.

thanks,

Michael
Ralf Puchner
Honored Contributor

Re: script for sysman to change ip

it sounds funny, tell me more....;-)
Help() { FirstReadManual(urgently); Go_to_it;; }
Johan Brusche
Honored Contributor
Solution

Re: script for sysman to change ip

Michael,

sysman SUIT is indeed the complicated way, but what about:

rcmgr set IFCONFIG_0 "new.sys.addr.net netmask 255.255.255.xyz"

grep -v "old.address.net" /etc/hosts > /etc/hosts.tmp
echo "new.sys.addr.net hostname" >> /etc/hosts.tmp
mv /etc/hosts /etc/hosts.bck
mv /etc/hosts.tmp /etc/hosts

/usr/sbin/rcinet restart

_johan_

_JB_
Michael Schulte zur Sur
Honored Contributor

Re: script for sysman to change ip

Johan,

that was a helpful answer indeed.
I wasn't sure, in how many files sysman makes changes.
The only mishap was that it was not interface 0.
But other than that it worked perfectly!

thanks,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: script for sysman to change ip

see last post