Netbackup Quick Ref Logging60
Netbackup Quick Ref Logging60
0 No No Logging
Logs
Affects both Unified and Legacy logs
1 0 Very important low-volume diagnostic and debug messages
Affect Unified logs only CLI levels set in nblog.conf file using vxlogcfg command
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.