Problem with missing types when using snmp set

"Dreas, Kyle" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <FA51991171CA534FB23F0F28F50414D30254F51B@COENGEXCMB01.cable.comcast.com>
>From the snmpset command help you get the type values as follows:
  TYPE: one of i, u, t, a, o, s, x, d, b, n
        i: INTEGER, u: unsigned INTEGER, t: TIMETICKS, a: IPADDRESS
        o: OBJID, s: STRING, x: HEX STRING, d: DECIMAL STRING, b: BITS
        U: unsigned int64, I: signed int64, F: float, D: double

>From your documentation on using the Varbind method as follows:
        my $cmreset_oid = ".1.3.6.1.2.1.69.1.1.3";
        my $set = new SNMP::Varbind([$cmreset_oid,0,1,"INTEGER"]);

        my $sess=new SNMP::Session(DestHost=>$cmip,
                           Community=>$cmstring,
                           Version=>2,
                           Timeout=>1000000,
                           Retries=>2);
        $sess->set($set);

I do not see how to set the TYPE to hex or a plain string.  
OBJECTID => dotted-decimal (e.g., .1.3.6.1.2.1.1.1)
OCTETSTR => perl scalar containing octets,
INTEGER => decimal signed integer (or enum),
NETADDR => dotted-decimal,
IPADDR => dotted-decimal,
COUNTER => decimal unsigned integer,
COUNTER64  => decimal unsigned integer,
GAUGE,  => decimal unsigned integer,
UINTEGER,  => decimal unsigned integer,
TICKS,  => decimal unsigned integer,
OPAQUE => perl scalar containing octets,
NULL,  => perl scalar containing nothing,


Using the Varbind method how do I specify that the value I am sending is
of type HEX or STRING?

Kyle Dreas
Technical Analyst
Telephony Technical Support
NE&TO WNOC Operation
(O) - 720-267-7365
(C) - 720-490-3056

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.