<?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 MIB Parameters - Deployment Task in IMC</title>
    <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822056#M2447</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create a deployment configuration task with variables. &amp;nbsp;I want to use a MIB parameter as one of the variables but I can't seem to get it to work. &amp;nbsp;Mainly I want to be able to use the hostname of the device as the value of the variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable in the template using ${hostname}&lt;/P&gt;&lt;P&gt;The deployment task itself has examples for MIB parameters (shown below)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN&gt;2.Input MIB parameter, according with &lt;/SPAN&gt;&lt;SPAN&gt;$(mibName|mibVariable|index)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: $(H3C-SYS-MAN-MIB|h3cSysImageSize|65537) or $(H3C-SYS-MAN-MIB|h3cSysImageSize|@(H3C-SYS-MAN-MIB|h3cSysReloadImage|65536)). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use this MIB parameter as the value of the variable&lt;/P&gt;&lt;P&gt;$(RFC1213-MIB|sysName|0)&lt;/P&gt;&lt;P&gt;However, it does not seem to be attempting to look up the snmp value. &amp;nbsp;When you view the configuration that should contain the variable values it only puts the&amp;nbsp;$(RFC1213-MIB|sysName|0) in the configuration (not the value of what it should be).&lt;/P&gt;&lt;P&gt;Any ideas? &amp;nbsp;Thank you very much for any assistance.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 04:43:10 GMT</pubDate>
    <dc:creator>nryan85</dc:creator>
    <dc:date>2016-01-06T04:43:10Z</dc:date>
    <item>
      <title>MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822056#M2447</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create a deployment configuration task with variables. &amp;nbsp;I want to use a MIB parameter as one of the variables but I can't seem to get it to work. &amp;nbsp;Mainly I want to be able to use the hostname of the device as the value of the variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable in the template using ${hostname}&lt;/P&gt;&lt;P&gt;The deployment task itself has examples for MIB parameters (shown below)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN&gt;2.Input MIB parameter, according with &lt;/SPAN&gt;&lt;SPAN&gt;$(mibName|mibVariable|index)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: $(H3C-SYS-MAN-MIB|h3cSysImageSize|65537) or $(H3C-SYS-MAN-MIB|h3cSysImageSize|@(H3C-SYS-MAN-MIB|h3cSysReloadImage|65536)). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use this MIB parameter as the value of the variable&lt;/P&gt;&lt;P&gt;$(RFC1213-MIB|sysName|0)&lt;/P&gt;&lt;P&gt;However, it does not seem to be attempting to look up the snmp value. &amp;nbsp;When you view the configuration that should contain the variable values it only puts the&amp;nbsp;$(RFC1213-MIB|sysName|0) in the configuration (not the value of what it should be).&lt;/P&gt;&lt;P&gt;Any ideas? &amp;nbsp;Thank you very much for any assistance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 04:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822056#M2447</guid>
      <dc:creator>nryan85</dc:creator>
      <dc:date>2016-01-06T04:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822066#M2448</link>
      <description>&lt;P&gt;Try using "$(SNMPv2-MIB|sysName|0)"&lt;/P&gt;&lt;P&gt;I just did a quick check on my system, without actually deploying the content. It looked OK in the Configuration Content preview.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 06:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822066#M2448</guid>
      <dc:creator>LindsayHill</dc:creator>
      <dc:date>2016-01-06T06:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822130#M2450</link>
      <description>&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;I tried with the suggested changes and I still get the same result. &amp;nbsp;I must be doing somethign wrong?&lt;/P&gt;&lt;P&gt;To test I created a new configuration template that just contains one line in the CLI Script type of template: &amp;nbsp;ping ${pingVar}&lt;/P&gt;&lt;P&gt;I then deployed that template and in the parameters screen I see the pingVar variable. &amp;nbsp;For the value of the variable I put what you suggested: &amp;nbsp;&lt;SPAN&gt;$(SNMPv2-MIB|sysName|0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On the final screen where you can view the configuration, it just shows the this:&lt;/P&gt;&lt;P&gt;ping $(SNMPv2-MIB|sysName|0)^|^&lt;/P&gt;&lt;P&gt;Does it matter that we use SNMPv3 on our devices? &amp;nbsp;I tried changing your MIB name to SNMPv3-MIB just hoping but similar results. &amp;nbsp;I've tried deplying the script to HP switches as well as Cisco routers and results are the same. &amp;nbsp;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822130#M2450</guid>
      <dc:creator>nryan85</dc:creator>
      <dc:date>2016-01-06T11:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822263#M2453</link>
      <description>&lt;P&gt;I think I might know what's going on here. Sounds like you're&amp;nbsp;doing a double-expansion.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1663736"&gt;@nryan85&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;To test I created a new configuration template that just contains one line in the CLI Script type of template: &amp;nbsp;ping ${pingVar}&lt;/P&gt;&lt;P&gt;&amp;lt;snip&amp;gt;&lt;/P&gt;&lt;P&gt;I then deployed that template and in the parameters screen I see the pingVar variable. &amp;nbsp;For the value of the variable I put what you suggested: &amp;nbsp;&lt;SPAN&gt;$(SNMPv2-MIB|sysName|0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Instead of defining a variable, then assigning $(SNMPv2-MIB|sysName|0) to that variable, skip a step. When you define your CLI script, use $(SNMPv2-MIB|sysName|0) there. Note that this means you won't be asked for that variable value when you go to deploy the CLI template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you did want to be able to enter a value for that variable at deployment time (e.g. because sometimes you wanted to enter a specific hostname, not the device hostname), you'll probably need to define a separate CLI template.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1663736"&gt;@nryan85&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Does it matter that we use SNMPv3 on our devices? &amp;nbsp;I tried changing your MIB name to SNMPv3-MIB just hoping but similar results. &amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And no, in this case it doesn't matter that you're using SNMPv3. The "v2" here&amp;nbsp;is a different versioning thing, not related to SNMP v1 vs v2c vs v3. Confusing, yes?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 23:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822263#M2453</guid>
      <dc:creator>LindsayHill</dc:creator>
      <dc:date>2016-01-06T23:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822271#M2456</link>
      <description>&lt;P&gt;Hello Lindsay,&lt;/P&gt;&lt;P&gt;Thanks again for helping.&lt;/P&gt;&lt;P&gt;I actually tried this when I was using the RFC1213-MIB but it didn't work then. &amp;nbsp;I gave it a try again using SNMPv2 as you suggested..so now I just have the single line in the CLI Script configuration template with the command set as "ping $(SNMPv2-MIB|sysName|0)"&lt;/P&gt;&lt;P&gt;Unfortuantly it still doesn't work. &amp;nbsp;After I deploy the template to a device, the final screen with the configuration content it just shows the results as "ping $(SNMPv2-MIB|sysName|0)^|^" &amp;nbsp; without the quotes of course.&lt;/P&gt;&lt;P&gt;Not sure what where I'm going wrong. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 00:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822271#M2456</guid>
      <dc:creator>nryan85</dc:creator>
      <dc:date>2016-01-07T00:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822280#M2457</link>
      <description>&lt;P&gt;These are the steps I went through.&amp;nbsp;I'm using IMC 7.2 running on RHEL 6.x. For test purposes, I'm using a Juniper SRX as the target device, although it doesn't really matter here.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Login to IMC, go to Service -&amp;gt; Configuration Center -&amp;gt; Configuration Templates.&lt;/LI&gt;&lt;LI&gt;Click Add -&amp;gt; Add CLI script&lt;/LI&gt;&lt;LI&gt;Set Template Name to ping.cfg.&lt;/LI&gt;&lt;LI&gt;Click "Select Model" and add all Juniper devices (yes it's more than we need, but it doesn't really matter here)&lt;/LI&gt;&lt;LI&gt;In the "Content" section,&amp;nbsp;set Command to "ping $(SNMPv2-MIB|sysName|0)", leave Response blank. Click OK.&lt;/LI&gt;&lt;LI&gt;Click on "..." to right of ping.cfg, under "Operation" column. Click Deploy.&lt;/LI&gt;&lt;LI&gt;Click Select Device. Select my test SRX (srx01). Leave everything else unchanged, click Next.&lt;/LI&gt;&lt;LI&gt;Click Next again.&lt;/LI&gt;&lt;LI&gt;Now we're at the last screen, and if we click Finish, it will deploy that configuration. Click the icon under "Configuration Content." It shows "ping srx01^|^"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What is the *exact* sequence of steps you're going through?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 02:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822280#M2457</guid>
      <dc:creator>LindsayHill</dc:creator>
      <dc:date>2016-01-07T02:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822283#M2458</link>
      <description>&lt;P&gt;Just re-did everything from your exact steps and still same result. &amp;nbsp;I attached some screenshots to hopefully prove I'm not completely insane. &amp;nbsp;Only difference is I'm on version&amp;nbsp;&lt;SPAN&gt;iMC PLAT 7.1 (E0303P16) hosted on Windows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for taking the time to assist. &amp;nbsp;Maybe I should just update to 7.2 &amp;nbsp;Been meaning to so this just might push me to do it! &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 02:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822283#M2458</guid>
      <dc:creator>nryan85</dc:creator>
      <dc:date>2016-01-07T02:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: MIB Parameters - Deployment Task</title>
      <link>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822292#M2461</link>
      <description>&lt;P&gt;Hmm. Your screenshots look OK. I don't recall seeing anything&amp;nbsp;related to this in the release notes. If you are running UAM, you'll need to stay on 7.1. Otherwise you can go to 7.2. Make sure you've got backups, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/imc/mib-parameters-deployment-task/m-p/6822292#M2461</guid>
      <dc:creator>LindsayHill</dc:creator>
      <dc:date>2016-01-07T04:04:39Z</dc:date>
    </item>
  </channel>
</rss>

