[lug] snmpset syntax question

Harris, James James_Harris at maxtor.com
Mon Sep 24 09:59:19 MDT 2001


I can't say that I KNOW they're buggy for sure, but I've had numerous
problems with the snmp packages that RedHat provides.  I've fallen into the
habbit of compiling snmp from source these days to resolve some quirkiness
that I've experienced.

That doesn't help you much, but just a potential FYI...

-----Original Message-----
From: charles at lunarmedia.net [mailto:charles at lunarmedia.net] 
Sent: Saturday, September 22, 2001 08:54
To: LUG-DISCUSS
Subject: [lug] snmpset syntax question


right up front, i'll say that this is more of a cisco/snmp question than
anything to do with linux. however, i'm writing in the hopes that someone
can try out this syntax and let me know if they get the same results as i
do. i certainly dont see any syntax errors in my snmpset statement, so i'm
starting to question my snmp utils

redhat-7.1
ucd-snmp-4.2-12
ucd-snmp-utils-4.2-12

sorry to be so verbose...

i've written a utility which provides a front end for managing router
configs through snmp using: conf net, wr mem, and wr net. as of 12.x code
however, the oid associated with each of these functions have become
deprecated, and instead a new group of oid have been distributed by cisco to
do the job. although cisco's documentation is well done and fairly
straightforward, i am finding an issue with one of the oid groups.

the documentation i am referring to is located at:

  http://www.cisco.com/warp/public/477/SNMP/copy_configs_snmp.shtml

my issues comes up with the oid for specifying an ip address of the remote
tftp server. cisco's description of it is as follows:

.1.3.6.1.4.1.9.9.96.1.1.1.1.5.<Random number> ipaddress "<server ip
address>"

however, when i run:

.1.3.6.1.4.1.9.9.96.1.1.1.1.5.107 ipaddress 10.6.21.1

i am given the following response:

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

it seems to imply that the 10.6.21.1 value is in an incorrect format.

to clear up any initial inquiries into how i am running this...

 - i am running this with the proper snmpset syntax
   'snmpset -c private <hostname> oidstring'

 - i have ensured that my rw string value is correct

 - i am running this after the required ccCopySourceFileType or
   ccCopyDestFileType values have been set.

i appreciate your help on this as it has really become a thorn in my side

thanks! -charles


_______________________________________________
Web Page:  http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list