<?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: adding variable in configuration template in IMC</title>
    <link>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6897380#M3222</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try the following:&lt;/P&gt;&lt;P&gt;1. In the script (ProCurve example)&lt;/P&gt;&lt;P&gt;interface 1&lt;/P&gt;&lt;P&gt;name ${SystemName}_YourSpecifcInterfaceDescription&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;PS: adapt to your appropriate switch syntax.&lt;/P&gt;&lt;P&gt;2. in the workflow:&lt;/P&gt;&lt;P&gt;In the "Enter SystemName" field:&amp;nbsp;&amp;nbsp; $(RFC1213-MIB|sysName|0)&lt;/P&gt;&lt;P&gt;then your SystemName will be added in your interface description.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 11:26:40 GMT</pubDate>
    <dc:creator>RPapaux</dc:creator>
    <dc:date>2016-09-09T11:26:40Z</dc:date>
    <item>
      <title>adding variable in configuration template</title>
      <link>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6896174#M3216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i noticed you can use a variable in the configuration template. &amp;nbsp;But this variable is fixed for all switches you apply the template on.&lt;/P&gt;&lt;P&gt;If for example you want to add a description on a certain port on 20 switches, which contains the name of each individual switch, then it does not seem to be possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 14:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6896174#M3216</guid>
      <dc:creator>pnobels</dc:creator>
      <dc:date>2016-09-06T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: adding variable in configuration template</title>
      <link>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6897256#M3221</link>
      <description>&lt;P&gt;There are some ways of using SNMP variables, which might let you do things like using sysName.&lt;/P&gt;&lt;P&gt;But what's the point in putting the switch name in the interface description? Seems a waste of useful real estate.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 00:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6897256#M3221</guid>
      <dc:creator>LindsayHill</dc:creator>
      <dc:date>2016-09-09T00:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: adding variable in configuration template</title>
      <link>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6897380#M3222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try the following:&lt;/P&gt;&lt;P&gt;1. In the script (ProCurve example)&lt;/P&gt;&lt;P&gt;interface 1&lt;/P&gt;&lt;P&gt;name ${SystemName}_YourSpecifcInterfaceDescription&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;PS: adapt to your appropriate switch syntax.&lt;/P&gt;&lt;P&gt;2. in the workflow:&lt;/P&gt;&lt;P&gt;In the "Enter SystemName" field:&amp;nbsp;&amp;nbsp; $(RFC1213-MIB|sysName|0)&lt;/P&gt;&lt;P&gt;then your SystemName will be added in your interface description.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6897380#M3222</guid>
      <dc:creator>RPapaux</dc:creator>
      <dc:date>2016-09-09T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: adding variable in configuration template</title>
      <link>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6898651#M3233</link>
      <description>&lt;P&gt;I think Rpapaux probably provided the answer I think your after, but wanted to be sure.&amp;nbsp; The first time I read through the post I took it a different way.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;i noticed you can use a variable in the configuration template. &amp;nbsp;But this variable is fixed for all switches you apply the template on.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you place a variable like ${interface 1 desc} in the template, then it will always be "interface 20 desc" everytime you deploy the template, but you can obviously populate it with any value you want.&lt;/P&gt;&lt;P&gt;If you deploy the template to 20 switches it will give you the option to either use the same value for all switches in the deployment task, or to step through each switch so you can provide a different value.&amp;nbsp; On top of that a more recent feature gives you the ability to export a parameter file for the deployment, then import it with the values (or you can just import as long as you follow the required format of the csv).&amp;nbsp; Either way you can provide a different value for the variable on each of the 20 switches.&lt;/P&gt;&lt;P&gt;I'd try the system variable Rpapaux mentioned though.&amp;nbsp; If the sysname is what you're after as the int desc.&amp;nbsp; then that would be less effort than filling in the value for 20 switches.&lt;/P&gt;&lt;P&gt;PL&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 13:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/adding-variable-in-configuration-template/m-p/6898651#M3233</guid>
      <dc:creator>Pack3tL0ss</dc:creator>
      <dc:date>2016-09-14T13:35:02Z</dc:date>
    </item>
  </channel>
</rss>

