OpenBSD manual page server

Manual Page Search Parameters

SNMPCTL(8) System Manager's Manual SNMPCTL(8)

snmpctlcontrol the SNMP daemon

snmpctl [-n] [-s socket] command [arg ...]

The snmpctl program controls the snmpd(8) daemon. Commands may be abbreviated to the minimum unambiguous prefix; for example, s m for show mib.

The options are as follows:

Show numeric OID values instead of their symbolic names.
socket
Use socket instead of the default /var/run/snmpd.sock to communicate with snmpd(8).

The following commands are available:

Monitor internal messages of the snmpd(8) subsystems and engines.
Dump the tree of compiled-in MIB objects.
oid-string [oid oid-string type value ...]
Send an SNMP trap via snmpd(8) to the registered trap receivers. The command takes one oid-string argument as the trap OID and optional varbind arguments with the specified oid-string, type, and value. The following types are supported:

value
An IPv4 address.
value
A 32-bit counter.
value
A 32-bit gauge.
value
A 32-bit unsigned integer.
value
A 32-bit timeticks integer value.
value
A 32-bit opaque.
value
A 32-bit NSAP address.
value
A 64-bit counter.
value
A 32-bit unsigned integer.
value
A 32-bit integer.
string
A bit string.
string
An octet string.
This type takes no argument.
oid-string
An string describing an Object ID, for example 1.3.6.1.4.1.30155.

/var/run/snmpd.sock
default UNIX-domain socket used for communication with snmpd(8)

snmpd(8)

The snmpctl program first appeared in OpenBSD 4.3.

The snmpctl program was written by Reyk Floeter ⟨reyk@vantronix.net⟩.

May 10, 2010 OpenBSD-5.1