Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

NCM Device Template Variables - Nodes

$
0
0

I'm modifying this template:

<Configuration-Management Device="MRV LX4000 Term Server" SystemOID=" 1.3.6.1.4.1.33.100.1.2.1.11">

 

to tftp the config file to Orion when the following line is run using the Download button:

 

<Command Name="DownloadConfig" Value="save configuration network ${SysName} 192.168.1.1"/>

 

When I enable session-tracing I see the following command being issued:

 

[8/17/2015 1:33:05 PM] Start detecting command echo in echo buffer...

[8/17/2015 1:33:05 PM] Start check prompt for menu-based device

[8/17/2015 1:33:05 PM] Process Line = <save configuration network ${SysName} 192.168.1.1>

[8/17/2015 1:33:05 PM] Fuzzy match detector start detecting prompt. String1=saveconfigurationnetwork${sysname}192.168.1.1 String2=test2:0>>

[8/17/2015 1:33:05 PM] Pushing back: <save configuration network ${SysName} 192.168.1.1>

[8/17/2015 1:33:05 PM] mPrompt is : <Test2:0 >>>

[8/17/2015 1:33:05 PM] -->

[8/17/2015 1:33:05 PM] --> .

[8/17/2015 1:33:05 PM] --> Characters must be alphanumeric

 

How can I insert the System Name/Hostname/NodeName variable into this command so that the name of the file sent via tftp is based on the SystemName?

 

I tested the template functionality by replacing the ${SysName} with "Test2NCM" & it does upload the config using that as the filename.

Obviously I can't use the same filename for all my MRV termservers....


Viewing all articles
Browse latest Browse all 8827

Trending Articles