1libsmi(3)             SMI Management Information Library             libsmi(3)
2
3
4

NAME

6       libsmi - library to access SMI management information
7

DESCRIPTION

9       This  library  contains  functions  that allow access to SMI management
10       information stored in repositories that are  managed  by  libsmi,  cur‐
11       rently directories containing SMIv1/v2 and SMIng MIB module files.
12
13       The  libsmi  API  is  defined  in  smi.h.  Functions  are documented in
14       smi_config(3),    smi_module(3),    smi_node(3),    smi_type(3),    and
15       smi_macro(3).
16
17       The  purpose of libsmi is to separate the weird parsing and handling of
18       MIB modules from management applications.  MIB  modules  conforming  to
19       SMIv1,  SMIv2  and  SMIng  - a new language for management information,
20       developed at the Technical University of Braunschweig, Germany - can be
21       handled by libsmi.
22
23       NOTE:  SMIng support in the current release of libsmi is neither stable
24       nor representing the work done in the IETF SMING working group.  It  is
25       based  research  efforts  at  TU  Braunschweig  and  within the IRTF in
26       1999-2000.
27

EXAMPLE

29       #include <stdio.h>
30       #include <string.h>
31       #include <smi.h>
32
33       int main(int argc, char *argv[])
34       {
35           SmiNode *smiNode;
36           int oidlen, first = 1;
37
38           if (argc != 2) {
39               fprintf(stderr, "Usage: smisubtree oid\n");
40               exit(1);
41           }
42
43           smiInit(NULL);
44
45           for((smiNode = smiGetNode(NULL, argv[1])) &&
46                   (oidlen = smiNode->oidlen);
47               smiNode && (first || smiNode->oidlen > oidlen);
48               smiNode = smiGetNextNode(smiNode, SMI_NODEKIND_ANY),
49                   first = 0) {
50
51               printf("%*s%-32s\n",
52                      (smiNode->oidlen - oidlen + 1) * 2, " ",
53                      smiNode->name);
54
55           };
56
57           exit(0);
58       }
59

FILES

61       /usr/include/smi.h    SMI library header file
62

SEE ALSO

64       RFCs 2578-2580 specify the SMIv2 standard  [STD  58].   The  (obsolete)
65       SMIng  specification  has  been  a working document of the IRTF Network
66       Management Working Group (NMRG) (draft-irtf-nmrg-sming-02).
67
68       smi.h,   smi_config(3),   smi_module(3),   smi_node(3),    smi_type(3),
69       smi_macro(3),
70

AUTHOR

72       (C)    1999-2001    Frank    Strauss,    TU    Braunschweig,    Germany
73       <strauss@ibr.cs.tu-bs.de>
74
75
76
77IBR                             August 16, 2001                      libsmi(3)
Impressum