perl usage of the $session->getbulk()

Harrie Hazewinkel <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
HI,


I would like to use the $session->getbulk(..),
but I am not sure which kind of values I get back.


It returns a list, but is I print the perticular items
of the list, I just get the value. It there not some
way I can get the varbind and then have OID/value?


@result = $sess->getbulk(0, 5, $vars);
for $varbind (@result) {
         print $varbind . "\n";
}

Only prints the values as in:
4
4
4
3
4



and I would like to have this
OID.1 4
OID.2 4
OID.3 4
OID.4 3
OID.5 4


Can somebody help me out?

Harrie

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