Operating System - HP-UX
1821808 Members
3248 Online
109638 Solutions
New Discussion юеВ

Remote Shutdown HP-UX from Windows

 
SOLVED
Go to solution
Patrick Zeitz
Occasional Contributor

Remote Shutdown HP-UX from Windows

Hi all,

i want to shut down all systems via a skript startet from one NT Server.

For Windows Servers i can use a remote shutdown tool from www.sysinternals.com
psshutdown.

Is there maybe a tool wich works under Windows NT to shutdown a HP-UX Server. Today i start a makro, but that's not the best way.

Hope you can help me.
Patrick
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: Remote Shutdown HP-UX from Windows

Hi Patrick,

You can use ops (open proces)axway, but it is NOT a simple tool.

www.axway.com

regards,

Robert-Jan.
John Palmer
Honored Contributor
Solution

Re: Remote Shutdown HP-UX from Windows

The NT resource kit has a 'rsh' facility that allows you to run a remote shell on a UNIX server. If you set this up to run as root then you can issue the 'shutdown' command. You'll have to configure /.rhosts to allow access from your NT server.

Regards,
John

Donald Kok
Respected Contributor

Re: Remote Shutdown HP-UX from Windows

Hi Patrick,

you can add an useraccount shutdown which has as shell /etc/shudown.
This user has to have ID 0 since only root can shutdown a system.

This way you can simplify the passwords for all systems.

Good luck
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
Elif Gius
Valued Contributor

Re: Remote Shutdown HP-UX from Windows

You can use either rsh or ssh ... then you can shutdown the unix system from remote.
Tim Stallman
Advisor

Re: Remote Shutdown HP-UX from Windows

Hi,
I use ssh to reboot systems remotely. You can wrap this up into a script using the authorized_keys file on the unix side (if you use open ssh, other distros are slightly different). Basically the NT side holds the private key and the /.ssh/authorized_keys holds the public key. You will need to append the public key to the end of this file (make SURE you retain 600 as the permissions on authorized_keys). Basically this allows you to log in and reboot the system remotely without giving a typed password, instead you will be using your encryption key as authentication. I have found this to be a good method because using "r" commands passes the password over the network in plain text format. If you need more help with this or an example let me know.

Thx,
Tim
Patrick Zeitz
Occasional Contributor

Re: Remote Shutdown HP-UX from Windows

Hi all,

special thanks for all your helpfull replies!

rsh, is the easiest way to solve my problem.

Tim: thanks for your offer, but special authentication, with public and private keys, is a bit to much, cause i'm the last IT guy in the company, and after my leave our sekretary will maintain our Network.
The hole theme, with authorisation, is too much write work for me in my documention. Well, maybe i come back to you from my next job. Thanks for your offer.

best regards
Patrick