Veritas NetBackup™ Logging Reference Guide
- Using logs
- About unified logging
- About legacy logging
- About global logging levels
- Troubleshooting error messages in the NetBackup Administration Console
- Backup process and logging
- Media and device processes and logging
- Restore process and logging
- Advanced Backup and Restore Features
- Storage logging
- NetBackup Deduplication logging
- OpenStorage Technology (OST) logging
- Snapshot technologies
- Locating logs
- Java-based administration console logging
Examples of using vxlogview to view unified logs
The following examples demonstrate how to use the vxlogview command to view unified logs.
Table: Example uses of the vxlogview command
Display all the attributes of the log messages
vxlogview -p 51216 -d all
Display specific attributes of the log messages
Display the log messages for NetBackup (51216) that show only the date, time, message type, and message text:
vxlogview --prodid 51216 --display D,T,m,x
Display the latest log messages
Display the log messages for originator 116 (nbpem) that were issued during the last 20 minutes. Note that you can specify -o nbpem instead of -o 116:
# vxlogview -o 116 -t 00:20:00
Display the log messages from a specific time period
Display the log messages for nbpem that were issued during the specified time period:
# vxlogview -o nbpem -b "05/03/15 06:51:48 AM" -e "05/03/15 06:52:48 AM"
Display results faster
You can use the -i option to specify an originator for a process:
# vxlogview -i nbpem
The vxlogview -i option searches only the log files that the specified process (nbpem) creates. By limiting the log files that it has to search, vxlogview returns a result faster. By comparison, the vxlogview -o option searches all unified log files for the messages that the specified process has logged.
If you use the -i option with a process that is not a service, vxlogview returns the message "No log files found." A process that is not a service has no originator ID in the file name. In this case, use the -o option instead of the -i option.
The -i option displays entries for all OIDs that are part of that process including libraries (137, 156, 309, etc.).
Search for a job ID
# vxlogview -i nbpem | grep "jobid=job_ID"
The jobid= search key should contain no spaces and must be lowercase.
When searching for a job ID, you can use any vxlogview command option. This example uses the -i option with the name of the process (nbpem). The command returns only the log entries that contain the job ID. It misses related entries for the job that do not explicitly contain the jobid=job_ID.
See the NetBackup Commands Reference Guide for a complete description of the vxlogview command. The guide is available through the following URL: