6 $sess = new SNMP::Session(DestHost => $host, Community => $comm);
8 $vars = new SNMP::VarList( ['ipRouteIfIndex'], ['ipRouteType'],
9 ['ipRouteProto'], ['ipRouteMask'],
10 ['ipRouteNextHop'], ['ipRouteAge'],
14 Destination Next Hop Mask Proto Age Metric
15 --------------- --------------- -------------- ------- -------- ------
19 @<<<<<<<<<<<<<< @<<<<<<<<<<<<<< @<<<<<<<<<<<<< @|||||| @||||||| @|||||
20 $dest, $nhop, $mask, $proto, $age, $metric
23 for (($index,$type,$proto,$mask,$nhop,$age,$metric) = $sess->getnext($vars);
24 $$vars[0]->tag eq 'ipRouteIfIndex' and not $sess->{ErrorStr};
25 ($index,$type,$proto,$mask,$nhop,$age,$metric) = $sess->getnext($vars)) {
26 $dest = $$vars[0]->iid;
30 print "$sess->{ErrorStr}\n";