Smarts NCM: Support for pull of Startup config using SNMP/TFTP for CiscoIOSSwitch
book
Article ID: 331095
calendar_today
Updated On:
Products
VMware Smart Assurance
Issue/Introduction
Symptoms:
Pull of running config will be successful via SNMP/TFTP but startup fails since the mechanism is not supported even in DSR 23 HF1
Below error is observed in $VOYENCE_HOME/logs/commmgr.log proving the unsupported/invalid mechanism used:
Line 60183: Nov 16 10:22:09 -1501505216/pull(15460446)#4: RESULT: Pulling configuration file 'running' for IDX xxxxx with mechanism SNMP/TFTP and SNMPV2 Following error can be observed if services are not restarted. Line 60131: Nov 16 10:22:09 -1501505216/pull(15460446)#4: RESULT: Pulling configuration file 'startup' for IDX xxxxx with mechanism Unspecified and SNMPV2 Line 60132: Nov 16 10:22:09 -1501505216/pull(15460446)#4: RESULT: The selected mechanism does not support pull. Line 60133: Nov 16 10:22:09 -1501505216/pull(15460446)#3: ERROR: Invalid Mechanism Unspecified
Environment
VMware Smart Assurance - NCM
Cause
As the logic for fetching config from NCM, below are mechanism available/coded: <Mechanisms> <Mechanism id="1" snmp-required="true">SNMP/TFTP</Mechanism> <Mechanism id="2" snmp-required="false">TELNET</Mechanism> <Mechanism id="3" snmp-required="false">SSH</Mechanism> <Mechanism id="6" snmp-required="false" default="true">TELNET/TFTP</Mechanism> <Mechanism id="8" snmp-required="false">SSH/TFTP</Mechanism> <Mechanism id="9" snmp-required="false">SSH/SCP</Mechanism> </Mechanisms>
and for startup: <PullMechanisms> <PullMechanism>2</PullMechanism> <PullMechanism>3</PullMechanism> <PullMechanism default="true">6</PullMechanism> <PullMechanism>8</PullMechanism> <PullMechanism>9</PullMechanism>
The cause of fail is mechanism SNMP/TFTP(1) is not supported/hardwired in coding.
Resolution
To resolve this issue open CiscoIOSSwtich.pkg file under $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch. If CiscoIOSSwtich.pkg doesn't exist in the $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch directory, please copy CiscoIOSSwtich.pkg to the $VOYENCE_HOME/package/pkgxml/CiscoIOSSwitch directory. Then locate the Startup and add <PullMechanism>1</PullMechanism> (as shown below)