AMSLOG(1)
Okay bestie, welcome to the amslog manual ๐ฆ It's part of the AMS executables crew, and by the end you'll see why it's giving main character energy ๐
โจ NAME โจ
amslog โ the Asynchronous Message Service (AMS) test message receiver ๐จ
๐ SYNOPSIS ๐
amslog unit_name role_name application_name authority_name [{ s | i }]
๐ธ DESCRIPTION ๐ธ
So amslog is a message receiver, and its whole purpose in life is helping you test AMS functionality ๐งช literally built for it ๐ซถ
When you start amslog, it registers itself as an application module. It signs up in the unit called unit_name, inside the venture called application_name under authority_name, and it registers in the role you give it as role_name ๐. Quick heads-up: for this to work, a configuration server for the local continuum AND a registrar for that unit of that venture need to be running first โจ. They can both live in one amsd daemon task, which is lowkey neat ๐ง
Under the hood it runs two threads ๐งต. The background thread catches incoming AMS messages and logs them to standard output. The foreground thread reads lines of console input, and those lines are how you control which messages reach the background thread ๐
Here are the foreground thread's rules, so pay attention bestie ๐
- If the very first character of a line from stdin is
.(period),amslogterminates immediately ๐ bye bye. - Otherwise, the first character has to be
+(you're asserting interest in a subject) or-(you're cancelling that interest) ๐ . - The subject name starts at the second character of the line.
everythingis a totally valid subject name, so yes, you can go full send ๐.
By default amslog runs in subscribe mode ๐ฎ. When you assert interest, it subscribes to that subject, and when you rescind interest, it unsubscribes from it. You can switch the vibe by giving a third command-line argument, the mode indicator. Pass i and it switches to invite mode ๐. In invite mode, asserting interest means it invites messages on that subject, and rescinding means it cancels that invitation.
Want to get specific about where your subscription or invitation applies? You can add a domain right after the subject name, on the same line of console input โจ
- The domain continuum name can be specified, or you can use the placeholder
_to mean "all continua" ๐. - If a domain continuum name is given (either
_or an actual name), you can then specify a domain unit name, or use_to mean "the root unit," aka the entire venture ๐. - If a domain unit name is given (either
_or an actual name), you can then specify a domain role name too ๐.
Now for output ๐จ๏ธ. On VxWorks or RTEMS, each message's subject and content just get written to standard output as a text line so you can read them on the console ๐บ. On UNIX, it's a different situation: the subject name length (a binary integer), subject name (ASCII text), content length (a binary integer), and content (ASCII text) all get written to standard output. That means you redirect it into a file, or pipe it into amslogprt ๐ฅ.
One more thing, and it's iconic ๐
whenever a message comes in flagged as a Query, amslog sends back a reply. The reply's content is the string Got followed by the first 128 bytes of the Query's content, wrapped in single quote marks, and then a period at the end ๐ซถ.
๐ฆ EXIT STATUS ๐ฆ
-1โamslogterminated with an error, as noted in theion.logfile ๐ญ."0"โamslogterminated normally โจ.
๐ FILES ๐
A MIB initialization file with the applicable default name must be present. Check amsrc(5) for the deets ๐.
๐ ENVIRONMENT ๐
No environment variables apply ๐ zero env vars, zero drama.
๐จ DIAGNOSTICS ๐จ
Error messages are the tea of this program ๐ต
amslog can't register.โamslogfailed to register, for reasons noted in theion.logfile.amslog can't set event manager.โamslogfailed to start its background thread, for reasons noted in theion.logfile.amslog can't read from stdinโ the foreground thread failed to read console input, for reasons noted in theion.logfile.
๐ BUGS ๐
Found a bug? Report it to <ion-bugs@korgano.eecs.ohiou.edu> ๐
๐ฏ SEE ALSO ๐ฏ
amsshell(1), amslogprt(1), amsrc(5) ๐
That's the whole tea, bestie ๐ซถ This page came from perl v5.24.1, dated 2016-07-07, and it's all AMSLOG(1) all the way down ๐ธ love u, mwah ๐
๐ฆ where this page comes from
- ubuntu jammy: ion 3.2.1+dfsg-1.1 ยท BSD-3-Clause
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms