Server Management - Systems Insight Manager
1846907 Members
4308 Online
110256 Solutions
New Discussion

Re: calling External command through SIM event handlers

 
Doug Dollar
Occasional Advisor

calling External command through SIM event handlers

Hello all,

I am configuring a HP SIM Event Handler to run a task that fires an external Command, in this case a batch file. The batch file, when run outside of HP SIM works great.

However, when called from SIM, it fails. Is there a particular permsission or setting to allow this file to be run as part of a task. I was thinking of a Trusted commands directory similar to HPOV? any suggestions would be great.

Thanks,

Doug
5 REPLIES 5
David Claypool
Honored Contributor

Re: calling External command through SIM event handlers

No, there's no such thing as a trusted commands directory. What exactly is happening? Is the batch file being found? Have you tried to stick debugging stuff into the batch file to see what's wrong? Are you able to successfully run one of the commands under Tools like Netstat?
Doug Dollar
Occasional Advisor

Re: calling External command through SIM event handlers

Thanks for the reply! Notepad and other DOS callable commands do not run either. I do get the following error in the STDerr tab:

Unable to contact SSHserver on node [MACHINENAME)

any thoughts?
David Claypool
Honored Contributor

Re: calling External command through SIM event handlers

Is SSH running on that machine? If it's WS03, did the instructions the README get performed?
Doug Dollar
Occasional Advisor

Re: calling External command through SIM event handlers

To tell you the truth I would have to check with the person who built the system on that one.

In lieu of that What are the pre-requisites for running a batch file from SIM? I just want to make sure that I am covering my bases for future installs.

Thanks,

doug
Doug Dollar
Occasional Advisor

Re: calling External command through SIM event handlers

Got it working. SSH is required to call any extrnal command. All is well a this point. I am running HP SIM on the Local Machine Admin account. Is their any issues with running SSH in W2K? The Readme only addresses issues in Win2K3.