03-24-2012 07:27 AM
Hello all,
I want to know how to retrieve the complete configuration for a Nexus via the snmpwalk or snmpget commands...
What mib's is needed ?
Thanks for the feedback
03-24-2012 11:45 AM
Hi,
Copy Configurations To and From Cisco Devices Using SNMP mostly uses the CISCO-CONFIG-COPY-MIB in almost all the Cisco Devices. Nexus is no exception and hence you would need the same MIB to copy the configuration via SNMP.
Some of the other MIBs which are used as well are:
I think these two documents cover in-depth procedure to put more lime-light on what we need. Please check :
How To Copy Configurations To and From Cisco Devices Using SNMP:
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml
https://supportforums.cisco.com/docs/DOC-1860
-Thanks
Vinod
03-26-2012 02:37 AM
Hi,
Thanks for your feedback.
This 4 MIB's are already present in my server.
But i still can't retrieve the configuration , i have some log message on the Nexus
SNMP log error : SNMP Operation (GET) failed. Reason:2 reqId (18598) errno (42) error index (1)
SNMP log error : 18598.000000:iso.3.6.1.4.1.9.9.46.1.6.1.1.14.83886080 = NULL SNMPPKTEND
SNMP log error : SNMPERRPKTSTRT: 0.000000 160 18598.000000 0.000000 0.000000 0.000000 0 0 1 1 0 ***** 8 0 0 0 ***** 0 0 0 0 15
%SNMPD-3-ERROR: SNMP log error : SNMP Operation (GET) failed. Reason:2 reqId (18599) errno (9) error index (1)
%SNMPD-3-ERROR: SNMP log error : 18599.000000:iso.3.6.1.4.1.9.9.68.1.2.2.1.2.83886080 = NULL SNMPPKTEND
%SNMPD-3-ERROR: SNMP log error : SNMPERRPKTSTRT: 0.000000 160 18599.000000 0.000000 0.000000 0.000000 0 0 1 1 0 ***** 8 0 0 0 ***** 0 0 0 0 15
Thanks for your help
04-11-2012 06:00 AM
Hi all,
i'm in the same case "avedis set", any update ????
thanks
04-11-2012 06:21 AM
Hi more information, i execute the scrip below :
#!/bin/sh
#############################################################
# Script to demonstrate the SNMP commands necessary to backup the Cisco Nexus Switches
#############################################################
COMMUNITY="RW community"
HOST="Ip @"
TFTPSERVER="srv @"
FILENAME="nex7000.cfg"
RND="10"
snmpset -v 2c -c$COMMUNITY $HOST ccCopyProtocol.$RND i 1 ccCopySourceFileType.$RND i 4 ccCopyDestFileType.$RND i 1 ccCopyServerAddress.$RND a $TFTPSERVER ccCopyFileName.$RND s $FILENAME ccCopyEntryRowStatus.$RND i 4
sleep 5
snmpget -v 2c -c$COMMUNITY $HOST ccCopyState.$RND
sleep 5
snmpget -v 2c -c$COMMUNITY $HOST ccCopyState.$RND
sleep 5
snmpget -v 2c -c$COMMUNITY $HOST ccCopyState.$RND
sleep 5
snmpget -v 2c -c$COMMUNITY $HOST ccCopyState.$RND
snmpset -v 2c -c$COMMUNITY $HOST ccCopyEntryRowStatus.$RND i 6
When i launch it i have this message on the server :
./testnexus.sh
ccCopyProtocol.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyProtocol)
ccCopySourceFileType.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopySourceFileType)
ccCopyDestFileType.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyDestFileType)
ccCopyServerAddress.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyServerAddress)
ccCopyFileName.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyFileName)
ccCopyEntryRowStatus.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyEntryRowStatus)
ccCopyState.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyState)
ccCopyState.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyState)
ccCopyState.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyState)
ccCopyState.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyState)
ccCopyEntryRowStatus.10: Unknown Object Identifier (Sub-id not found: (top) -> ccCopyEntryRowStatus)
When i launch a debug snmp all, i have no error, i just see that the packet that comes it's accepted by the ACL
Thanks for your feedback
04-11-2012 09:25 AM
Hi the problem is solved
#!/bin/sh
#
#############################################################
# Script to have the snmp configuration via tftp
#############################################################
COMMUNITY='RW Community’
HOST="IP @"
TFTPSERVER="IP @"
FILENAME="xyzjghskelegjgiejkejg.cfg"
RND="10"
snmpset -v 2c -c $COMMUNITY $HOST 1.3.6.1.4.1.9.9.96.1.1.1.1.2.$RND i 1 1.3.6.1.4.1.9.9.96.1.1.1.1.3.$RND i 4 1.3.6.1.4.1.9.9.96.1.1.1.1.4.$RND i 1 1.3.6.1.4.1.9.9.96.1.1.1.1.5.$RND a $TFTPSERVER 1.3.6.1.4.1.9.9.96.1.1.1.1.6.$RND s $FILENAME 1.3.6.1.4.1.9.9.96.1.1.1.1.14.$RND i 4
sleep 5
snmpget -v 2c -c $COMMUNITY $HOST 1.3.6.1.4.1.9.9.96.1.1.1.1.10.$RND
sleep 5
snmpget -v 2c -c $COMMUNITY $HOST 1.3.6.1.4.1.9.9.96.1.1.1.1.10.$RND
sleep 5
snmpget -v 2c -c $COMMUNITY $HOST 1.3.6.1.4.1.9.9.96.1.1.1.1.10.$RND
sleep 5
snmpget -v 2c -c $COMMUNITY $HOST 1.3.6.1.4.1.9.9.96.1.1.1.1.10.$RND
snmpset -v 2c -c $COMMUNITY $HOST 1.3.6.1.4.1.9.9.96.1.1.1.1.14.$RND i 6
10-18-2012 12:16 PM
Good news, but how did you solve it?
If this posts answers your question or is helpful, please consider rating it and/or marking as answered.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide