or grep for it... snmpwalk... | grep ".2 ="
Thomas Anders wrote: > [EMAIL PROTECTED] wrote: >> if i want to olny get the interface2-based varibles as follow: >> >> IF-MIB::ifIndex.2 = INTEGER: 2 >> IF-MIB::ifDescr.2 = STRING: eth0 >> IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6) >> IF-MIB::ifMtu.2 = INTEGER: 1500 >> IF-MIB::ifSpeed.2 = Gauge32: 10000000 >> IF-MIB::ifPhysAddress.2 = STRING: 0:c:29:9f:35:9f >> IF-MIB::ifAdminStatus.2 = INTEGER: up(1) >> IF-MIB::ifOperStatus.2 = INTEGER: up(1) >> IF-MIB::ifInOctets.2 = Counter32: 48386609 >> IF-MIB::ifInUcastPkts.2 = Counter32: 394505 >> ...... >> >> how would i use the command"snmpwalk" ? > > Not at all! ;-) You'd better use: > > snmpget -v1 -c public localhost IF-MIB::ifIndex.2 IF-MIB::ifDescr.2 > IF-MIB::ifType.2 <and so on, I'm tired to type more> > > > +Thomas > _______________________________________________ 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
