Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/sloginfo.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/sloginfo.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/sloginfo.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/sloginfo.html on line 8
Print messages from the system log
sloginfo [options] [filename]
Neutrino
- -c
- Clear the log buffer after displaying all waiting events.
- -h
- Print unformatted entries in hexadecimal.
By default, they're printed in decimal.
- -m code
- Display events with this major code (default: display all).
- -s 0..7
- Display events with this severity or lower (default: 7).
The lowest severity is 7 and the highest is 0.
- -t
- Print time for events with millisecond resolution.
- -w
- Wait for more events to arrive.
- filename
- The name of the file containing raw events (default:
/dev/slog).
The sloginfo utility prints the contents of the system log buffer
managed by
slogger,
which must be running to record these messages.
By default, sloginfo prints all messages and exits.
You can use the -w option to have it wait for more messages.
You can use the -m and -s options to filter the
messages to print.
There are 16 million major codes, with 4096 minor codes for each major code.
Selecting a major code displays messages with any of the minor codes for the
specified major code.
You can use the major codes to display messages for a specific area, such as
TCP/IP.
The major codes are defined in the file
/usr/include/sys/slogcodes.h.
If a filename is specified, sloginfo takes its input from that file
instead of /dev/slog.
It's assumed that the file contains raw system log data saved by a program
or is the file specified in the -l option to slogger.
Print out all system log messages and exit:
sloginfo
Print out all system log messages and wait for more to arrive, printing
them as they do:
sloginfo -w
Print out all system log messages, clear the log, and exit:
sloginfo -c
Display only system log messages with a severity of 0, 1, 2, 3, or 4:
sloginfo -s 4
Display the system log messages stored in a specific file:
sloginfo /var/logs/slog0
- /dev/slog
- The default system log file.
slogger
slogb(),
slogf(),
slogi(),
vslogf()
in the Library Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/sloginfo.html on line 188
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/sloginfo.html on line 188