SERVICELOG_NOTIFY(8)
π SERVICELOG_NOTIFY (section 8, bestie) π
okay so real talk β this one's from the PowerLinux Diagnostic Tools manual, section 8, and it's genuinely so useful. it's called servicelog_notify and it's giving "personal assistant for your event log" energy. let's get into it π«Ά
β¨ NAME β¨
servicelog_notify β add, view, or remove tools to be notified when events are logged in servicelog. literally that's it, that's the job π
πΈ SYNOPSIS πΈ
/usr/sbin/servicelog_notify --add [add_options]
/usr/sbin/servicelog_notify --remove {--id=n | --command=cmd}
/usr/sbin/servicelog_notify --list [--id=n | --command=cmd]
like, pick your lane: add, remove, or list. can't do all three at once, that's not the vibe β¨
π¦ DESCRIPTION π¦
so the servicelog_notify command lets you register tools that get invoked whenever events matching the parameters you specify get logged in the servicelog. it's like setting up a little notification bestie that pings your program every time something interesting happens π₯
and because the universe believes in balance, this command also lets you list or remove those registered notification tools. add, list, remove β the whole lifecycle, iconique π
π OPTIONS π
-lor--listβ lists registered notification tools. by default it lists them all. if--idis specified, only the notification with that ID gets listed. if--commandis specified, all notifications that execute that command get listed. slay π-ror--removeβ removes the notification withID=n, if--idwas specified, or removes all notifications that run the command specified by--command. bye bestie π-ccmd or--command=cmd β the command (including command-line options, so like the whole vibe) to be invoked when a matching event is logged. this is who gets the ping π£-in or--id=n β the ID number of the notification tool to be listed or removed. it's the little name tag π·οΈ-aor--addβ creates a new notification, specified by the--match,--type,--command, and--methodoptions. this is the main character option honestly β¨-mquery_string or--match=query_string β a filter string used to determine whether a newly-logged event should cause this notification tool to be invoked. (for example,--match='serviceable=1'to match only serviceable events.) see the "QUERY STRINGS" section in theservicelog(8)man page for more info β go read it, iyktyk π--type=EVENTor--type=REPAIRor--type=EVENT|REPAIRβ specifies whether to notify of events, or repair actions, or both.-tis a synonym for--type. choose your fighter(s) π₯--method={num_stdin|num_arg|text_stdin|pairs_stdin}β indicates how data should be passed to the notification tool. ok so here's the breakdown, listen up:num_stdinβ the ID of the new event gets passed to stdin.num_argβ the ID gets passed as the last command-line argument.text_stdinβ verbose descriptive text gets passed to stdin.pairs_stdinβ data from the new event gets passed to stdin asparameter=valuepairs, one per line.
and -M is a synonym for --method π«
-hor--helpβ display a help message and exit. the classic escape hatch π
π OLD SYNTAX π
okay so everything above is the command syntax accepted by v1.0 and later versions of servicelog_notify. but in v1.1, support for the following options was added for backward compatibility with v0.2.9. π°οΈ
β οΈ heads up bestie: mixing v0.2.9 options with v1.x options may produce unexpected results. like, it's not forbidden but it's giving chaos. be careful π«Ά
--severity=sev β sev is a number from 1 to 7. equivalent to aseverity>=sev clause in a--matchquery-string. π’--serviceable={yes|no|all}β equivalent to aserviceableclause in a--matchquery-string (yes=1,no=0). β β--type=event_type[|event_type...] β equivalent to one or moretypeclauses in a--matchquery-string. the recognized *event_type*s are:os(same as$OSin a query-string)ppc64_rtas($RTAS)ppc64_encl($ENCLOSURE)ppc64_bmc($BMC)
yes those are the exact names, no i will not be shortening them π
--repair_action={yes|no|all}β equivalent to--type=REPAIR,--type=EVENT, or--type=EVENT|REPAIR, respectively. respectively!! the order matters, remember it π--queryβ same as--list, except that you must specify--idor--command. no vibing with an empty query, it needs specifics π
π AUTHOR π
written by Michael Strosaker (strosake@austin.ibm.com) and Nathan Fontenot (nfont@austin.ibm.com). v0.2.9 compatibility was added by Brad Peters and Jim Keniston (jkenisto@us.ibm.com). absolute legends, all of them π«‘π
π§ SEE ALSO π§
and that's the whole page, bestie β go forth and get notified β¨π
this masterpiece shipped on Linux, dated February 2012, and the source is the PowerLinux Diagnostic Tools manual. periodt. ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: servicelog 1.1.16-160000.2.2 Β· GPL-2.0-only
- Copyright (C) 2006, 2012, 2013 International Business Machines
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms