cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3849
Views
0
Helpful
1
Replies

Sending cfg via SNMP not working

ppucci
Level 1
Level 1

Hi,

I am trying to send some configs using SNMP to a 7200 (using 12.4(21a)) and it fails me on the last command when trying to start the procedure, as follows:

persio.pucci@tacacs:/tftpboot$snmpset -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1.2.200 integer 1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.2.200 = INTEGER: 1

persio.pucci@tacacs:/tftpboot$ snmpset -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.200 integer 1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.3.200 = INTEGER: 1

persio.pucci@tacacs:/tftpboot$ snmpset -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1.4.200 integer 4

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.4.200 = INTEGER: 4

persio.pucci@tacacs:/tftpboot$ snmpset -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.200 address 10.10.10.1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.5.200 = IpAddress: 10.10.10.1

persio.pucci@tacacs:/tftpboot$ snmpset -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1.6.200 string user

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.6.200 = STRING: "user"

persio.pucci@tacacs:/tftpboot$ snmpset -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1.14.200 integer 4

Error in packet.

Reason: inconsistentValue (The set value is illegal or unsupported in some way)

Failed object: SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.14.200

I can see that the entry was created, but I cannot issue a "CreateAndGo" command.

persio.pucci@tacacs:/tftpboot$ snmpwalk -v2c -c COMUNITY 10.20.30.1 .1.3.6.1.4.1.9.9.96.1.1.1.1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.2.200 = INTEGER: 1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.3.200 = INTEGER: 1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.4.200 = INTEGER: 4

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.5.200 = IpAddress: 10.10.10.1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.6.200 = STRING: "user"

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.9.200 = INTEGER: 2

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.10.200 = INTEGER: 4

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.11.200 = Timeticks: (1836298009) 212 days, 12:49:40.09

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.12.200 = Timeticks: (1836302109) 212 days, 12:50:21.09

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.13.200 = INTEGER: 3

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.14.200 = INTEGER: 1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.15.200 = INTEGER: 1

SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.16.200 = STRING: "10.10.10.1"

persio.pucci@tacacs:/tftpboot$

Any ideas?

1 Reply 1

ccube
Level 1
Level 1

First, make sure the contextual row number you're going to use is destroyed, then do your snmpset as a single snmpset command instead of setting individually for your create and go row.

Snmpset -v2c - c com string device snmpvar1 snmpvar2

And so on...

Something like this:

You need to create the row. Then you would go about setting the various

objects of the row

-protocol for transfer

-ipAddress of the server

-file names for Dst and Src

and then, finally activate the row.

Example using OIDs - You must enter the enter row sequence as follows:

snmpset -v 1 -c private 10.44.31.194 .1.3.6.1.4.1.9.9.96.1.1.1.1.2.90 i

1 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.90 i 4 .1.3.6.1.4.1.9.9.96.1.1.1.1.4.90

i 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.90 a 10.44.31.134

.1.3.6.1.4.1.9.9.96.1.1.1.1.6.90 s router-config

.1.3.6.1.4.1.9.9.96.1.1.1.1.14.90 i 4

Example using NAMED OIDs:

snmpset -v 1 -c private 10.44.31.194 ccCopyProtocol.90 integer 1 ccCopySourceFileType.90

integer 1 ccCopyDestFileType.90 integer 3

ccCopyServerAddress.90 ipaddress "10.44.31.134" ccCopyFileName.90 octetstring

"router-config" ccCopyEntryRowStatus.90 integer 4* *

Both of the above example are entered contiuously as one line.

Hth,

Cary

Sent from Cisco Technical Support iPhone App

Review Cisco Networking for a $25 gift card