Operating System - HP-UX
1849553 Members
7771 Online
104044 Solutions
New Discussion

Re: remote administration of entrias and envizex

 
SOLVED
Go to solution
Ron Bromwell
Frequent Advisor

remote administration of entrias and envizex

I have about 25 netstations that I need to change the IP for. Is there a way to do this easily through a script or telnet? I was hoping to save some time and not have to change the IP by physically being in front of the netstation. I will also be changing the IP of the file server.

Thanks,
Ron
life's a journey, not a destination
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: remote administration of entrias and envizex

Hopefully, you have set those guys to download IP Address, subnet mask, etc. from bootp. In that case, all you have to do is change the bootp data in /etc/bootptab on yor bootp servers.
If it ain't broke, I can fix that.
Bill McNAMARA_1
Honored Contributor

Re: remote administration of entrias and envizex

for i in $(cat /file)
do
remsh $i get config > /etc/opt/hpxt/xthome/enware2/config/${i}.cfg
echo "save" >> /etc/opt/hpxt/xthome/enware2/config/${i}.cfg
done

i is the ipaddress of the terminal.

Then you can do a global replace of your ip addresses in the config files...

then

remsh $i reconfig

It may require a
remsh $i reboot

then everything should be fine then....
!

PS: I may have forgotten exact commands! wait till alex gets hold of this! he still supports them I guess!

sorry Alex! ;)



It works for me (tm)
Alex Glennie
Honored Contributor

Re: remote administration of entrias and envizex

Hey Ron someone just asked me the same queston in the HP Atlanta RC ?

I think it 's possible Bill M may be able to confirm but you can create a remote config file by running :

remsh xterminal name get config > xterminal_name.cfg. needs to be done in correctly directory see below. eg is for the case of newer xterminals & enware 9.11 aka enware2 s/w

you should be edit the file accordingly ....Ethernet (1) IP Address =15.145.33.24 and instances of

you can use remsh xterminal_name reboot to reboot the xtermial and for the changes to take effect.

you'll also need to make sure the remote cfg file parameter is set correctly
Remote Config File = /opt/hpxt/enware2/config/hpwina24.cfgRemote Config Security = true

lastly you'll need to ensure /etc/hosts reflects the change/ has a valid entry and use xtadm on the file server to make the appropriate changes in the bootptab file before rebooting.



Alex Glennie
Honored Contributor

Re: remote administration of entrias and envizex

Bill I hoped you'd know :)
Bill McNAMARA_1
Honored Contributor
Solution

Re: remote administration of entrias and envizex

Everything Alex suggested should work,
however, I'd recommend using the IP address specifically rather than terminal name.

the config will end up being called:
1.2.3.4.cfg for example.

As also mentioned your bootptab can specify this info, but on config loading the config will override any bootp configuration provided.

I add the save to the end of the config files to ensure the flash is written on every read of the config. This will ensure that when you record the config, modify it, then do the
remsh $i reconfig
that the changes are recorded to file
you can prove it with
remsh $i cat /dev/nonvol | strings

Later,
Bill
It works for me (tm)