<?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 Custom Command not working as expected. in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/custom-command-not-working-as-expected/m-p/3165811#M508</link>
    <description>Any chance of someone telling me what I might be doing wrong.&lt;BR /&gt;&lt;BR /&gt;I've tried to call a perl script.&lt;BR /&gt;I've set it up under the Custom Commands. &lt;BR /&gt;If I run the perl script manually it works and similar scripts work on our CIM 7 Server.&lt;BR /&gt;&lt;BR /&gt;The script should fire when a Major Event is detected, I trigger that with a generic trap from the HP Agents GUI.&lt;BR /&gt;&lt;BR /&gt;I do not have any Environemt Variables set in the Custom Task, but my understanding is that the standard variables are passed as they are in CIM 7.&lt;BR /&gt;The following is an extract from the mx.log and the perl script follows that.&lt;BR /&gt;&lt;BR /&gt;@!@,2004-01-16 08:59:05 NZDT,JOB,PROGRESS,START,JOB,19433_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-16 08:59:05 NZDT,JOB,PROGRESS,START,JOB,19433_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-16 08:59:10 NZDT,CONFIG,FAILURE,LIST,TASK,IM Major Event _0.0,ERROR,wcc\buxton2r,21,868863417,Rob Buxton&lt;BR /&gt;The name "IM Major Event _0.0" does not represent a object in this system.&lt;BR /&gt;@!@,2004-01-16 08:59:05 NZDT,JOB,FAILURE,DONE,JOB,19433_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;@!@,2004-01-16 08:59:26 NZDT,CONFIG,FAILURE,LIST,TASK,IM Major Event _0.0,ERROR,wcc\buxton2r,21,868863841,Rob Buxton&lt;BR /&gt;The name "IM Major Event _0.0" does not represent a object in this system.&lt;BR /&gt;&lt;BR /&gt;Perl script follows:&lt;BR /&gt;use Env;&lt;BR /&gt;&lt;BR /&gt;open MAILTMP, '&amp;gt;mailmajor.tmp';&lt;BR /&gt;print MAILTMP "$NOTICEPLAINTEXT";&lt;BR /&gt;close MAILTMP;&lt;BR /&gt;&lt;BR /&gt;system "blat mailmajor.tmp -to \"Rob.Buxton\" -subject \"HPSIM - Major Event \" \n";&lt;BR /&gt;#unlink 'mailmajor.tmp';&lt;BR /&gt;close MAILDIST;&lt;BR /&gt;exit;&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Jan 2004 15:46:50 GMT</pubDate>
    <dc:creator>Rob Buxton</dc:creator>
    <dc:date>2004-01-15T15:46:50Z</dc:date>
    <item>
      <title>Custom Command not working as expected.</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-not-working-as-expected/m-p/3165811#M508</link>
      <description>Any chance of someone telling me what I might be doing wrong.&lt;BR /&gt;&lt;BR /&gt;I've tried to call a perl script.&lt;BR /&gt;I've set it up under the Custom Commands. &lt;BR /&gt;If I run the perl script manually it works and similar scripts work on our CIM 7 Server.&lt;BR /&gt;&lt;BR /&gt;The script should fire when a Major Event is detected, I trigger that with a generic trap from the HP Agents GUI.&lt;BR /&gt;&lt;BR /&gt;I do not have any Environemt Variables set in the Custom Task, but my understanding is that the standard variables are passed as they are in CIM 7.&lt;BR /&gt;The following is an extract from the mx.log and the perl script follows that.&lt;BR /&gt;&lt;BR /&gt;@!@,2004-01-16 08:59:05 NZDT,JOB,PROGRESS,START,JOB,19433_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-16 08:59:05 NZDT,JOB,PROGRESS,START,JOB,19433_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-16 08:59:10 NZDT,CONFIG,FAILURE,LIST,TASK,IM Major Event _0.0,ERROR,wcc\buxton2r,21,868863417,Rob Buxton&lt;BR /&gt;The name "IM Major Event _0.0" does not represent a object in this system.&lt;BR /&gt;@!@,2004-01-16 08:59:05 NZDT,JOB,FAILURE,DONE,JOB,19433_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;@!@,2004-01-16 08:59:26 NZDT,CONFIG,FAILURE,LIST,TASK,IM Major Event _0.0,ERROR,wcc\buxton2r,21,868863841,Rob Buxton&lt;BR /&gt;The name "IM Major Event _0.0" does not represent a object in this system.&lt;BR /&gt;&lt;BR /&gt;Perl script follows:&lt;BR /&gt;use Env;&lt;BR /&gt;&lt;BR /&gt;open MAILTMP, '&amp;gt;mailmajor.tmp';&lt;BR /&gt;print MAILTMP "$NOTICEPLAINTEXT";&lt;BR /&gt;close MAILTMP;&lt;BR /&gt;&lt;BR /&gt;system "blat mailmajor.tmp -to \"Rob.Buxton\" -subject \"HPSIM - Major Event \" \n";&lt;BR /&gt;#unlink 'mailmajor.tmp';&lt;BR /&gt;close MAILDIST;&lt;BR /&gt;exit;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jan 2004 15:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-not-working-as-expected/m-p/3165811#M508</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-01-15T15:46:50Z</dc:date>
    </item>
  </channel>
</rss>

