Server Management - Systems Insight Manager
1834461 Members
2964 Online
110067 Solutions
New Discussion

Re: Automatic server reboots though SIM 4.1

 
Mike Strako
Trusted Contributor

Automatic server reboots though SIM 4.1

Does anyone know how to accomplish automatic reboots of managed server(s) through a scheduled task? Thank you in advance.

Mike.
5 REPLIES 5
David Claypool
Honored Contributor

Re: Automatic server reboots though SIM 4.1

The agents have a remote reboot capability, but since it is done through an insecure SNMP set, we don't generally recommend enabling this. Anyway, HP SIM doesn't provide a way to broadcast this setting.

The easiest and simplest way would be to use the Windows shutdown command. Assuming that you installed SSH on your HP SIM server with an account that has privileges on the remote systems, create a custom command using the Tools menu that looks like this:

shutdown -r -m \\%DEVICENAME%

You can then create a task and associate it with a custom list or individual systems and schedule when it will run.
Mike Strako
Trusted Contributor

Re: Automatic server reboots though SIM 4.1

I have tried using the shutdown command, in the command line of SIM and in a patch file located locally on the SIM server, I.E. c:\bats\restart.bat, it's syntax was shutdown -r -m \\servername. I got the follwing error:

Status: Failed
Exit code: 0
Stdout: None
Stderr: EXCEPTION CLASS: com.sshtools.j2ssh.SshException
EXCEPTION: The SFTP Subsystem could not be initialized

Scott_278
Valued Contributor

Re: Automatic server reboots though SIM 4.1

I ran into this error on Windows 2003 when the OpenSSH service was running under the Local System account. See the SIM readme
Mike Strako
Trusted Contributor

Re: Automatic server reboots though SIM 4.1

How would I change it from local to domain account? Thanks.
Joel Rubenstein
Honored Contributor

Re: Automatic server reboots though SIM 4.1

More information on the setup and troubleshooting of OpenSSH can be found in the whitepaper located at

http://www.hp.com/go/hpsim --> Information Library --> White papers --> Secure Shell (SSH) in HP Systems Insight Manager

See page 16 for Windows 2003 specific configuration.