<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Command execution Problem in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176930#M814</link>
    <description>Rob:&lt;BR /&gt;&lt;BR /&gt;If what I emailed you does the trick, post it here so others can benefit...</description>
    <pubDate>Wed, 28 Jan 2004 19:44:25 GMT</pubDate>
    <dc:creator>David Claypool</dc:creator>
    <dc:date>2004-01-28T19:44:25Z</dc:date>
    <item>
      <title>Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176926#M810</link>
      <description>I'm having trouble getting a custom command to work. I use perl to reformat messages to pass to our Remedy System. This works on IM 7 using the application launch feature but I cannot replicate the job under HPSIM.&lt;BR /&gt;&lt;BR /&gt;The Custom Command has:&lt;BR /&gt;Command = d:\perl\bin\perl&lt;BR /&gt;Parameters = d:\Perl_Scripts\IM_Major_Event.pl&lt;BR /&gt;&lt;BR /&gt;This script should open a file, write the contents of the $NOTICEPLAINTEXT to it, close it and then use blat to e-mail it.&lt;BR /&gt;&lt;BR /&gt;I generate a generic trap and the event appears in HPSIM, a simple e-mail task works. The custom task has fired according to the task schedule but I get no e-mail.&lt;BR /&gt;From the mx.log file I can see:&lt;BR /&gt;NZDT,CONFIG,SUCCESS,START,TASK,44012_aegis.wcc.govt.nz,SUMMARY,wcc\buxton2r,0,158728,Rob Buxton&lt;BR /&gt;@!@,2004-01-29 10:36:09 NZDT,JOB,PROGRESS,START,JOB,44012_aegis.wcc.govt.nz,VERBOSE,wcc\buxton2r,,,&lt;BR /&gt;    Running Tool:IM_perl_Major_event&lt;BR /&gt;    Expanded Command Line:d:\perl\bin\perl d:\Perl_Scripts\IM_Major_Event.pl&lt;BR /&gt;    Targets:&lt;BR /&gt;        aegis.wcc.govt.nz&lt;BR /&gt;    Run As User UID:wcc\buxton2r&lt;BR /&gt;&lt;BR /&gt;@!@,2004-01-29 10:36:09 NZDT,CONFIG,SUCCESS,MODIFY,TASK,Ping Hardware Status Polling,SUMMARY,wcc\buxton2r,0,158729,Rob Buxton&lt;BR /&gt;@!@,2004-01-29 10:36:09 NZDT,CONFIG,SUCCESS,START,TASK,44013_aegis.wcc.govt.nz,SUMMARY,wcc\buxton2r,0,158729,Rob Buxton&lt;BR /&gt;@!@,2004-01-29 10:36:09 NZDT,JOB,PROGRESS,START,JOB,44012_aegis.wcc.govt.nz:aegis.wcc.govt.nz,DETAIL,wcc\buxton2r,,,&lt;BR /&gt;    Running Tool:IM_perl_Major_event&lt;BR /&gt;&lt;BR /&gt;@!@,2004-01-29 10:36:09 NZDT,JOB,FAILURE,DONE,JOB,44012_aegis.wcc.govt.nz:aegis.wcc.govt.nz,ERROR,wcc\buxton2r,,,&lt;BR /&gt;    Running Tool:IM_perl_Major_event&lt;BR /&gt;&lt;BR /&gt;Any help or hints appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2004 16:59:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176926#M810</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-01-28T16:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176927#M811</link>
      <description>Rob:&lt;BR /&gt;&lt;BR /&gt;Maybe you can attach as a file...the formatting is getting confused.&lt;BR /&gt;&lt;BR /&gt;I'm not sure from what you're reporting what portion you suspect it is failing at, firing the task, sucessfully loading Perl and the script or executing the email.&lt;BR /&gt;&lt;BR /&gt;If you echo some log info into a file at the beginning of the perl script, does it show up?</description>
      <pubDate>Wed, 28 Jan 2004 17:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176927#M811</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2004-01-28T17:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176928#M812</link>
      <description>David,&lt;BR /&gt;The task is failing somewhere in the triggering of the custom command if that makes sense.&lt;BR /&gt;HPSIM reports it as having successfully completed.&lt;BR /&gt;&lt;BR /&gt;I'm not deleting the temporary file in the perl script so I should be able to find that. Alas, I can't which leads me to suspect the perl script itself wasn't run. &lt;BR /&gt;&lt;BR /&gt;The only evidence I can find is in the mx.log file for HPSIM.&lt;BR /&gt;There is now just a single entry:&lt;BR /&gt;&lt;BR /&gt;NZDT,CONFIG,SUCCESS,START,TASK,44119_aegis.wcc.govt.nz,SUMMARY,WCC\WCCAdmin,0,159160,&lt;BR /&gt;@!@,2004-01-29 11:53:29 NZDT,CONFIG,SUCCESS,MODIFY,TASK,IM Major Event - perl test,SUMMARY,WCC\WCCAdmin,0,159160,&lt;BR /&gt;&lt;BR /&gt;Following another thread here on SSH, I hadn't set that up as to include me.  And the task was running in my name, so I changed that to use the account HPSIM was set up in (wccadmin listed above).&lt;BR /&gt;I think the errors in the earlier log file may have been from not having myself in the SSH set up?&lt;BR /&gt;&lt;BR /&gt;So, the command is being fired, but I just cannot find evidence it has done anything. If I run the perl script manually it works.&lt;BR /&gt;&lt;BR /&gt;As I said earlier, I've done this using CIM 7, but just can't track where this is dying.</description>
      <pubDate>Wed, 28 Jan 2004 18:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176928#M812</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-01-28T18:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176929#M813</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;Looks as though it's the SSH securrity. I have done some initial testing and it is now firing.&lt;BR /&gt;&lt;BR /&gt;I guess I now need to understand a bit more of what is required in order to set up SSH in order to get this to work for all users, or we just use the admin account that HPSIM was originally installed in.</description>
      <pubDate>Wed, 28 Jan 2004 18:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176929#M813</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-01-28T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176930#M814</link>
      <description>Rob:&lt;BR /&gt;&lt;BR /&gt;If what I emailed you does the trick, post it here so others can benefit...</description>
      <pubDate>Wed, 28 Jan 2004 19:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176930#M814</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2004-01-28T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176931#M815</link>
      <description>This is just a quick follow. This is still proving troublesome and David has been offering some advice and guidance offline from the forum. &lt;BR /&gt;Once I've got an established pattern of cause and efect I'll post here as I believe the issues I'm encountering could well effect others.</description>
      <pubDate>Thu, 29 Jan 2004 16:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176931#M815</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-01-29T16:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command execution Problem</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176932#M816</link>
      <description>This is now working but it only happened after a reinstall of OpenSSH.&lt;BR /&gt;&lt;BR /&gt;And, if like me, you typically use HPSIM under an account other than the account it was installed under, ensure that account is added into OpenSSH's passwd file.&lt;BR /&gt;&lt;BR /&gt;I've no idea what got broken with OpenSSH, but I do know that it's difficult to trace, there's just a gap between the Event Notification saying it has run the Custom Command and nothing coming out of the Custom Command.&lt;BR /&gt;&lt;BR /&gt;It looks as though simple e-mail etc. are run within the CMS Server, but Custom Commands are sent out and back in and run via OpenSSH.</description>
      <pubDate>Tue, 03 Feb 2004 17:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-execution-problem/m-p/3176932#M816</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-02-03T17:36:42Z</dc:date>
    </item>
  </channel>
</rss>

