1.\" |
2.\" Copyright (C) 2004-2005 |
3.\" Hartmut Brandt. 4.\" All rights reserved. 5.\" 6.\" Author: Harti Brandt <harti@freebsd.org> 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: --- 10 unchanged lines hidden (view full) --- 21.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" SUCH DAMAGE. 28.\" |
29.\" $Begemot: bsnmp/gensnmpdef/gensnmpdef.1,v 1.5 2005/10/04 08:46:46 brandt_h Exp $ |
30.\" |
31.Dd June 14, 2005 |
32.Dt GENSNMPDEF 1 33.Os 34.Sh NAME 35.Nm gensnmpdef 36.Nd "generate a MIB description file from MIBs" 37.Sh SYNOPSIS 38.Nm 39.Op Fl h 40.Op Fl c Ar cut 41.Ar name Op Ar ... 42.Sh DESCRIPTION 43The 44.Nm 45utility is used to create an initial MIB description file from |
46one or more MIBs. 47The description file must be edited to be actually useful |
48for feeding it into 49.Xr gensnmptree 1 . 50.Pp 51The 52.Fl c 53option specifies the number of initial sub-oids that should be omitted 54from the tree. 55.Xr gensnmptree 1 56automatically adds 1.3.6 in front of all OIDs so the default value 57of 3 is just correct in most cases. 58.Pp 59.Nm 60does no attempt on sorting the OID tree so in case of complex and |
61non-standard MIBs it is necessary to sort the tree in the resulting definition |
62file by hand. 63.Sh SEE ALSO 64.Xr snmpd 1 |
65.Sh AUTHORS 66.An Hartmut Brandt Aq harti@freebsd.org |
67.Sh BUGS 68The utility is by no means bullet-proof and may fail for complex 69or non-standard MIBs. 70Its output is expected to be edited by hand. |