Running a System command via localhost?

Running a System command via localhost?

Hi, I try to run a batch-file from the server that runs OP Manager.

The batchfile starts a puttylink ssh login and send a reboot command to the linuxbox, running this direct from the Windows CMD prompt works.

@plink -T root@10.0.0.200 -i private_key.ppk sudo /sbin/reboot

In OP Manager I created a notification profile that should run a program, where I entered C:\somedir\reboot_serv1.bat under "Command Name"

4. In OpManager Notification profile, create a "Run Program". Against the "Command Name" provided the absolute path of the batch file "C:\RunBatch.bat" and in the "Program Arguments" provide the simple host name
http://support.opmanager.com/sd/AddSolution.sd?solID=13501

Afterwards I went to the server Notification Profile page and added the new profile with a trigger from a working syslog rule.

But the bat file does not seem to run, so I guess that OP Manager needs something in the batfile, so that it reads and executes the whole line?














                  New to ADSelfService Plus?