How do I get the return value from an SNMP Set

"Dreas, Kyle" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <FA51991171CA534FB23F0F28F50414D30254F73F@COENGEXCMB01.cable.comcast.com>
I am doing SNMP Sets by the following method.
        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);
        my $reset=$sess->set($set);

I can do this with a get when I query something from and OID.  I can get
a return using the traditional snmpset command.  How do I get the return
code from and SNMP Set in this form?  In shorthand if the snmpset is
successful here it should return the OID Name followed by INTERGER: 1
which was set.  If the command fails it should return some failure code
like no such instance or a timeout.  How do I get these values?

Kyle Dreas

-------------------------------------------------------------------------
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.