You are on page 1of 2

Logs Most Relevant to Backups NetBackupTM 6.

0 VxUL Reference Card Logs Most Relevant to Restores


Master EMM Server Media Server Client Master EMM Server Media Server Client
Server Server
bprd nbrb bpbrm bpbkar bprd nbrb bpbrm tar
nbpem nbemm bptm nbpem nbemm bptm
Most Most
Relevant bpdbm mds bpdm Relevant bpdbm mds bpdm
nbjm da nbjm da
nbgenjob nbgenjob
vnetd ltid vnetd vnetd ltid vnetd
bpcd vnetd bpcd bpcd vnetd bpcd
Somewhat PBX tlcd/tldcd * bpfis Somewhat PBX tlcd/tldcd * bpfis
Less Less
Relevant nbproxy bpcd nbwin Relevant nbproxy bpcd nbwin
bpjobd vmd * bpmount bpjobd vmd * bpmount
admin * tpcommand * admin * tpcommand *
Items in the tables above marked with * are a special case – where the name of the debug log directory IS NOT the same as the name of the
process/daemon: The ‘admin’ debug log folder logs entries generated by NetBackup commands residing in the ‘admincmd’ folder. The txxd/txxcd
daemonss write to log files in the ‘robots’ directory. The ‘vmd’ daemon writes to log files in the ‘daemon’ directory. The ‘tpcommand’ log directory contains
debug log files used by ‘tpconfig’ and ‘tpautoconf’ commands.
Setting Verbosity Levels Verbosity Levels
CLI GUI Information to be logged

0 No No Logging
Logs
Affects both Unified and Legacy logs
1 0 Very important low-volume diagnostic and debug messages

2 1 This level adds verbose diagnostic and debug messages

3 2 Adds progress messages

4 3 Adds informational dumps

5 4 Adds function entry/exits

6 5 Finest detail: everything is logged

Affect Unified logs only CLI levels set in nblog.conf file using vxlogcfg command

Originator IDs vxlogmgr Options Verbose Logging in nblog.conf


111 nbemm To set the maximum logging level for all
Example Description
112 Default OID; not in nblog.conf daemons run:
116 nbpem -b -b “1/1/06 9:34:00 AM” Copy logs created after start date # cd /usr/openv/netbackup/bin
117 nbjm # ./vxlogcfg -a -p 51216 -o Default -s
118 nbrb -c -c Copy logs to a folder specified by DebugLevel=5 -s DiagnosticLevel=5
119 bmrd and bmrdb –f option
121 bmrsavecfg To return to the default level of logging
122 bmrc -e -e “1/1/06 4:45:00 PM” Copy logs created before end date for all daemons run:
123 bmrs # cd /usr/openv/netbackup/bin
124 bmrcreatefloppy.exe -f -f /usr/tmp/vxlogs Specify folder to copy logs to # ./vxlogcfg -a -p 51216 -o Default -s
125 bmrcreatesrtadm DebugLevel=1 -s DiagnosticLevel
126 bprprep -h -h Display command usage and help
127 bmrsetupmaster, bmrsetupboot, and pans To disable logging for all daemons run:
128 bmrcleanup.exe -n -n 2 Copy logs created in last X days # cd /usr/openv/netbackup/bin
129 bmrconfig # ./vxlogcfg -a -p 51216 -o Default -s
130 bmrpkg and bmrcreatepkg -o -o 116 Gather logs for originator ID DebugLevel=0 -s DiagnosticLevel=0
131 bmrst.exe and bmrmap.exe
132 nbsl -p -p 51216 Gather logs for product ID After setting these options run vxlogcfg -p
134 ndmpagent 51216 -o Default -l to verify the change is
137 libutil.so and libmessaging.so in place. No process restart is needed for
-q -q Quiet mode
140 mmui changes to Unified Logging to take affect.
142 bmrepmgt
143 mds -t -t 12:15:00 Copy logs created in last X hours NOTE: View the DebugLevel and
146 NOMTRS DiagnosticLevel entries in the nblog.conf
147 NOMClient -v -v Display vxlogmgr version file to see if any specific originator ID
148 NOMServer changes have been made
151 NDMP, avrd, and robotic processes -z -z “GMT-6:00” Display logs for specific timezone
VxUL Filename Format
153 nbgenjob
157 nbnos Found in nblog.conf
163 nbsvcmon <productID>-<originatorID>-<hostID>-<date>-<rotation>.log
vxlogview Examples NetBackupTM 6.0 VxUL Reference Card --where Query Options
View VxUL log entries for a specific job ID: vxlogview –p 51216 –X “jobid=12345” Field Example Description

For Multistreamed jobs use –where option to build a query PRODID or (prodid = Search for the product ID or the abbreviated
prodid 51216) name of product.
To view unified log entries for a specific start or end time:
vxlogview -p 51216 -b "07/21/05 1:30:00 PM" -e "7/21/05 2:32:00 PM" ORGID or (orgid = Search for the originator ID or the abbreviated
orgid 116) name of the component.
To view unified log entries within the last time interval:
(pid = Search for the process ID that logged the
vxlogview -p 51216 -t 01:30:00 PID or pid
27187) message.

