change ip via remsh

guys,wanted to ask how tochange IP via remote.
remsh is fine w/ me. but when chaging the ip it doesnt work in remsh.could you please help.

# remsh server1 -l root uname -a
HP-UX server1 B.11.23 U ia64 0618444750 unlimited-user license
#

# remsh server1 -l root ifconfig lan1 10.131.3.95
sh: ifconfig: not found.
#
that is the output :frowning:

i do not have problem in aix, but i also encountered error in HPUX.hope someone could help us :slight_smile:

# remsh server3 useradd
sh: useradd: not found.

# remsh server3 uname -a
HP-UX server3 B.11.11 U 9000/800 scipl3 unlimited-user license

# remsh server3 ifconfig lan1
sh: ifconfig: not found.
#
Could someone explain this to me? Why is it ok to aix? How can i change Ip to hp ux and do administration?

# remsh server2 uname -a
AIX server2 2 5 00382C9C4C00

# remsh server2 ifconfig en0
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD,PSEG,CHAIN>
inet 10.131.3.49 netmask 0xff000000 broadcast 10.255.255.255
inet 10.131.3.46 netmask 0xffffff00 broadcast 10.131.3.255
tcp_sendspace 524288 tcp_recvspace 524288
#
# remsh ondemand02 useradd tester2
3004-689 User "tester2" exists.
# remsh ondemand02 useradd tester6
#

Why is it ok to aix?
Because aix isnt hpux... ( I can remsh and get ipconfig on hpux, but then I know also how hpux works and so would never do such thing...)
How can i change Ip to hp ux and do administration?
Already answered but I will repeat for a last time
In your case ( the knowledge you have shown)
>How can i change Ip to hp ux ===> man set_parms
>do administration? ===> man sam

yeah i know, what i am trying to say, how can i do remote administration? like remote useradd,change IP,lvextend,set_parms etc. via remote..all i can do in remsh to hpux, was just common commands like uname,ls,cat,bdf, no administrative command.

I can do administrative command via remote to aix,solaris. So far linux isnt working for me also.

i know how to do administrative command in hpux using command line or even sam.But how can i do it via remote, i can not find it in sam. What if my master server is AIX box or Solaris, Or Linux. I want to administrative my servers w/ different flavors. I am preparing for DR. I cant administrate the HPUX using my AIX box and linux.

I am restricted to HPUX,

# remsh serverhp useradd tester6
sh: useradd: not found.
# remsh serverhp set_parms
sh: set_parms: not found.
# remsh serverhp swlist
sh: swlist: not found.
# remsh serverhp lvextend
sh: lvextend: not found.
# remsh serverhp uname -a
HP-UX serverhp B.11.11 U 9000/800 scipl3 unlimited-user license
#
# remsh serveraix exportvg
0516-606 exportvg: Volume group name not entered.
Usage: exportvg VGname
Exports the definition of a volume group.
# remsh serveraix useradd tester6
3004-689 User "tester6" exists.
# remsh serveraix uname -a
AIX serveraix 2 5 00382C9C4C00

# remsh serversolaris ifconfig eri0
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.131.7.25 netmask ff000000 broadcast 10.255.255.255
ether 0:3:ba:68:6e:f7
# remsh serversolaris uname -a
SunOS serversolaris 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Blade-100
# remsh serversolaris useradd tester
UX: useradd: ERROR: tester is already in use. Choose another.
# remsh serversolaris pkgadd
pkgadd: ERROR: no packages were found in </var/spool/pkg>
#

Does anyone there knows how to fix hpux and linux box :slight_smile:

Yep, and I hope you understand I dont want to be blamed for corrupted HP servers by giving unsupported solutions and leaving unix.com in a delicate position ...

Im off to Paris (IBM TSM tuition...) next week, so if you agree, I will give you a few thoughts to meditate so you can build up some arguments/solutions/questions etc...
On my return we may discuss about what you think about them and try to elaborate some solution that may satisfy all of us, and perhaps with this approach, others may enter the discussion and construct a great "How To" for the community...

> (1) I am preparing for DR.
> (2) I cant administrate the HPUX using my AIX box and linux.
---
(2) Arent you using X?
If so why cant you open a terminal on all remote box?
its because you want it to be batch?
...
-----------------
(1) What is needed for DR?
a) How are you going to deal with this?
b) ...
-----------------
can i do remote administration?
sam can be configured to to remote administration...
see (2) and my reasons:
I never create a user other by connecting myself to the box, for it gives me the opportunity to go around and check the system...
-----------------
About remsh ( ssh should be prefered...)
What is the difference between (on a HP box):
a) remsh server
b) remsh server cmd
You answer correctly this question and Im sure you will no more ask how to remsh box ifconfig...(and I have said nothing...)

(forgive my english Im trying hard...)

  1. preparing for disaster recovery, We have live IP (production IP) and dr ip.
    so when disaster strike the production server, automatically our DR servers will serve as live. So the IP's in Live server will be used by our DR servers. Its not wise to change 50 different unix flavor DR servers IP's manually. Hope you get what i mean. So i build a script a remote script that will execute changed of IP those server.

  2. No need to use X, the important is you can chnged IP, you can remote administrartion.

-- regarding adduser, its just my sample that i can not adminster in hpux via remote :).

anyway maybe i need to edit somne configuration file or whatsoever, to do remote administration :slight_smile:

thanks dude..