GENL(8)

๐Ÿ“ฆ
version 7.3.0 ยท 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

๐Ÿ’– GENL(8) ๐Ÿ’–

okay bestie, welcome to the genl(8) page from the Linux manual, no cap ๐Ÿ’… this is the group chat where the generic netlink utility finally gets to speak for itself.


โœจ NAME โœจ

genl โ€” generic netlink utility frontend ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

genl[ OPTIONS ] OBJECT
genl { -V[ersion] | -h[elp] }

OPTIONS := { -s[tatistics] | -d[etails] | -j[son] | -p[retty] }

OBJECT := { ctrl CTRL_OPTS }

CTRL_OPTS := { help | list | monitor | get PARMS }

PARMS := { name NAME | id ID }

โœจ DESCRIPTION โœจ

so basically genl is your little lowkey frontend to the generic netlink library ๐Ÿซถ it's built to handle multiple OBJECTs (iconic, ambitious, we love that for it), but for now the only OBJECT that actually showed up to the party is ctrl, and ctrl is the one that talks to the generic netlink controller. periodt.

๐ŸŒธ ctrl ๐ŸŒธ

the generic netlink controller can be queried in a bunch of different ways, and each one is giving its own vibe:

  • help โ€” this command literally just prints a help text for the ctrl object. that's it. that's the whole job ๐Ÿ’€
  • list โ€” show the registered netlink users ๐Ÿ‘‘
  • monitor โ€” listen for generic netlink notifications ๐Ÿ‘‚โœจ
  • get โ€” query the controller for a given user, identified either by name or by id ๐Ÿ”

โœจ OPTIONS โœจ

genl supports the following options, and bestie, we're going through every single one:

  • -h, -help โ€” show summary of options ๐ŸŽ€
  • -V, -Version โ€” show version of program โญ
  • -s, -stats, -statistics โ€” show object statistics ๐Ÿ“Š
  • -d, -details โ€” show object details ๐Ÿ”Ž
  • -j, -json โ€” output results in JavaScript Object Notation (JSON) ๐ŸŒˆ
  • -p, -pretty โ€” add indentation for readability ๐Ÿ’… (your eyes will thank you)
  • -r, -raw โ€” dump raw output only ๐Ÿ“

โœจ SEE ALSO โœจ


โœจ AUTHOR โœจ

genl was written by Jamal Hadi Salim <hadi@cyberus.ca> ๐Ÿ’œ

This manual page was written by Petr Sabata <contyk@redhat.com> ๐Ÿ’œ


and that's the whole page, bestie!! this one came from the iproute2 era, dated 29 Oct 2015, so it's vintage but it still ate ๐Ÿซถโœจ slay, go forth and query that controller ๐Ÿงš๐Ÿ’–