vxlogview[-A] [-b StartDate] [-e EndDate] [-D] [-G Directory] [-g LogSet] [-I] [-i FileID] [-K HostName] [-L SeverityLevel] [-m Entity] [-N Level MsgTypes] [-n NumberofDays] [-o OriginatorID] [-P ProcessID] [-p ProductID] [-r Result] [-s Subject] [-T ThreadID] [-t hh:mm:ss] [-X ContextToken] [-y]
vxlogview -a [-p ProductID] {[-d DisplayOption,...] [-R ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -q QueryName -f FileName {[-d DisplayOption,...][-R ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -p ProductID -g LogSet | -i FileID {[-d DisplayOption,...] [-R ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -p ProductID -w queryString {[-d DisplayOption,...] [-R ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -v
On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is install_path\NetBackup\bin\
The vxlogview utility lets you view the logs that unified logging generates. Search criteria can be specified by using command-line options to view specific logs.
Unified logging uses a standardized naming format for log files, as follows:
productID-originatorID-hostID-date-rotation.log
For more information about the unified logging name format and the logging originator IDs, refer to the NetBackup Logging Reference Guide.
Specify the logs you want to view.
The required date value format in NetBackup commands varies according to your locale. The /usr/openv/msg/.conf file (UNIX) and the install_path\VERITAS\msg\LC.CONF file (Windows) contain information such as the date-time formats for each supported locale. The files contain specific instructions on how to add or modify the list of supported locales and formats.
See the "About specifying the locale of the NetBackup installation" topic in the NetBackup Administrator's Guide, Volume II for more information.
Surround the date by single quotes in UNIX and double quotes in Windows. For example:
-b cq1/1/2013 12:00:00 AMcqIf -b is not specified, messages are displayed from the beginning of the log file to the given end time (see the -e option).
DisplayOption may be one or more of the following:
D - Display date
T - Display timestamp
m - Display message type
p - Display process ID
t - Display thread ID
P - Display product ID
O - Display originator ID
c - Display context token
s - Display application log entry severity
u - Display application or diagnostic Unique Message ID
x - Display actual log message text
w - Display who logged the diagnostic or the debug message
i - Display short name for a product
o - Display short name for an originator
all - Display all fields of the log record
If -d is not specified, the following fields are displayed by default.
- Date
- Time
- Who (for diagnostic and debug messages only)
- Severity (application messages only)
- UMI (application and diagnostic messages only)
- message text
The required date value format in NetBackup commands varies according to your locale. The /usr/openv/msg/.conf file (UNIX) and the install_path\VERITAS\msg\LC.CONF file (Windows) contain information such as the date-time formats for each supported locale. The files contain specific instructions on how to add or modify the list of supported locales and formats.
See the "About specifying the locale of the NetBackup installation" topic in the NetBackup Administrator's Guide, Volume II for more information.
Surround the date with single quotes in UNIX and double quotes in Windows. For example:
--endate cq1/1/2013 12:00:00 PMcqIf the -e option is unspecified, vxlogview displays messages from the given start date-time (see the -b option) to the end of the log file.
-C, --crit : A critical error has occurred which may impact the availability of the application.
-E, --err : An error has occurred that does not affect the entire application.
-F, --info : An informational message.
-M, --emerg : An emergency condition exists that may result in an operating system failure or shutdown.
-W, --warning : A warning is issued for a problem that has been detected.
The following exit values are returned:
0 -- Successful completion.
A query string is a text expression, similar to a database WHERE clause, that is used to retrieve log entries from the Unified Logging system. The expression is a combination of relational operators, constant integers, constant strings, and names of log fields that evaluate to a single value. Logical operators, such as AND and OR, are used to group expressions.
Supported relational operators include: < (less than), > (greater than) <= (less than or equal to, >= (greater than and equal to), = (equal to), and != (not equal to).
Supported logical operators include && (logical AND) and || (logical OR).
Predefined log fields can be in all uppercase or all lowercase (for example: PID | pid). These fields consist of the following:
CTXTOK -- Context token (string)
ENDATE -- Locale-specific end date (long integer or string)
FILEID -- Shared originator ID (integer)
HOSTNAME -- Name of source host (string with quotes)
LEVEL -- Debug and diagnostic level. Default is to display all (integer 0-6)
MSGTYPE -- The following message types are supported:
DEBUG | debug DIAG | diag APP | app AUDIT | audit
ORGID -- Originator identifier (integer or string)
PID -- Process Identifier (integer)
PREVTIME -- Previous time (string hh:mm:ss)
PRODID -- Product identifier (integer or string)
RETURNVAL -- The audit message outcome field (0 or 1)
SEV -- Severity level. The following severity types are supported:
INFO | info WARNING | warning ERR | err CRIT | crit EMERG | emerg
STDATE -- Locale-specific start date (long integer or string)
SUBJECT -- Audit message subject field (string)
TID -- Thread ID (integer)
WHO -- Who logged the message (string)
The following examples are valid for UNIX, which uses single quotes to enclose option arguments. In Windows, use double quotes.
Example 1 - Display the log messages for all the installed products:
# vxlogview -a
Example 2 - Display the log messages for PBX (product ID 50936). You must be an authorized user with administrator (root) privileges. It displays only the date, time, message type, and message text:
# vxlogview --prodid 50936 --display D,T,m,x
Example 3 - Display the log messages for NetBackup that were logged between the dates 11/18/10 and 11/21/10:
# vxlogview --where "(prodid = 'NB') && (stdate >= '11/18/10 0:0:0 AM' && endate <= '11/21/10 10:12:00 AM')"
Example 4 - Display the log messages that were created on or after the date and time 1/03/13, 11:00:00 a.m.:
# vxlogview -b '1/03/13 11:00:00 AM'
Example 5 - Display the log messages that were logged within the last hour:
# vxlogview --tail 1:00:00
Example 6 - Display the audit log messages that have a result of 0:
# vxlogview --audit -r 0
Example 7 - Display the context log messages for the "job_context" instance:
# vxlogview --ctx 'jobid=4'