1smiquery(1) SMI Tools smiquery(1)
2
3
4
6 smiquery - query single information from SMI MIB modules
7
9 smiquery [ -Vh ] [ -p module ] command name
10
12 The smiquery program is used to query information on a single item from
13 an MIB module, e.g. module meta information or a single type definiā
14 tion.
15
17 -V, --version
18 Show the smiquery version and exit.
19
20 -h, --help
21 Show a help text and exit. The help text lists all available
22 commands.
23
24 -p module, --preload module
25 Preload the module module before reading the main module. This
26 may be helpful if an incomplete main module misses to import
27 some definitions.
28
29 command name
30 This specifies the kind of information to retrieve (module,
31 imports, revisions, node, parent, compliance, index, members,
32 children, type, or macro) and the item to retrieve.
33
34 The module in question is searched along a path, which is initialized
35 by the SMIPATH environment variable or by /usr/share/mibs if SMIPATH is
36 not set. Files with a .sming extension are expected to be (old-style!)
37 SMIng module files. Files with a .my or without any extension are
38 expected to be SMIv1/v2 module files.
39
41 This example queries for information on the node ifNumber defined in
42 the module IF-MIB.
43
44 $ smiquery node IF-MIB::ifNumber
45 MibNode: IF-MIB::ifNumber
46 OID: 1.3.6.1.2.1.2.1
47 Type: Integer32
48 Declaration: OBJECT-TYPE
49 NodeKind: scalar
50 Access: read-only
51 Status: current
52 Description: The number of network interfaces (regardless of their
53 current state) present on this system.
54
55
57 The libsmi(3) project is documented at http://www.ibr.cs.tu-
58 bs.de/projects/libsmi/.
59
61 (C) 1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-
62 bs.de>
63
64
65
66IBR August 10, 2004 smiquery(1)