<?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: CLI Script with dynamic variables in IMC</title>
    <link>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6917979#M3366</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can basically build variables with any SNMP object available on your switch.&lt;/P&gt;&lt;P&gt;Obviously the MIB must be loaded in your IMC, and you should know the MIB module name.&lt;/P&gt;&lt;P&gt;The format is $(MIBNAME|objectId|instanceNumber)&lt;/P&gt;&lt;P&gt;p.ex. if you want the systemName, the variable will look like this:&lt;/P&gt;&lt;P&gt;$(RFC1213-MIB|sysName|0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 13:06:32 GMT</pubDate>
    <dc:creator>RPapaux</dc:creator>
    <dc:date>2016-11-16T13:06:32Z</dc:date>
    <item>
      <title>CLI Script with dynamic variables</title>
      <link>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6905618#M3293</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to write&amp;nbsp;a CLI Script with a dynamic variable, depending on which switch is executing the script. For example the device IP address or the current date and time.&lt;/P&gt;&lt;P&gt;Example Code:&lt;/P&gt;&lt;PRE&gt;copy command-output "show tech all" tftp 10.10.10.10 $DEVICE_IP-$DATETIME.txt&lt;/PRE&gt;&lt;P&gt;Unfortunately I can't find a list of variables for CLI scripts. Is it even possible in IMC to do this? I know that it is quite simple in f.e. Solarwinds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 09:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6905618#M3293</guid>
      <dc:creator>Linkk</dc:creator>
      <dc:date>2016-10-07T09:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Script with dynamic variables</title>
      <link>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6917764#M3365</link>
      <description>&lt;P&gt;Would also like to know if there is a list of variables which can be&amp;nbsp;incorporated into the 'Configuration Template' script such as hostname, host IP, Date/Time etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob G.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 22:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6917764#M3365</guid>
      <dc:creator>rgausman</dc:creator>
      <dc:date>2016-11-15T22:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Script with dynamic variables</title>
      <link>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6917979#M3366</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can basically build variables with any SNMP object available on your switch.&lt;/P&gt;&lt;P&gt;Obviously the MIB must be loaded in your IMC, and you should know the MIB module name.&lt;/P&gt;&lt;P&gt;The format is $(MIBNAME|objectId|instanceNumber)&lt;/P&gt;&lt;P&gt;p.ex. if you want the systemName, the variable will look like this:&lt;/P&gt;&lt;P&gt;$(RFC1213-MIB|sysName|0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 13:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/cli-script-with-dynamic-variables/m-p/6917979#M3366</guid>
      <dc:creator>RPapaux</dc:creator>
      <dc:date>2016-11-16T13:06:32Z</dc:date>
    </item>
  </channel>
</rss>

