cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3087
Views
0
Helpful
4
Replies

2800 series router snmp oid required to copy config via tftp

iswift
Level 1
Level 1

Hi

I have a 2801 running

c2801-spservicesk9-mz.124-3g.bin

According to the Cisco IOS MIB locator the image supports OLD-CISCO-SYSTEM-MIB

I have tried

.1.3.6.1.4.1.9.2.1.55 etc to set server IP address and the filename string but without any luck.

e.g.

Reason: (noSuchName) There is no such variable name in this MIB.

Failed object: iso.3.6.1.4.1.9.2.1.55.a.b.c.d  (where a.b.c.d is the server IP)

I have also tried the method similar to that for Cat 3550 switches where you create a table of entries to define the transfer paramaters then activate the transfer (I think the CISCO-CONFIG-COPY-MIB)

e.g.

https://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml#intro

C:\>snmpset -v 1 -c private <device name> ccCopyProtocol.<random number> integer 1   !  1 = tftp
ccCopySourceFileType.<Random number> integer 1     ! 1 = networkFile
ccCopyDestFileType.<Random number> integer 3     ! 3 = startup & 4 = running
ccCopyServerAddress.<Random number> ipaddress "<server ip address>"
ccCopyFileName. <Random number> octetstring "<file name>"
ccCopyEntryRowStatus.<Random number> integer 4     ! 4 = createAndGo, or 1 = Active

To write net have the source as running (4) and the dest as network (1)

ccCopySourceFileType.<Random number> integer 4

ccCopyDestFileType.<Random number> integer 1

Clean up at the end - destroy .14 with the value of 6.

example output : -

-- earlier output omitted --

Error in packet.

Reason: (noSuchName) There is no such variable name in this MIB.

Failed object: iso.3.6.1.4.1.9.9.96.1.1.1.1.4.111

Error in packet.

Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.9.9.96.1.1.1.1.5.111

Error in packet.

Reason: (noSuchName) There is no such variable name in this MIB.

Failed object: iso.3.6.1.4.1.9.9.96.1.1.1.1.6.111

Can anyone help with the oids to do a write net using SNMP with a 2800 series integrated services router ?

Ian.

4 Replies 4

ccube
Level 1
Level 1

This tech doc discusses how to perform:

http://www.cisco.com/en/US/customer/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml

The key is to first destroy the intended row first, then specify all required oids in a single set unless you are using create and wait.

Like snmpset -v2c -cpublic oid1 oid2 oid3 and so on.

If you need a full working example, let me know and I will perform the same on my router and let you see it all...

Hth,

Cary

Sent from Cisco Technical Support iPad App

Thank you Cary,

So are you saying the CONFIG-COPY-MIB is in fact the right one ?

If so I see what you are saying.

However there is no exisitng row to delete.

If I walk

.1.3.6.1.4.1.9.9.96

it is empty

C:\>snmpwalk LSBEEHIVE_VG1 xxxxxxxxxx .1.3.6.1.4.1.9.9.96

I think there may be an issue with this device then as I cannot implement the following. We will administer the device locally, we just wanted to get round having to do a password recovery.

C:\>snmpset -v1 -c RW_string Hostname_VG1 .1.3.6.1.4.1.9.9.96.1.1.1.1.2.128 i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.128 i 4 .1.3.6.1.4.1.9.9.96.1.1.1.1.4.128 i 1 .1.
3.6.1.4.1.9.9.96.1.1.1.1.5.128 a 137.223.74.14 .1.3.6.1.4.1.9.9.96.1.1.1.1.6.128
s Hostname_VG1.txt .1.3.6.1.4.1.9.9.96.1.1.1.1.14.128 i 4
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.9.9.96.1.1.1.1.2.128

Thanks for your reply.

Rgds

Ian

Hi Ian,

Well, it would seem that the IOS version you are running does not support the CISCO-CONFIG-COPY-MIB. This would mean you would have to fallback to the OLD-CISCO-SYSTEM-MIB to pull this off. See the following tech doc on using that MIB for this purpose:

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a008009463e.shtml

Here is the MIBS supported by the image you are running:

c2801-spservicesk9-mz.124-3g.bin    MIBS Supported in this Image   

ADSL-DMT-LINE-MIB            

ADSL-LINE-MIB            

ATM-MIB            

BRIDGE-MIB            

CISCO-AAA-SERVER-MIB            

CISCO-AAA-SESSION-MIB            

CISCO-AAL5-MIB            

CISCO-ACCESS-ENVMON-MIB            

CISCO-ADSL-DMT-LINE-MIB            

CISCO-ATM-EXT-MIB            

CISCO-ATM-PVCTRAP-EXTN-MIB            

CISCO-BULK-FILE-MIB            

CISCO-BUS-MIB            

CISCO-CALL-APPLICATION-MIB            

CISCO-CALL-HISTORY-MIB            

CISCO-CAR-MIB            

CISCO-CAS-IF-MIB            

CISCO-CDP-MIB            

CISCO-CIRCUIT-INTERFACE-MIB            

CISCO-CLASS-BASED-QOS-MIB            

CISCO-COMPRESSION-SERVICE-ADAPTER-MIB            

CISCO-CONFIG-MAN-MIB            

CISCO-DATA-COLLECTION-MIB            

CISCO-DIAL-CONTROL-MIB            

CISCO-DSL-CPE-MIB             

CISCO-DSP-MGMT-MIB            

CISCO-EMBEDDED-EVENT-MGR-MIB            

CISCO-ENTITY-ASSET-MIB            

CISCO-ENTITY-EXT-MIB            

CISCO-ENTITY-VENDORTYPE-OID-MIB            

CISCO-ENVMON-MIB            

CISCO-FLASH-MIB            

