admstrlog(1M) DG/UX R4.11 admstrlog(1M)
NAME
admstrlog - manage the STREAMS log files
SYNOPSIS
admstrlog -o list [ -q ] [ -a age ] [ -l level ] [ -s source ]
admstrlog -o delete [ -a age ]
DESCRIPTION
admstrlog manages the STREAMS log files. The messages which you want
to list can be selected by age (in days), source, and/or severity
level. You can also delete all messages older than a specified age
(in days).
Operations
list Generates a list of the specified messages.
delete Removes all messages older than a specified number of days.
Options
-s source Selects messages of type source. Valid sources are all,
tcpip, osi, and x25. The default is all.
-l level Selects messages of severity level or higher. Valid
severity levels (in decreasing severity order) are:
EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO,
and DEBUG. The default is INFO.
-q Suppresses (quiets) the printing of the list header.
-a age Selects messages age days or older for deletion. The
default is 3 days.
EXAMPLES
The examples below show how to: generate a list of all messages which
have occurred in the last day and which are of severity ERROR or
greater; generate a list of all messages of severity INFO or greater
and whose source is tcpip; generate a list of all messages of
severity INFO or greater; delete all messages older than 10 days of
age.
admstrlog -o list -a 1 -l ERROR
admstrlog -o list -l INFO -s tcpip
admstrlog -o list
admstrlog -o delete -a 10
FILES
/usr/adm/streams
The directory containing the STREAMS log files.
DIAGNOSTICS
Errors
- The delete operation is requested by a process without
appropriate privilege.
On a generic DG/UX system, appropriate privilege is granted by having
an effective UID of 0 (root). See the appropriateprivilege(5) man
page for more information.
On a system with DG/UX information security, appropriate privilege is
granted by having one or more specific capabilities enabled in the
effective capability set of the user. See capdefaults(5) for the
default capabilities for this command.
Exit Codes
0 The operation was successful.
1 The operation was unsuccessful.
2 The operation failed due to access restrictions.
3 There was an error in the command line.
SEE ALSO
capdefaults(5), strerr(1M).
Licensed material--property of copyright holder(s)