OpenBSD Journal

SNMP Queries now Possible with snmpctl(8)

Contributed by tbert on from the we-have-ways-of-making-you-walk dept.

Reyk Floeter has committed support for SNMP queries for snmpctl(8)

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.

Reyk

Since the initial commit, several subsequent commits have been made, notably implementing the snmp bulk walk command. As always, testing is essential to assure the quality of the coming release.

(Comments are closed)


Comments
  1. By Anonymous Coward (195.178.181.120) on

    Great, one less package to install!

    Comments
    1. By Anonymous Coward (108.60.37.203) on

      > Great, one less package to install!

      well...eventually. or hacking mib.h

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]