CISCO-FRAME-RELAY-MIB            

CISCO-FTP-CLIENT-MIB            

CISCO-GPRS-GTP-MIB            

CISCO-H323-TC-MIB            

CISCO-HSRP-EXT-MIB            

CISCO-HSRP-MIB            

CISCO-ICSUDSU-MIB            

CISCO-IETF-ATM2-PVCTRAP-MIB            

CISCO-IETF-ATM2-PVCTRAP-MIB-EXTN             

CISCO-IF-EXTENSION-MIB            

CISCO-IMAGE-MIB            

CISCO-IP-STAT-MIB            

CISCO-IPMROUTE-MIB            

CISCO-ISDN-MIB            

CISCO-ISDNU-IF-MIB            

CISCO-LEC-DATA-VCC-MIB            

CISCO-LEC-EXT-MIB            

CISCO-LECS-MIB            

CISCO-LES-MIB            

CISCO-MEMORY-POOL-MIB            

CISCO-MOBILE-IP-MIB            

CISCO-MVPN-MIB            

CISCO-NBAR-PROTOCOL-DISCOVERY-MIB            

CISCO-NETFLOW-MIB            

CISCO-NTP-MIB            

CISCO-OSPF-MIB            

CISCO-OSPF-TRAP-MIB            

CISCO-PIM-MIB            

CISCO-PING-MIB            

CISCO-POP-MGMT-MIB            

CISCO-PPPOE-MIB            

CISCO-PROCESS-MIB            

CISCO-PRODUCTS-MIB            

CISCO-QUEUE-MIB            

CISCO-RAS-MIB             

CISCO-REAL-TIME-CLOCK-MIB             

CISCO-RMON-CONFIG-MIB            

CISCO-RMON-SAMPLING-MIB             

CISCO-RTTMON-MIB            

CISCO-SAA-APM-MIB            

CISCO-SIP-UA-MIB            

CISCO-SMI            

CISCO-SNAPSHOT-MIB            

CISCO-SNMP-TARGET-EXT-MIB            

CISCO-STACKMAKER-MIB            

CISCO-SYSLOG-MIB            

CISCO-TC            

CISCO-TCP-MIB            

CISCO-VLAN-IFTABLE-RELATIONSHIP-MIB            

CISCO-VLAN-MEMBERSHIP-MIB            

CISCO-VOICE-ANALOG-IF-MIB            

CISCO-VOICE-ATM-DIAL-CONTROL-MIB            

CISCO-VOICE-COMMON-DIAL-CONTROL-MIB            

CISCO-VOICE-DIAL-CONTROL-MIB            

CISCO-VOICE-DNIS-MIB            

CISCO-VOICE-ENABLED-LINK-MIB            

CISCO-VOICE-FR-DIAL-CONTROL-MIB            

CISCO-VOICE-IF-MIB            

CISCO-VOICE-NUMBER-EXPANSION-MIB             

CISCO-VOICE-URI-CLASS-MIB             

CISCO-VPDN-MGMT-EXT-MIB            

CISCO-VPDN-MGMT-MIB            

CISCO-VSIMASTER-MIB            

CISCO-VTP-MIB            

CISCO-WRED-MIB            

DIAL-CONTROL-MIB            

DS1-MIB            

ETHERLIKE-MIB              

ETHERLIKE-MIB            

EVENT-MIB            

EXPRESSION-MIB            

FUNI-MIB             

HC-RMON-MIB             

HDSL2-SHDSL-LINE-MIB             

IF-MIB            

IGMP-STD-MIB            

INT-SERV-GUARANTEED-MIB            

INT-SERV-MIB            

IP-FORWARD-MIB            

IPMROUTE-STD-MIB            

ISDN-MIB            

LAN-EMULATION-CLIENT-MIB            

MIP-MIB             

MPLS-LDP-MIB            

MPLS-LSR-MIB            

MPLS-TE-MIB            

MPLS-VPN-MIB            

MSDP-MIB            

OLD-CISCO-CHASSIS-MIB            

OLD-CISCO-CPU-MIB             

OLD-CISCO-FLASH-MIB             

OLD-CISCO-INTERFACES-MIB             

OLD-CISCO-IP-MIB             

OLD-CISCO-MEMORY-MIB             

OLD-CISCO-SYSTEM-MIB             

OLD-CISCO-TCP-MIB             

OLD-CISCO-TS-MIB             

OSPF-MIB            

OSPF-TRAP-MIB            

PIM-MIB            

Q-BRIDGE-MIB            

RFC1213-MIB             

RFC1231-MIB             

RFC1315-MIB             

RFC1381-MIB             

RFC1382-MIB             

RFC1406-MIB             

RMON-MIB            

RMON2-MIB            

RS-232-MIB            

RSVP-MIB            

SMON-MIB            

SNMP-FRAMEWORK-MIB            

SNMP-NOTIFICATION-MIB            

SNMP-PROXY-MIB             

SNMP-TARGET-MIB            

SNMP-USM-MIB            

SNMP-VACM-MIB            

SONET-MIB            

SOURCE-ROUTING-MIB            

TCP-MIB            

UDP-MIB            

VRRP-MIB            

XGCP-MIB            

Hope this helps,

Cary

Thanks for the quick response.

See top of post, OLD-CISCO-SYSTEM-MIB

isn't working either.

" .1.3.6.1.4.1.9.2.1.55 etc to set server IP address and the filename string but without any luck."

i.e. the writeNet oid

e.g.

C:\>snmpset -v1 -c rw-string RTR_VG1 .1.3.6.1.4.1.9.2.1.55.137.223.74.14 s
RTR_VG1.txt
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.9.2.1.55.137.223.74.14

Thanks

Ian

Review Cisco Networking for a $25 gift card