<?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 Configuration in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158713#M271</link>
    <description>Tim -&lt;BR /&gt;&lt;BR /&gt;To run custom commands you will need to install openssh on the client or server that's being monitored.</description>
    <pubDate>Fri, 09 Jan 2004 11:08:47 GMT</pubDate>
    <dc:creator>Jadrice Toussaint</dc:creator>
    <dc:date>2004-01-09T11:08:47Z</dc:date>
    <item>
      <title>Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158704#M262</link>
      <description>I am trying to create some custom commands and I am a little confused at the parameters vs. environment variables.  I want to pass in the environment variables from the event (i.e. NOTICERAWDATA) but when I am creating the custom command it prompts me to put a value in for that variable.  It just isn't making sense to me.  Can someone shed some light on this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tim McGue</description>
      <pubDate>Wed, 07 Jan 2004 14:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158704#M262</guid>
      <dc:creator>Tim McGue</dc:creator>
      <dc:date>2004-01-07T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158705#M263</link>
      <description>NOTICERAWDATA is already known to SIM and you do not need to include that. For example,&lt;BR /&gt;&lt;BR /&gt;I need to setup a Variable name for my attention server to allow SIM to known about it. so my Variable name would be ATTNSVR and the Value would be SERVERNAME &amp;lt;-- this is tghe real name of the server.&lt;BR /&gt;&lt;BR /&gt;Parameters are use for the program that you are trying to execute. For example: the parameters for cmd.exe is /C&lt;BR /&gt;&lt;BR /&gt;Hope that shed some light for you.</description>
      <pubDate>Wed, 07 Jan 2004 15:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158705#M263</guid>
      <dc:creator>Jadrice Toussaint</dc:creator>
      <dc:date>2004-01-07T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158706#M264</link>
      <description>I'm starting to get it a little more, but I am still confused.  Let me give an example.  The custom command that I want to run is one to use a paging system that is not available through e-mail or a modem in the system.  I have an .exe that I can run that can take parementers.  I want to pass to that .exe the parameter of NOTICERAWDATA.  How would I perform that?  Would I put NOTICERAWDATA on the parameters line or somehow use it in the environment variables lines?&lt;BR /&gt;&lt;BR /&gt;Thanks Again,&lt;BR /&gt;Tim</description>
      <pubDate>Wed, 07 Jan 2004 15:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158706#M264</guid>
      <dc:creator>Tim McGue</dc:creator>
      <dc:date>2004-01-07T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158707#M265</link>
      <description>OK.It's really simple. Create a batch file that contains your program with parameters and the SIM NOTICERAWDATA variable. then enter that batch file name in the Commands (Executable path and fike name) field. Once you do that, you do not need to specify any parameters since that is included in your batch file or script nor will you need to specify the Variable name since that is also included in the batch file. below is an example of my batch file that I'm running as a custom command.&lt;BR /&gt;&lt;BR /&gt;c:\winnt\system32\attn.exe -a "communications" "&lt;SPELLON&gt; %DEVICENAME% &lt;SPELLOFF&gt; is in a %NOTICESEVERITYSTR% state. %NOTICELABEL%."&lt;BR /&gt;&lt;BR /&gt;notice the SIm Builtin Variables I included them in %% do the same for you batch file.&lt;/SPELLOFF&gt;&lt;/SPELLON&gt;</description>
      <pubDate>Wed, 07 Jan 2004 15:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158707#M265</guid>
      <dc:creator>Jadrice Toussaint</dc:creator>
      <dc:date>2004-01-07T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158708#M266</link>
      <description>Aha,&lt;BR /&gt;&lt;BR /&gt;The light is shining through now.  I get it.  I'm testing it out now.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tim McGue</description>
      <pubDate>Wed, 07 Jan 2004 16:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158708#M266</guid>
      <dc:creator>Tim McGue</dc:creator>
      <dc:date>2004-01-07T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158709#M267</link>
      <description>Jadrice,&lt;BR /&gt;&lt;BR /&gt;I setup the command.  I associated it with all events for all systems.  I have the batch file placing results to a txt file.  I can run the batch file itself.&lt;BR /&gt;&lt;BR /&gt;The problem now is that it never runs from SIM.  The task results shows that it runs and is complete each time it should be called, but my batch file is never called.&lt;BR /&gt;&lt;BR /&gt;Are there any other logs I can look at that would point to why this command is not being called?&lt;BR /&gt;&lt;BR /&gt;Tim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jan 2004 11:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158709#M267</guid>
      <dc:creator>Tim McGue</dc:creator>
      <dc:date>2004-01-08T11:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158710#M268</link>
      <description>Tim -&lt;BR /&gt;&lt;BR /&gt;You will need to do some troubleshooting from your batch file perspective. First make sure that you can actually run that batch file from the command line and that it executes corretly. Second, Do some research on the problem that you are using and make sure that an environment variable for that program is necessary for it to work. you can check that by typing pathi n the command prompt. If an environment variable is necessary, you will need to include that in you batch file as well&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;se my earlier response to you. I had a similar issue and I found out that I was missing the ENV Variable ATTNSERV for the attn.exe program to work look below I pasted the content of one of my batch file that I use for notification through the attention software:&lt;BR /&gt;&lt;BR /&gt;@echo off&lt;BR /&gt;SET ATTNSRV=SERVERNAME&lt;BR /&gt;REM run attn passing the file as a param&lt;BR /&gt;c:\winnt\system32\attn.exe -a "communications" "&lt;SPELLON&gt; %DEVICENAME% &lt;SPELLOFF&gt; is in a %NOTICESEVERITYSTR% state. %NOTICELABEL%."&lt;BR /&gt;&lt;BR /&gt;Notice the line that says SET ATTNSRV=SERVERNAME ? &lt;BR /&gt;That's the variable I had to pass for the batch file to work properly in IM.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPELLOFF&gt;&lt;/SPELLON&gt;</description>
      <pubDate>Thu, 08 Jan 2004 12:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158710#M268</guid>
      <dc:creator>Jadrice Toussaint</dc:creator>
      <dc:date>2004-01-08T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158711#M269</link>
      <description>Thanks again for the information.&lt;BR /&gt;&lt;BR /&gt;Yes, I can run the batch file by itself.  It works correctly and produces the results I expect.&lt;BR /&gt;&lt;BR /&gt;I do not need a system variable for the .exe I am running.&lt;BR /&gt;&lt;BR /&gt;The command says it is completed within IM, but I have no proof or evidence of it actually running.&lt;BR /&gt;&lt;BR /&gt;Are there any other logs or anything going on?  What does it use for security to run the file on the system level?  Do I need to grant specific permissions?&lt;BR /&gt;&lt;BR /&gt;Thanks Again,&lt;BR /&gt;Tim</description>
      <pubDate>Thu, 08 Jan 2004 12:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158711#M269</guid>
      <dc:creator>Tim McGue</dc:creator>
      <dc:date>2004-01-08T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158712#M270</link>
      <description>OK, I tried to eliminate the need for variables all together.  I created a new custom task for c:\winnt\notepad.exe.  I tried to run it.  This time I received a failure (all other said success).  Here is what it says:&lt;BR /&gt;&lt;BR /&gt;EXCEPTION CLASS: com.hp.mx.exceptions.MxFailedAuthenticationException&lt;BR /&gt;EXCEPTION: Authentication failed.&lt;BR /&gt;&lt;BR /&gt;If I remember right from another post these commands are launched with security through OpenSSH.  I only have OpenSSH on the server system, not on any other system.  &lt;BR /&gt;&lt;BR /&gt;Do you have any ideas based upon this error?&lt;BR /&gt;&lt;BR /&gt;Tim&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jan 2004 10:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158712#M270</guid>
      <dc:creator>Tim McGue</dc:creator>
      <dc:date>2004-01-09T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command Configuration</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158713#M271</link>
      <description>Tim -&lt;BR /&gt;&lt;BR /&gt;To run custom commands you will need to install openssh on the client or server that's being monitored.</description>
      <pubDate>Fri, 09 Jan 2004 11:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-configuration/m-p/3158713#M271</guid>
      <dc:creator>Jadrice Toussaint</dc:creator>
      <dc:date>2004-01-09T11:08:47Z</dc:date>
    </item>
  </channel>
</rss>

