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.
request host [options]
Request information from an SNMP agent that is running on the specified host. The request can be either get, walk or bulkwalk to retrieve a single SNMP value or a subtree. The following options are supported:

value
Set the SNMPv2 community; the default is ‘public’.
(all|value)
Set the start OID; the default is ‘system’. This option can be specified multiple times.
value
Set the SNMP version, either 1 or 2c. The default is 2c.
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.
host
Alias for snmp walk host, see above.

/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@openbsd.org>.

July 27, 2015 OpenBSD-6.4