change ip via remsh


 
Thread Tools Search this Thread
Operating Systems HP-UX change ip via remsh
# 1  
Old 04-01-2008
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 Smilie
# 2  
Old 04-01-2008
i do not have problem in aix, but i also encountered error in HPUX.hope someone could help us Smilie
# 3  
Old 04-09-2008
# 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,P SEG,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
#
# 4  
Old 04-10-2008
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
# 5  
Old 04-10-2008
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 Smilie
# 6  
Old 04-11-2008
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...
# 7  
Old 04-11-2008
> (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...)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remsh

Hello All, I am on HP-UX. Problem is that my remote script behaves different depending on execution method. Method1 (Remote execution): remsh remoteserver /home/myscript.sh Method2 (Local execution): remoteserver :/home#sh myscript.sh In method 2, I can succesfully set timestamp with... (6 Replies)
Discussion started by: mrcrowley
6 Replies

2. UNIX for Advanced & Expert Users

Remsh command

Hi Can any 1 tell me how to use REMSH command with example actually i wanted to run the following command on different severs thru script "df -k .| tail -1 | tr -s ' ' ' ' | cut -d ' ' -f5" :) please reply ASAP.:) (3 Replies)
Discussion started by: maddy_07
3 Replies

3. Shell Programming and Scripting

Remsh

Hi All, Im using remsh to execute shell script on remote server. And this script gets called from another AIX server. My code is: remsh $rHost -l $rUser -n "export JAVA_HOME=/usr/java6_64_SR7; export ORACLE_HOME=/oravl01/oracle/11.1.0.7; export... (3 Replies)
Discussion started by: AB10
3 Replies

4. Shell Programming and Scripting

remsh variables

Hi, I have script. #!/bin/sh -x CD=masterservice remsh 132.196.133.185 -l root './export $CD > test.output' rcp root@132.196.133.185:test.output But I receive the following error. + remsh 132.196.133.185 -l root ./export $CD > test.output To make it work, I remove the ' signs.... (1 Reply)
Discussion started by: mr_andrew
1 Replies

5. UNIX for Dummies Questions & Answers

remsh from HP-UX to Solaris

Hi, I have encountered a problem when I try to issue a remsh command to a remote system (Solaris). I have created the .rhost file in the home directory on the remote system and added the hostname and user. "cat .rhosts 192.168.133.26 root" But when I issue the command from the... (5 Replies)
Discussion started by: mr_andrew
5 Replies

6. Shell Programming and Scripting

how to use remsh to duplicate all...

hi , Any idea how to use remsh to duplicate whatsoever ( / ) from host1 to host2 across network with root? Regards, (0 Replies)
Discussion started by: rauphelhunter
0 Replies

7. Solaris

remsh working one way

host Solaris 5.9 E250 host-name: sunsrv1 remote Solaris 5.8 Netra 250 host_name: sspfs_svr i am able to remsh (or rsh)from remote to host like ; $ remsh sunsrv1 uname -n sunsrv1 but opposite way not possible; # remsh sspfs_svr ls sspfs_svr: Connection refused OR # rsh -l username... (2 Replies)
Discussion started by: xramm
2 Replies

8. UNIX for Dummies Questions & Answers

remsh

i m try to do remsh i need to know what are the step to define the user and password i try .rhosts it give me operator:/export/home/operator>remsh billmed ps -ef permission denied just for testing (3 Replies)
Discussion started by: kazanoova2
3 Replies

9. UNIX for Dummies Questions & Answers

remsh question

Is there a way to execute more than one command on a remote server using remsh? (2 Replies)
Discussion started by: aaareyes
2 Replies

10. UNIX for Dummies Questions & Answers

remsh and nohup

I'm trying to nohup a job that executes a remote shell on another host but it breaks as soon as I launch it, and I get the following back to my terminal. + Stopped (tty input) nohup remsh target_host -l user "ls /proj" This is the command I'm running. nohup remsh target_host -l user "ls... (2 Replies)
Discussion started by: tavaresd
2 Replies
Login or Register to Ask a Question