Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

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

6 REPLIES
Cisco Employee

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

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:

  • CISCO-SMI-V1SMI.my
  • SNMPv2-TC-V1SMI.my
  • CISCO-CONFIG-COPY-MIB-V1SMI.my
  • CISCO-FLASH-MIB.my

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

-Thanks Vinod **Rating Encourages contributors, and its really free. **
New Member

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

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

New Member

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

Hi all,

i'm in the same case "avedis set", any update ????

thanks

New Member

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

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

New Member

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

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

How to retrieve Nexus 7010 et 5596 configuration via Snmp ?

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.

If this posts answers your question or is helpful, please consider rating it and/or marking as answered.
2836
Views
0
Helpful
6
Replies
CreatePlease to create content