Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ Logging Reference Guide
  3. Using logs
  4. About unified logging
  5. Examples of using vxlogmgr to manage unified logs
Veritas NetBackup™ Logging Reference Guide

Examples of using vxlogmgr to manage unified logs

The following examples show how to use the vxlogmgr command to manage unified logging files. Log file management includes actions such as deleting or moving the log files.

Table: Example uses of the vxlogmgr command

Item

Example

List the log files

List all unified log files for the nbrb service:

# vxlogmgr -s -o nbrb
/usr/openv/logs/nbrb/51216-118-1342895976-050503-00.log
/usr/openv/logs/nbrb/51216-118-1342895976-050504-00.log
/usr/openv/logs/nbrb/51216-118-1342895976-050505-00.log
Total 3 file(s)

Delete the oldest log files

If the vxlogcfg NumberOfLogFiles option is set to 1, the following example deletes the two oldest log files for the nbrb service:

# vxlogcfg -a -p 51216 -o nbrb -s NumberOfLogFiles=1
# vxlogmgr -d -o nbrb -a 
Following are the files that were found:
/usr/openv/logs/nbrb/51216-118-1342895976-050504-00.log
/usr/openv/logs/nbrb/51216-118-1342895976-050503-00.log
Total 2 file(s)
Are you sure you want to delete the file(s)? (Y/N):
Y
Deleting 
/usr/openv/logs/nbrb/51216-118-1342895976-050504-00.log ...
Deleting 
/usr/openv/logs/nbrb/51216-118-1342895976-050503-00.log ...

Delete the newest log files

Delete all the unified log files that NetBackup created in the last 15 days:

# vxlogmgr -d --prodid 51216 -n 15

Make sure that you roll over (rotate) the log files before you recycle them.

Delete the log files for a specific originator

Delete all unified log files for originator nbrb:

# vxlogmgr -d -o nbrb

Make sure that you roll over (rotate) the log files before you recycle them.

Delete all the log files

Delete all unified log files for NetBackup:

# vxlogmgr -d -p NB

Make sure that you roll over (rotate) the log files before you recycle them.

Control the number of log files

You can use the vxlogmgr command with the vxlogcfg command's NumberOfLogFiles option to manually delete log files.

For example, the NumberOfLogFiles option is set to 2, you have 10 unified logging files, and cleanup has not occurred. Enter the following to keep the two most recent log files and delete the rest for all originators:

# vxlogmgr -a -d

The following command keeps the two most recent log files of all PBX originators:

# vxlogmgr -a -d -p ics

The following deletes the older log files for the nbrb service only:

# vxlogmgr -a -d -o nbrb

Control disk space usage

Periodically run the vxlogmgr -a -d command (such as through a cron job) to delete logs and monitor the disk space that unified logging uses.

The disk space that a given originator uses can be calculated as follows:

NumberOfLogFiles for originator * MaxLogFileSizeKB for originator

The total disk space that unified logs consume is the sum of the disk space that each originator consumes. If none of the originators override the NumberOfLogFiles and MaxLogFileSizeKB settings, then the total disk space that unified logging consumes is as follows:

Number of originators * default MaxLogFileSizeKB * default NumberOfLogFiles

Use the vxlogcfg command to list the current unified logging settings.

For example, assume the following:

  • vxlogmgr -a -d -p NB is configured as a cron job with a frequency of one hour.

  • No originators override default settings for MaxLogFileSizeKB or NumberOfLogFiles.

  • The number of active NetBackup originators on the host is 10. (Typical of a NetBackup master server that is not running BMR or NDMP.)

  • The default MaxLogFileSizeKB is equal to 51200.

  • The default NumberOfLogFiles is equal to 3.

To calculate the total disk space that unified logging consumes, insert the values from the example into the previous formula. The results are as follows:

10 * 51200 * 3 KB = 1,536,000 KB of additional disk space used each hour.

Feedback

Was this page helpful?
Previous

Examples of using vxlogview to view unified logs

Next

Examples of using vxlogcfg to configure unified logs

Feedback

Was this page helpful?