cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1278
Views
0
Helpful
2
Replies

Configuration Changes via SNMP on IOS XR

nonamer15
Level 1
Level 1

I'm trying to change the configuration on an NCS 5500 via SNMP. Most of the documentation online uses snmpset, so I've got that installed on a linux host. To me, it doesn't matter whether it's providing CLI commands or copying a new config from an FTP server. Here's an example of what I'm seeing online:

snmpset -v 1 -c private <device name> 
.1.3.6.1.4.1.9.9.96.1.1.1.1.2.<Random number> integer 1 
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.<Random number> integer 4 
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.<Random number> integer 1 
.1.3.6.1.4.1.9.9.96.1.1.1.1.5.<Random number> ipaddress "<server ip address>" 
.1.3.6.1.4.1.9.9.96.1.1.1.1.6.<Random number> octetstring "<file name>" 
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.<Random number> integer 4 

 

When I enter the first 2 lines, I get:

Error in packet.
Reason: (badValue) The value given has the wrong type or length.
Failed object: SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.2.3

 

All of the other examples I've tried result in the same error. I'm successfully able to do an snmpwalk, so I know everything is configured correctly. I've also got a rw community string set and that's what I'm using in my queries. I'm not sure if the issue is that this device is using IOS XR and the examples are for IOS/IOS XE, so maybe the OIDs are different.

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

Look at OID translate for reference :

 

http://snmp.cloudapps.cisco.com/Support/SNMP/do/BrowseOID.do?local=en

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

nonamer15
Level 1
Level 1

Thanks. Unfortunately, I've already come across that link and haven't found it helpful.

 

For instance, I take the first OID (1.3.6.1.4.1.9.9.96.1.1.1.1.2) and translate it. That resolves to the ccCopyProtocol object, which is part of the CISCO-CONFIG-COPY-MIB. When you view the Supporting Images link, you'll see that there's a separate link for XR MIBs. When you look at that link, you won't find any 6.x versions of XR. I'm currently running 6.3.2. Even if you do look for CISCO-CONFIG-COPY-MIB, you'll see the last version that supported that MIB was 4.3. Since 5.3 is the latest listed version, I'm guessing they no longer support that MIB in 5.x. If so, then I would also guess it's not supported in 6.x, which is what I'm running.