Examples of using vxlogmgr to manage unified logs

Article:HOWTO34326  |  Created: 2010-10-29  |  Updated: 2011-03-11  |  Article URL http://www.symantec.com/docs/HOWTO34326
Article Type
How To


Environment

Subject


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

Based on the "List the log files" example, if the vxlogcfg NumberOfLogFiles option is set to 1, the following deletes the two oldest log files for the nbrb service:

# 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

Delete the log files for a specific originator

Delete all unified log files for originator nbrb:

# vxlogmgr -d -o nbrb

Delete all the log files

Delete all unified log files for NetBackup:.

# vxlogmgr -d -p NB

See Examples of using vxlogview to view unified logs

See Examples of using vxlogcfg to configure unified logs


Legacy ID



v40601066_v46435090


Article URL http://www.symantec.com/docs/HOWTO34326


Terms of use for this information are found in Legal Notices