<?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 Windows 2003 Command fails with exit code 255 in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242791#M2361</link>
    <description>I'm trying to run a custom command (I've tried everything from simply bat files that create a local dir to the integrated windows 'dir') - all exit as sucessful with a code of 255.  I even wrote a simple bat that did nothing but exit with a code of 10 - it still reported it ran 'sucessfully' with a code of 255. They are not sucessful. Nothing has ever happened, it is quite obvious they are not running.&lt;BR /&gt;&lt;BR /&gt;I've reproduced on 3 different servers (DL380G3, DL360G2, BL20PG2).&lt;BR /&gt;&lt;BR /&gt;I've logged into the ssh server:&lt;BR /&gt;ssh administrator@servername&lt;BR /&gt;and all looks good.&lt;BR /&gt;&lt;BR /&gt;I've run mxagentconfig -a -u -p and it registers sucessfully.&lt;BR /&gt;&lt;BR /&gt;I'm running under the same account (administrator) that installed SIM. I've tried various configs with SQL or the MSDE - all the same.&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;Thanks,&lt;BR /&gt;Mike</description>
    <pubDate>Wed, 07 Apr 2004 13:00:33 GMT</pubDate>
    <dc:creator>Michael Sheehan</dc:creator>
    <dc:date>2004-04-07T13:00:33Z</dc:date>
    <item>
      <title>Windows 2003 Command fails with exit code 255</title>
      <link>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242791#M2361</link>
      <description>I'm trying to run a custom command (I've tried everything from simply bat files that create a local dir to the integrated windows 'dir') - all exit as sucessful with a code of 255.  I even wrote a simple bat that did nothing but exit with a code of 10 - it still reported it ran 'sucessfully' with a code of 255. They are not sucessful. Nothing has ever happened, it is quite obvious they are not running.&lt;BR /&gt;&lt;BR /&gt;I've reproduced on 3 different servers (DL380G3, DL360G2, BL20PG2).&lt;BR /&gt;&lt;BR /&gt;I've logged into the ssh server:&lt;BR /&gt;ssh administrator@servername&lt;BR /&gt;and all looks good.&lt;BR /&gt;&lt;BR /&gt;I've run mxagentconfig -a -u -p and it registers sucessfully.&lt;BR /&gt;&lt;BR /&gt;I'm running under the same account (administrator) that installed SIM. I've tried various configs with SQL or the MSDE - all the same.&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;Thanks,&lt;BR /&gt;Mike</description>
      <pubDate>Wed, 07 Apr 2004 13:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242791#M2361</guid>
      <dc:creator>Michael Sheehan</dc:creator>
      <dc:date>2004-04-07T13:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2003 Command fails with exit code 255</title>
      <link>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242792#M2362</link>
      <description>To be clear, if you have created this with the 'Custom Commands' menu options, the only place this is executing is on the hpSIM central management server (CMS) itself.  The effect of naming one or more non-CMS targets is to get the task to iterate for each target while substituting the name of the target into the DEVICENAME variable.&lt;BR /&gt;&lt;BR /&gt;mxagentconfig distributes keys to instances of SSH; as your target is not being used to run anything, this has no effect.  If OpenSSH on the CMS was not properly trusted (hopefully you followed the directions in the README) then you would be getting &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;&lt;BR /&gt;SQL Server/MSDE have nothing to do with this functionality.&lt;BR /&gt;&lt;BR /&gt;Do any of the out-of-box supplied custom commands work, like &lt;BR /&gt;&lt;BR /&gt;Tools --&amp;gt; Command Line Tools --&amp;gt; Windows --&amp;gt; netstat&lt;BR /&gt;&lt;BR /&gt;work properly when executed against the CMS?  What if your .bat file contained the statement&lt;BR /&gt;&lt;BR /&gt;echo test &amp;gt;c:\test&lt;BR /&gt;&lt;BR /&gt;...would it write the file (evidence that it is executing)?</description>
      <pubDate>Wed, 07 Apr 2004 15:02:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242792#M2362</guid>
      <dc:creator>David Claypool</dc:creator>
      <dc:date>2004-04-07T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2003 Command fails with exit code 255</title>
      <link>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242793#M2363</link>
      <description>&lt;BR /&gt;All of the commands (dir, netstat) exit with 255 and no stdout or stderr.&lt;BR /&gt;&lt;BR /&gt;test.bat has consisted of various commands:&lt;BR /&gt;&lt;BR /&gt;exit 10&lt;BR /&gt;or&lt;BR /&gt;md test&lt;BR /&gt;or&lt;BR /&gt;echo &amp;gt;test.txt&lt;BR /&gt;&lt;BR /&gt;Overall, I've had LOTS of problems with the installation. I'm running about 6 instances right now (windows 2000 / windows 2003), most of which have been formatted 3 or 4 times. I've found (reproducible) that uninstalling and reinstalling causes problems when creating the database (after uninstalling everything including SQL/MSDE).&lt;BR /&gt;&lt;BR /&gt;Is there some DB configuration I need to do?&lt;BR /&gt;&lt;BR /&gt;All servers were built with RDP 1.50 / SS7.0&lt;BR /&gt;&lt;BR /&gt;-Mike&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2004 07:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/windows-2003-command-fails-with-exit-code-255/m-p/3242793#M2363</guid>
      <dc:creator>Michael Sheehan</dc:creator>
      <dc:date>2004-04-08T07:43:50Z</dc:date>
    </item>
  </channel>
</rss>

