.\" $OpenBSD: snmpctl.8,v 1.8 2008/05/17 23:31:52 sobrado Exp $ .\" .\" Copyright (c) 2007, 2008 Reyk Floeter .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: May 17 2008 $ .Dt SNMPCTL 8 .Os .Sh NAME .Nm snmpctl .Nd control the SNMP daemon .Sh SYNOPSIS .Nm .Op Fl n .Ar command .Op Ar arg ... .Sh DESCRIPTION The .Nm program controls the .Xr snmpd 8 daemon. .Pp The options are as follows: .Bl -tag -width Ds .It Fl n Show numeric OID values instead of their symbolic names. .El .Pp The following commands are available: .Bl -tag -width Ds .It Cm monitor Monitor internal messages of the .Xr snmpd 8 subsystems and engines. .It Cm show mib Dump the tree of compiled-in MIB objects. .It Xo .Cm trap send Ar oid-string .Op Cm oid Ar oid-string Ar type value ... .Xc Send an SNMP trap via .Xr snmpd 8 to the registered trap receivers. The command takes one .Ar oid-string argument as the trap OID and optional varbind arguments with the specified .Ar oid-string , .Ar type , and .Ar value . The following types are supported: .Pp .Bl -tag -width bitstringXXXXXXXX -compact .It Cm ip Ar value An IPv4 address. .It Cm counter Ar value A 32-bit counter. .It Cm gauge Ar value A 32-bit gauge. .It Cm unsigned Ar value A 32-bit unsigned integer. .It Cm ticks Ar value A 32-bit timeticks integer value. .It Cm opaque Ar value A 32-bit opaque. .It Cm nsap Ar value A 32-bit NSAP address. .It Cm counter64 Ar value A 64-bit counter. .It Cm uint Ar value A 32-bit unsigned integer. .It Cm int Ar value A 32-bit integer. .It Cm bitstring Ar string A bit string. .It Cm string Ar string An octet string. .It Cm null This type takes no argument. .It Cm oid Ar oid-string An string describing an Object ID, for example .Ar 1.3.6.1.4.1.30155 . .El .El .Sh FILES .Bl -tag -width "/var/run/snmpd.sockXX" -compact .It /var/run/snmpd.sock Unix-domain socket used for communication with .Xr snmpd 8 . .El .Sh SEE ALSO .Xr snmpd 8 .Sh HISTORY The .Nm program first appeared in .Ox 4.3 . .Sh AUTHORS The .Nm program was written by .An Reyk Floeter Aq reyk@vantronix.net .