gensnmptree.1 (124861) | gensnmptree.1 (133211) |
---|---|
1.\" 2.\" Copyright (c) 2001-2003 3.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4.\" All rights reserved. 5.\" | 1.\" 2.\" Copyright (c) 2001-2003 3.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4.\" All rights reserved. 5.\" |
6.\" Redistribution of this software and documentation and use in source and 7.\" binary forms, with or without modification, are permitted provided that 8.\" the following conditions are met: 9.\" 10.\" 1. Redistributions of source code or documentation must retain the above 11.\" copyright notice, this list of conditions and the following disclaimer. | 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: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. |
12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. | 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. |
15.\" 3. Neither the name of the Institute nor the names of its contributors 16.\" may be used to endorse or promote products derived from this software 17.\" without specific prior written permission. | 16.\" 17.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20.\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 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. |
18.\" | 28.\" |
19.\" THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY FRAUNHOFER FOKUS 20.\" AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 21.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 22.\" FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 23.\" FRAUNHOFER FOKUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 26.\" OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27.\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 29.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29.\" $Begemot: bsnmp/gensnmptree/gensnmptree.1,v 1.3 2004/08/06 08:46:46 brandt Exp $ |
30.\" | 30.\" |
31.\" $Begemot: bsnmp/gensnmptree/gensnmptree.1,v 1.2 2003/12/03 09:56:57 hbb Exp $ 32.\" 33.\" Author: Harti Brandt <harti@freebsd.org> 34.\" | |
35.Dd October 7, 2003 36.Dt gensnmptree 1 37.Os 38.Sh NAME 39.Nm gensnmptree 40.Nd "generate C and header files from a MIB description file" 41.Sh SYNOPSIS 42.Nm | 31.Dd October 7, 2003 32.Dt gensnmptree 1 33.Os 34.Sh NAME 35.Nm gensnmptree 36.Nd "generate C and header files from a MIB description file" 37.Sh SYNOPSIS 38.Nm |
43.Op Fl hel | 39.Op Fl helt |
44.Op Fl p Ar prefix 45.Op Ar name Ar ... 46.Sh DESCRIPTION 47The 48.Nm 49utility is used to either generate C language tables and header files from 50a MIB description or to numeric OIDs from MIB descriptions. The first form 51is used only for maintaining the --- 34 unchanged lines hidden (view full) --- 86.Bl -tag -width ".Fl d Ar argument" 87.It Fl h 88Print a short help page. 89.It Fl e 90Enter extract mode. 91.It Fl l 92Generate local preprocessor includes. This is used for bootstrapping 93.Xr snmpd 1 . | 40.Op Fl p Ar prefix 41.Op Ar name Ar ... 42.Sh DESCRIPTION 43The 44.Nm 45utility is used to either generate C language tables and header files from 46a MIB description or to numeric OIDs from MIB descriptions. The first form 47is used only for maintaining the --- 34 unchanged lines hidden (view full) --- 82.Bl -tag -width ".Fl d Ar argument" 83.It Fl h 84Print a short help page. 85.It Fl e 86Enter extract mode. 87.It Fl l 88Generate local preprocessor includes. This is used for bootstrapping 89.Xr snmpd 1 . |
90.It Fl t 91Instead of normal output print the resulting tree. |
|
94.It Fl p Ar prefix 95Prefix the file names and the table name with 96.Ar prefix . 97.El 98.Sh MIBS 99The syntax of the MIB description file can formally be specified as follows: 100.Bd -unfilled -offset indent | 92.It Fl p Ar prefix 93Prefix the file names and the table name with 94.Ar prefix . 95.El 96.Sh MIBS 97The syntax of the MIB description file can formally be specified as follows: 98.Bd -unfilled -offset indent |
99file := tree | tree file 100 |
|
101tree := head elements ')' 102 103entry := head ':' index STRING elements ')' 104 105leaf := head TYPE STRING ACCESS ')' 106 107column := head TYPE ACCESS ')' 108 --- 82 unchanged lines hidden --- | 101tree := head elements ')' 102 103entry := head ':' index STRING elements ')' 104 105leaf := head TYPE STRING ACCESS ')' 106 107column := head TYPE ACCESS ')' 108 --- 82 unchanged lines hidden --- |