SNMP Walk with Perl

Thomas Bonham <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

What I'm doing is doing a snmp walk and I have all of the code working 
right and it returns the more values then I'm looking for.  Here is the 
results that it comes back with.

ipAdEntAddr 127.0.0.1 127.0.0.1 IPADDR # This is good
ipAdEntAddr 192.168.0.230 192.168.0.230 IPADDR # This is good
ipAdEntIfIndex 127.0.0.1 1 INTEGER # This is a bad

The last result isn't what I'm wanting. I'm not sure how to do it where 
I can make it where it doesn't come back. Below is the code that I'm 
using for it.

$vb = new SNMP::Varbind(["ipAdEntAddr"]);
do {
        $val=$sess->getnext($vb);
        print "@{$vb}\n";
} until (${$vb}[0] !~/^(ipAdEntAddr)$/);


Thank  you,
Thomas



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.