Gathering unified logs for NetBackup
This topic uses an example to describe how to gather unified logs for NetBackup.
To gather unified logs for NetBackup
- Create a directory named /upload by using the following command.
# mkdir /upload
- Copy unified logs (for NetBackup only) to the /upload directory by using the following command:
# vxlogmgr -p NB -c --dir /upload
Example output:
Following are the files that were found: /usr/openv/logs/bmrsetup/51216-157-2202872032-050125-0000000.log /usr/openv/logs/nbemm/51216-111-2202872032-050125-0000000.log /usr/openv/logs/nbrb/51216-118-2202872032-050125-0000000.log /usr/openv/logs/nbjm/51216-117-2202872032-050125-0000000.log /usr/openv/logs/nbpem/51216-116-2202872032-050125-0000000.log /usr/openv/logs/nbsl/51216-132-2202872032-050125-0000000.log Total 6 file(s) Copying /usr/openv/logs/bmrsetup/51216-157-2202872032-050125-0000000.log ... Copying /usr/openv/logs/nbemm/51216-111-2202872032-050125-0000000.log ... Copying /usr/openv/logs/nbrb/51216-118-2202872032-050125-0000000.log ... Copying /usr/openv/logs/nbjm/51216-117-2202872032-050125-0000000.log ... Copying /usr/openv/logs/nbpem/51216-116-2202872032-050125-0000000.log ... Copying /usr/openv/logs/nbsl/51216-132-2202872032-050125-0000000.log ...
- Change to the
/uploaddirectory and list its contents.# cd /upload ls
Example output:
51216-111-2202872032-050125-0000000.log 51216-116-2202872032-050125-0000000.log 51216-117-2202872032-050125-0000000.log 51216-118-2202872032-050125-0000000.log 51216-132-2202872032-050125-0000000.log 51216-157-2202872032-050125-0000000.log
- Tar the log files.
# tar -cvf file_name.logs ./*