in reply to SNMP from script conflicts with snmpwalk
..why isn't the marked line assigning $share_comment? Also, because of the while loop, it appears that you're attempting to read in a table (or a series of columnar objects), in which case you don't want to start with object .0 (although there's no harm in doing this because the SNMP RFCs state that columnar objects must never commence with a .0 suffix - unfortunately Nortel struggles to comply with this in their SNMP agents).while (!$session->{ErrorStr} ) { print( "q - $q, num jobs - $num_jobs, " . "comment - $share_comment, " . "tag - " . $$vars[0]->tag . "\n" ); ------> ($q, $num_jobs) = $session->getnext($vars); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SNMP from script conflicts with snmpwalk
by bowei_99 (Friar) on Nov 15, 2005 at 00:12 UTC | |
by monarch (Priest) on Nov 15, 2005 at 00:35 UTC | |
by bowei_99 (Friar) on Nov 15, 2005 at 01:38 UTC | |
by monarch (Priest) on Nov 15, 2005 at 02:07 UTC | |
by bowei_99 (Friar) on Nov 15, 2005 at 00:23 UTC |