<?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 V5 Getting environment variables passed to custom command--Windows in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/v5-getting-environment-variables-passed-to-custom-command/m-p/3631871#M14964</link>
    <description>I am using Tivoli's postemsg command to open TEC events for a SIM event. The following parameters passed work fine:&lt;BR /&gt;&lt;BR /&gt;-S server -r WARNING -m "Test" EVENT EVENT&lt;BR /&gt;&lt;BR /&gt;If I try to pass an environment variable it won't run:&lt;BR /&gt;&lt;BR /&gt;-S server -r WARNING -m "%USERNAME%" EVENT EVENT&lt;BR /&gt;&lt;BR /&gt;postemsg passes environment variables fine at a command prompt so what gives? I've confirmed all variables I need are passed in the environment by first testing the custom command by running set &amp;gt; c:\env.txt. I did not need to specify any variables in the custom command config at all.&lt;BR /&gt;&lt;BR /&gt;Thanks--Drew&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Sep 2005 16:30:23 GMT</pubDate>
    <dc:creator>Andrew Van Order</dc:creator>
    <dc:date>2005-09-21T16:30:23Z</dc:date>
    <item>
      <title>V5 Getting environment variables passed to custom command--Windows</title>
      <link>https://community.hpe.com/t5/server-management-systems/v5-getting-environment-variables-passed-to-custom-command/m-p/3631871#M14964</link>
      <description>I am using Tivoli's postemsg command to open TEC events for a SIM event. The following parameters passed work fine:&lt;BR /&gt;&lt;BR /&gt;-S server -r WARNING -m "Test" EVENT EVENT&lt;BR /&gt;&lt;BR /&gt;If I try to pass an environment variable it won't run:&lt;BR /&gt;&lt;BR /&gt;-S server -r WARNING -m "%USERNAME%" EVENT EVENT&lt;BR /&gt;&lt;BR /&gt;postemsg passes environment variables fine at a command prompt so what gives? I've confirmed all variables I need are passed in the environment by first testing the custom command by running set &amp;gt; c:\env.txt. I did not need to specify any variables in the custom command config at all.&lt;BR /&gt;&lt;BR /&gt;Thanks--Drew&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2005 16:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/v5-getting-environment-variables-passed-to-custom-command/m-p/3631871#M14964</guid>
      <dc:creator>Andrew Van Order</dc:creator>
      <dc:date>2005-09-21T16:30:23Z</dc:date>
    </item>
  </channel>
</rss>

