ConfD User Community

Show running config displays in new line for each element


#1

The sample show running-config for a MIB displays as follows

SNMP-TARGET-MIB snmpTargetAddrTable snmpTargetAddrEntry SNMAPManagerTest1
 snmpTargetAddrTDomain  1.3.6.1.6.1.1
 snmpTargetAddrTAddress 127.0.0.1.0.162
 snmpTargetAddrTagList  v2_trap
 snmpTargetAddrParams   target_v2
!

When i try to copy and paste the exactly the way its displayed above, i get an error, since snmpTargetAddrTDomain is a mandatory element confd expects the value in the same line. Is there a way to modify it. Either make the show running-config to display mandatory elements in single line or any other solution for this

Error:

CNAP(config)# SNMP-TARGET-MIB snmpTargetAddrTable snmpTargetAddrEntry "10.144.214.174 v2"
Value for 'snmpTargetAddrTDomain' (<oid>):  snmpTargetAddrTDomain     1.3.6.1.6.1.1
Error: bad value: "snmpTargetAddrTDomain 1.3.6.1.6.1.1" is not a valid value.
Value for 'snmpTargetAddrTDomain' (<oid>):  snmpTargetAddrTAddress    10.144.214.174.23.112
Error: bad value: "snmpTargetAddrTAddress 10.144.214.174.23.112" is not a valid value.
Value for 'snmpTargetAddrTDomain' (<oid>):  snmpTargetAddrTimeout     1500
Error: bad value: "snmpTargetAddrTimeout 1500" is not a valid value.

Thanks.


#2

hello,

if i remember correctly, this behavior - CLI automatically asking you to fill in mandatory elements, can be disabled via /confdConfig/cli/autoWizard.
Either in confd.conf or dynamic configuration if you have it enabled… (see /confdConfig/cli/autoWizard in manual page of conf.conf)