To display all Error messages for the last 24 hours run: TID or tid (tid = 3) Search for the thread ID.
vxlogview -p 51216 -L -E -t 24:00:00
STDATE or (stdate Search for a start date in seconds or in a specific
stdate >= date) 'MM/DD/YYYY HH:MM:SS AM|PM' format.
Using the -o <originator> option to display nbpem logs in last 30 minutes:
ENDATE or (endate Search for a end date in seconds or in a specific
vxlogview -p 51216 -o 116 -t 00:30:00 endate <= date) 'MM/DD/YYYY HH:MM:SS AM|PM' format.
To display all output fields: vxlogview -p 51216 -t 00:15:00 -d all
PREVTIME (prevtime Search for a previous time in a 'HH:MM:SS'
To view unified log entries for all Products in last hour: or prevtime = time) format.
vxlogview -a -t 01:00:00 -d all Search for the severity type. Valid settings for
(sev =
SEV or sev sev are INFO, WARNING, ERR, CRITor
ERR)
EMERG.
NOTE: Use these commands in combination to limit the output. Best practice
is to redirect the output to a file. Search for the message type. Valid settings for
MSGTYPE or (msgtype
msgtype are: DEBUG, DIAG, APP, CTX or
msgtype = APP)
AUDIT.
--where Query Examples
(ctx =
CTX or ctx Search for the context token as string identifier.
1 Search for all job submission details. This will display birth and death times for token)
jobs as well as any job submission details for jobs created after 10/25/2005.
LEVEL or (level = Search for a specific logging level (1 - 5) to
# vxlogview --where "( who = '?' ) && (orgid = 116) && (stdate >= '10/25/2005
level 5) display messages for.
00:00:00 AM')"
(who =
2. Search for any log entry with a severity higher than [Info] written on or after WHO or who Search for who logged a message.
'[?]')
10/25/2005.
# vxlogview --where "(sev > INFO) && (stdate >= '10/25/2005 00:00:00 AM')" Operator Example Description

3. Search for any log entry that was generated at a diagnostic level of four or < (level < 3) A < is used for less than.
higher. (sev >
# vxlogview --where "((msgtype = DIAG) && (LEVEL >= 4) && (stdate >= > INF A > is used for greater than.
'10/27/05 0:0:0 AM')" O)
(endate <=
4. Search for a context value, such as multiple job Id's. <= date A <= is used for less than or equal to.
# vxlogview --where "((ctx = 'jobid=1561') || (ctx = 'jobid=1562')) && (stdate >= )
(stdate >=
'10/25/2005 02:00:00 PM')"
>= date A >= is used for greater than or equal to.
)
5. Search for log messages for the VxICS product that were logged between the (pid =
dates 10/25/05 and 10/26/05: = 149 A = is used for equal to.
# vxlogview --where "(prodid = 'ics') && ((stdate >= '10/25/05 0:0:0 AM') && 26)
(endate <= '10/26/05 23:59:59 PM'))"
(orgid !=
!= A != is used for not equal to.
116)
6. This query will retrieve log messages, which are logged before 10/27/2005 for
all the installed Veritas products.
# vxlogview --where "(STDATE <= '10/27/05 0:0:0 AM')" Operator Example Description

7. This query will retrieve log messages for multiple originators for the NetBackup "(orgid = 116) && (stdate >= A double ampersand is a logical
&&
product. date)" AND.
# vxlogview --where "((orgid = 116) || (orgid = 117)) && (stdate >= 10/27/05 0:0:0
AM')" || "(sev = ERR) || (sev = CRIT)" A double pipe is a logical OR.

Rollover Mode Examples


To set the RolloverMode to LocalTime
vxlogcfg -a -p 51216 -o Default -s RolloverMode=LocalTime -s
RolloverAtLocalTime=00:00
Deleting VxUL Logs
vxlogmgr --del -p <ProductID> -o <OriginatorID> -e <enddate>
To set the RolloverMode to FileSize
The --del option will delete any matching log files.
vxlogcfg -a -p 51216 -o Default -s RolloverMode=FileSize -s
The -p <ProductID> is optional. This should be used to limit the deleting of logs
MaxLogFileSizeKB=51200
to specific products, such as 51216 (NetBackup).
To set the RolloverMode to Periodic The -o <OriginatorID> is optional. This should be used to limit the deleting of
logs to specific originators, such as 116 (nbpem).
vxlogcfg -a -p 51216 -o Default -s RolloverMode=Periodic -s
The -e <enddate> is optional. This will delete any log files created before the
RolloverPeriodInSeconds=43200
date specified. The format for the date is 'MM/DD/YYYY hh:mm:ss AM|PM'
surrounded by single quotes.
To set the RolloverMode to None
vxlogcfg -a -p 51216 -o Default -s RolloverMode=None

You might also like