Languages and Scripting

I need to run remote ioscan in HPUX 11.11

 
Christhian Chamba
Frequent Advisor

I need to run remote ioscan in HPUX 11.11

Hi,
I have 2 servers in a cluster, the first server is CRDHP01 and the second is CRDHP02.

I need run form the server CRDHP02 the following command:
CRDHP02 >remsh CRDHP01 -l root ioscan
sh: ioscan: not found.

But I have this error. I edit the files /.rhosts in the 2 server. I attach this files.

Any ideas for solve this problem.
7 REPLIES 7
Christhian Chamba
Frequent Advisor

Re: I need to run remote ioscan in HPUX 11.11

I attach the .rhosts for the server CRDHP02
James R. Ferguson
Acclaimed Contributor

Re: I need to run remote ioscan in HPUX 11.11

Hi:

Specify the absolute path for 'ioscan':

/sbin/ioscan

By default, the path '/sbin' isn't available to the remote command.

Regards!

...JRF...
Christhian Chamba
Frequent Advisor

Re: I need to run remote ioscan in HPUX 11.11

Hi James,

Thanks for your help, Is possible to configure for the /sbin path is available por remote command???...
James R. Ferguson
Acclaimed Contributor

Re: I need to run remote ioscan in HPUX 11.11

Hi (again):

> Is possible to configure for the /sbin path is available por remote command???...

You are, when you specify the absolute path of your command:

# remsh CRDHP01 -l root /sbin/ioscan

By default, 'remsh' uses the PATH :

/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/contrib/bin:/usr/local/bin

...when executing a remote command. I don't know of any way to modify this for 'remsh'.

Regards!

...JRF...
Christhian Chamba
Frequent Advisor

Re: I need to run remote ioscan in HPUX 11.11

Hi James,
Thanks for your help, I need to run a command sanlun (command for NetApp Storage), in this command this run ioscan but I don't how change the path for the ioscan in this command.
For this case I need to include /sbin path for remote command.
Patrick Wallek
Honored Contributor

Re: I need to run remote ioscan in HPUX 11.11

You should contact NetApp so they can fix the 'sanlun' command to call ioscan with the full path.
Christhian Chamba
Frequent Advisor

Re: I need to run remote ioscan in HPUX 11.11

Hi James/Patrick,
I solve the problem, I create a link for ioscan in the /usr/bin path:

ln -s /sbin/ioscan /usr/bin/ioscan.

Thanks for your help.