<?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 and Environment variables in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/custom-command-and-environment-variables/m-p/3472511#M9362</link>
    <description>Hi &lt;BR /&gt;How can a start/setup a "Custom Command" that run a script with a utility (SC.EXE) that start a stopped NT Service ?&lt;BR /&gt;&lt;BR /&gt;I can't see how to use Environment variables in a batch-script.&lt;BR /&gt;&lt;BR /&gt;Like this:&lt;BR /&gt;&lt;BR /&gt;Set SystemName=%1&lt;BR /&gt;echo %SystemName%&amp;gt;&amp;gt;allSYS-NTServicestopp.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 27 Jan 2005 08:25:06 GMT</pubDate>
    <dc:creator>Roger Pedersen</dc:creator>
    <dc:date>2005-01-27T08:25:06Z</dc:date>
    <item>
      <title>Custom Command and Environment variables</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-and-environment-variables/m-p/3472511#M9362</link>
      <description>Hi &lt;BR /&gt;How can a start/setup a "Custom Command" that run a script with a utility (SC.EXE) that start a stopped NT Service ?&lt;BR /&gt;&lt;BR /&gt;I can't see how to use Environment variables in a batch-script.&lt;BR /&gt;&lt;BR /&gt;Like this:&lt;BR /&gt;&lt;BR /&gt;Set SystemName=%1&lt;BR /&gt;echo %SystemName%&amp;gt;&amp;gt;allSYS-NTServicestopp.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 08:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-and-environment-variables/m-p/3472511#M9362</guid>
      <dc:creator>Roger Pedersen</dc:creator>
      <dc:date>2005-01-27T08:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Command and Environment variables</title>
      <link>https://community.hpe.com/t5/server-management-systems/custom-command-and-environment-variables/m-p/3472512#M9363</link>
      <description>I've not used the variables in Batch scripts, I tend to use perl. See:&lt;BR /&gt;&lt;A href="http://h18004.www1.hp.com/products/servers/management/hpsim/infolibrary.html" target="_blank"&gt;http://h18004.www1.hp.com/products/servers/management/hpsim/infolibrary.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the Help Guide, go to the using default tools section and then the Custom Command. There's a list of the variables passed, plus you can also pass your own.</description>
      <pubDate>Thu, 27 Jan 2005 19:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/custom-command-and-environment-variables/m-p/3472512#M9363</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2005-01-27T19:06:46Z</dc:date>
    </item>
  </channel>
</rss>

