On 10/01, Reyk Floeter wrote: > Hi, > > I just committed a simple SNMP client implementation to snmpctl/snmpd. > You can use it as an in-tree alternative to net-snmp's > snmpwalk/snmpget. > > Examples: > $ snmpctl walk 127.0.0.1 > $ snmpctl walk printer.my.domain version 1 oid printerWorkingGroup > $ snmpctl -n walk 203.0.113.240 oid ifMIB community "blah" > > Limitations: > - no SNMPv3/USM support yet > - no bulk support yet (bulkwalk) > - not so many fancy options. > > snmpd does not support loading of external MIB files, so you have to > use net-snmp if you want to load additional MIBs for the symbolic name > parsing. snmpctl only shows symbolic names there are found in snmpd's > mib.h. > > Testing welcome, especially with non-snmpd(8) agents.
Seems to work fine... only thing I have that's snmp walkable and not snmpd is an HP printer: gabe@desktop:~$ snmpctl walk printer.my.domain system.sysDescr.0="HP ETHERNET MULTI-ENVIRONMENT" system.sysOID.0=iso.org.dod.internet.private.enterprises.hp.2.3.9.1 system.sysUpTime.0=4256 system.sysContact.0=" " system.sysName.0="printer" system.sysLocation.0="" system.sysServices.0=72 system.sysORLastChange.0=0 system.sysORTable.sysOREntry.sysORID.1=iso.org.dod.internet.snmpV2.snmpModules.snmpMIB system.sysORTable.sysOREntry.sysORID.2=iso.org.dod.internet.snmpV2.snmpModules.framework.3.1.1 system.sysORTable.sysOREntry.sysORID.3=iso.org.dod.internet.snmpV2.snmpModules.11.3.1.1 system.sysORTable.sysOREntry.sysORID.4=iso.org.dod.internet.snmpV2.snmpModules.usm.2.1.1 system.sysORTable.sysOREntry.sysORID.5=iso.org.dod.internet.snmpV2.snmpModules.16.2.1.1 system.sysORTable.sysOREntry.sysORDescr.1="The MIB Module from SNMPv2 entities" system.sysORTable.sysOREntry.sysORDescr.2="SNMP Management Architecture MIB" system.sysORTable.sysOREntry.sysORDescr.3="Message Processing and Dispatching MIB" system.sysORTable.sysOREntry.sysORDescr.4="USM User MIB" system.sysORTable.sysOREntry.sysORDescr.5="VACM MIB" system.sysORTable.sysOREntry.sysORUpTime.1=0 system.sysORTable.sysOREntry.sysORUpTime.2=0 system.sysORTable.sysOREntry.sysORUpTime.3=0 system.sysORTable.sysOREntry.sysORUpTime.4=0 system.sysORTable.sysOREntry.sysORUpTime.5=0 Nice to have this in base! gabe.