vxlogmgr { -c | -m } -f AbsoluteDir [-a]
vxlogmgr { -d | -F } [-a]
vxlogmgr {-c | -m | -A filename} -f AbsoluteDir [-p ProductID] [-o OriginatorID] [-n Days] [-t Time] [-b StartDate] [-g LogSet] [-e EndDate] [-q] [-z]
vxlogmgr {-c | -m | -A filename} -f AbsoluteDir -w QueryString [-q] [-z]
vxlogmgr {-d | -F | -s} [-p ProductID] [-o OriginatorID] [-n Days] [-t Time] [-b StartDate] [-g LogSet] [-e EndDate] [-q] [-z]
vxlogmgr {-d | -F | -s} -w QueryString [-q] [-z]
vxlogmgr -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 vxlogmgr utility manages the log files that the unified logging-enabled applications generate. Log file management includes actions such as deleting or moving the log files that are based on log management configuration settings.
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 naming format, and the logging originator IDs, refer to the NetBackup Logging Reference Guide.
Specify the log management action to perform.
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.
It is surrounded by single quotes in UNIX and double quotes in Windows. For example:
UNIX: --stdate '1/1/2013 12:00:00 AM'
Windows: --stdate "1/1/2013 12:00:00 AM"
The required date and time values 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.
This option must be surrounded by single quotes in UNIX and double quotes in Windows.
UNIX: --endate '1/1/2013 12:00:00 PM'
Windows: --stdate "1/1/2013 12:00:00 AM"
On UNIX systems, this directory must be on the same device as the opt/openv/netbackup/logs directory, because the logs are hard linked rather than copied.
This option is valid only with the -c option.
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 relation operators include:
< Less than
> Greater than
<= Less than and equal to
>= Greater than and equal to
= Equal to
!= Not equal to
Supported logical operators include && (logical AND) and || (logical OR).
Predefined log fields include:
PRODID Product identifier (integer or string)
ORGID Originator identifier (integer or string)
STDATE Locale-specific start date (long integer or string [such as oqmm/dd/yycq])
ENDATE Locale-specific end date (long integer or string [such as oqmm/dd/yycq])
PREVTIME Previous time (string [hh:mm:ss])
Example 1 - Automatically move the older log files that NetBackup created to the folder /tmp/nblogs. The --auto option depends on the configuration setting NumberOfLogFiles.
# vxlogmgr -m --auto --dir /tmp/nblogs
Example 2 - Delete the last 15 days of NetBackup log files:
# vxlogmgr -d --prodid NB -n 15
Example 3- Copy the log files created from date 01/22/12 by NetBackup:
# vxlogmgr -c --where "(prodid = NB) && (stdate >= '01/22/12')"
UNIX systems:
--dir /usr/openv/logs
Windows systems:
--dir c:\temp\logfiles
Example 4 - Copy the log files that are created between 10/10/11 and 10/28/11 inclusive by product ID 100:
# vxlogmgr -c --where "(PRODID == 100) && ((STDATE >= '10/10/11')
UNIX systems:
&& (ENDATE <= '10/28/11'))" --dir /usr/openv/logs
Windows systems:
&& (ENDATE <= '10/28/11'))" --dir c:\temp\logfiles