smiquery(1)
π smiquery(1) β the SMI Tools one
okay so bestie, welcome to smiquery π this is a page from SMI Tools, and it's genuinely one of those lil tools that does one thing and does it slayfully π
β¨ NAME β¨
smiquery β query single information from SMI MIB modules π¦
like, literally one item at a time. no cap.
πΈ SYNOPSIS πΈ
smiquery [ -Vh ] [ -p module ] command name
that's the whole vibe. short, iconic, to the point π
π DESCRIPTION π
okay so the smiquery program is used to query information on a single item from an MIB module π for example module meta information, or a single type definition. that's it. that's the gig. lowkey perfect for when you're digging through MIBs and you just want one answer instead of the entire lore dump π«Ά
β¨ OPTIONS β¨
-V,--versionβ shows thesmiqueryversion and then exits, bye π-h,--helpβ shows a help text and exits π§ the help text lists all available commands, so if you're lost, that's your girl fr fr-p module,--preload moduleβ preloads the module module before reading the main module π this may be helpful if an incomplete main module misses to import some definitions. like giving it a little study guide before the exam π
π¦ and then the actual command π¦
command nameβ this specifies the kind of information to retrieve and the item to retrieve π the kinds are:module,imports,revisions,node,parent,compliance,index,members,children,type, ormacroπ andnameis the item itself.
π where does it even look tho
the module in question is searched along a path πΈ that path is initialized by the SMIPATH environment variable, or by /usr/share/libsmi/mibs if SMIPATH is not set β¨
and file extensions? bestie, they matter:
- files with a
.smingextension are expected to be (old-style!) SMIng module files π yes, old-style. we don't judge. - files with a
.myextension or without any extension are expected to be SMIv1/v2 module files π«Ά
π EXAMPLE π
this example queries for information on the node ifNumber defined in the module IF-MIB π¦ watch her work:
$ smiquery node IF-MIB::ifNumber
MibNode: IF-MIB::ifNumber
OID: 1.3.6.1.2.1.2.1
Type: Integer32
Declaration: OBJECT-TYPE
NodeKind: scalar
Access: read-only
Status: current
Description: The number of network interfaces (regardless of their
current state) present on this system.
that output? ate. no crumbs. π₯
π SEE ALSO π
the libsmi(3) project is documented at http://www.ibr.cs.tu-bs.de/projects/libsmi/ π go read it, iykyk π
π AUTHOR π
(C) 1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de> β iconic behavior, honestly π
and yes bestie, if you ever forget any of this, just hit -h and it'll list every command for you π main character energy from a manpage, we love to see it.
okay that's the whole page!! πΈ this one came from IBR and it's dated August 10, 2004 β yes she's vintage, and yes she still serves π β¨ go query something, bestie π«Ά
π¦ where this page comes from
- alpine 3.24: libsmi-doc 0.5.0-r5 Β· BSD-3-Clause AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms