nl-classid-lookup(8)

πŸ’– nl-classid-lookup β€” the manual, but make it cute πŸ’–

okay so bestie, welcome to nl-classid-lookup, section 8 of the System Manager's Manual (that's the sysadmin-y corner of the man pages, iykyk). she's a libnl tool, she's tiny, she's iconic, and she does exactly one job and does it flawlessly. periodt. ✨


🌸 NAME 🌸

nl-classid-lookup β€” look up classid definitions, bestie. that's it. that's the whole name section. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

nl-classid-lookup [-hv] [-r] [--raw] name

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: nl-classid-lookup goes digging through the classid database looking for a matching entry. it's the little tool you use to turn qdisc/class names into classid values… and also the other way around, because she's versatile like that. πŸ’β™€οΈ

basically: name in, classid out. or classid in, name out. a queen who can do both directions. πŸ‘‘


✨ OPTIONS ✨

  • -h, --help β€” prints the help text straight to your console and then dips. exit, stage left. 🫢
  • -v, --version β€” prints the versioning info to the console and bounces. very "hi, this is who i am, bye". πŸ’œ
  • -r, --reverse β€” does a reverse lookup. so instead of name β†’ classid, you feed her a classid and she prints the name. iconic behaviour, no notes. πŸ”„
  • --raw β€” prints the raw classid in hexadecimal format. no pretty printing, no glow-up, just the raw hex, unedited, no filter. πŸ’€

πŸŽ€ USAGE πŸŽ€

want to resolve the qdisc/class name "interactive"? say less:

# nl-classid-lookup interactive

want to go the other way and look up the name of classid 1:2? reverse girlie:

# nl-classid-lookup -r 1:2

πŸ“ FILES πŸ“

  • /etc/libnl/classid

that's where the database lives, bestie. that's her home. 🏠


🌈 AUTHOR 🌈

Thomas Graf is the original author and current maintainer of libnl and the libnl tools. and like, many people have contributed to it since. a whole squad. a collective. we love to see it. 🫢✨


reminder bestie: every flag, every path, every example above is exactly as the original says it. i would never lie to you about a --raw. πŸ’–

and that's a wrap! this page is from libnl, dated 19 October 2010 β€” yes she's vintage, and yes she still slays. mwah. πŸ’…πŸŒΈπŸŽ€