Public - A Command Line Utility To Collect and Format NetBackup Job Logs
Public - A Command Line Utility To Collect and Format NetBackup Job Logs
Teradata.com
Home
BAR
KB0013613 FEEDBACK
Feedback
Introduction
The viewing of NetBackup job logs is normally carried out using the Activity Monitor slection
within the Netbackup GUI.
At times it's often helpful to be able to view the same information via a command line or have the
ability to easily save the output.
The command line "bpdbjobs" is supplied to do such a task, however the output is not easy to read
even when the -U option is used.
In the realm of Teradata, examination of a large number of NBU Jobs logs is required, making the
analysis of logs difficult with the tools currently available.
As such a new tool "nbjh" is being supplied in GSCTOOLS (Version 02.01.01.19) to help with look‐
https://support.teradata.com/knowledge?id=kb_article_view&sys_kb_id=48d3ded997dee59025b07da0f053af5b 1/6
1/23/24, 11:50 PM Public - A Command line utility to collect and format NetBackup Job Logs
To install the utility in the correct location the following command should be used on the transferred
Tarball
# tar -xPzvf nbjh.tgz
NAME
nbjh - a tool that collects and formats NetBackup Job Logs.
SYNOPSIS
nbjh [-v] [-h]
nbjh -D
DESCRIPTION
nbjh is a utility which collects and formats NetBackup Job logs in a way that makes reading
them easier to read and understand.
Options can be used to extract a single job, all jobs, failed jobs or Jobs of a particular type.
When more than one Job is being collected, the output will be placed into a directory or tar-
ball depending on the option used.
Another function of the utility is that it can produce a summary table of already collected job
logs located in the current working directory.
OPTIONS
-j <NetBackup JobID> Display the Job Log for the specified job
-a Collect all NBU Job logs available. (Requires the -d or -z options)
-c Carryout a count of the number of Jobs running at any point in time based on the job
logs available
https://support.teradata.com/knowledge?id=kb_article_view&sys_kb_id=48d3ded997dee59025b07da0f053af5b 2/6
1/23/24, 11:50 PM Public - A Command line utility to collect and format NetBackup Job Logs
-e Collect all NBU Job logs available that have a failure status (Requires the -d or -z op-
tions)
-t <Job Type> Collect all NBU Job logs available for jobs that are of the type specified
(Requires the -d or -z options)
-f <filename> Use filename as an input file, filename is created by the command "bpdbjobs
-noheader -all_columns >filename"
-T Restrict jobs to Teradata jobs
-S YYYYMMDD[hhmmss] Limit logs collected within starting date/time range ( Requires the
-E option)
-E YYYYMMDD[hhmmss] Limit logs collected within ending date/time range ( Requires the
-S option)
-d <Directory> Specify the directory to save the collected logs.
-z Save the collected logs into a compressed tarball, Useful for attaching to incidents
-k Keep the logs collected after the compressed tarball has been generated (Requires the -
z option)
-D Produce a table of the NBU Job logs in the current working directory
-v Version information
-h Help
EXAMPLES
To Display a single Job
# nbjh -j 1234
To collect all Restore jobs that failed and place them in the current directory
# nbjh -e -t Restore -d .
To create a summary list of the job logs previously collected located in the current directory
# nbjh -D
Environment
https://support.teradata.com/knowledge?id=kb_article_view&sys_kb_id=48d3ded997dee59025b07da0f053af5b 3/6
1/23/24, 11:50 PM Public - A Command line utility to collect and format NetBackup Job Logs
Instructions
Additional Information
Valid Job Types can be one of the following:
0) Backup
1) Archive
2) Restore
3) Verify
4) Duplicate
5) Import
6) Catalog Backup
7) Vault
8) Label
9) Erase
10) Tape Request
11) Tape Clean
12) Format Tape
13) Physical Inventory
14) Qualification
15) Database Recovery
16) Media Contents
17) Image Delete
18) LiveUpdate
20) Replication (Auto Image Replication)
21) Import (Auto Image Replication)
22) backup From Snapshot
23) Replication (snap)
24) Import (snap)
25) application state capture
26) indexing
27) index cleanup
28) Snapshot
29) SnapIndex
30) ActivateInstantRecovery
https://support.teradata.com/knowledge?id=kb_article_view&sys_kb_id=48d3ded997dee59025b07da0f053af5b 4/6
1/23/24, 11:50 PM Public - A Command line utility to collect and format NetBackup Job Logs
31) DeactivateInstantRecovery
32) ReactivateInstantRecovery
33) StopInstantRecovery
34) InstantRecovery
9999) NULL
Copy Permalink
Helpful?
Most Viewed
Teradata Systems Support Roadmap and Compatibility Matrix for Teradata Platforms,
Software and Associated Components
KB0027406 v145.0 • 6146 Views • 6mo ago • Published State
Which BAR Product Releases are Compatible/TD Certified with which RDBMS/TTU
Releases?
KB0014211 v69.0 • 1899 Views • about a month ago • Published State
Apache Log4j Vulnerabilities CVE-2021-44228 , CVE-2021-45046, CVE-2021-45105 &
CVE-2021-44832 (This KA will be regularly updated as more information becomes
available)
KB0044112 v98.0 • 1746 Views • 2y ago • Published State
Receiving error "javax.net.ssl.SSLHandshakeException: No appropriate protocol
(protocol is disabled or cipher suites are inappropriate)" when testing send email with
AWS SMTP server
KB0047574 v1.0 • 1148 Views • about a year ago • Published State
How to cleanly stop, start and verify Netbackup services
KB0013434 v4.0 • 913 Views • 2y ago • Published State
Most Useful
Teradata Systems Support Roadmap and Compatibility Matrix for Teradata Platforms,
Software and Associated Components
KB0027406 v145.0 • 6146 Views • 6mo ago • Published State
Apache Log4j Vulnerabilities CVE-2021-44228 , CVE-2021-45046, CVE-2021-45105 &
CVE-2021-44832 (This KA will be regularly updated as more information becomes
available)
KB0044112 v98.0 • 1746 Views • 2y ago • Published State
Discontinuation Notice for SQLA, TDAdmin, VEComp, TQS and Studio 32-bit version.
KB0014855 v1.0 • 126 Views • 6y ago • Published State
https://support.teradata.com/knowledge?id=kb_article_view&sys_kb_id=48d3ded997dee59025b07da0f053af5b 5/6
1/23/24, 11:50 PM Public - A Command line utility to collect and format NetBackup Job Logs
How to use ODBC connection with other linux user rather than root?
KB0027280 v1.0 • 57 Views • 2y ago • Published State
Recommended BAR Tuning - On-Prem
KB0041587 v39.0 • 689 Views • 2mo ago • Published State
Who we help
Roles
Partners
Partner portal login open_in_new
Industries
Success stories
Social media
Privacy Terms of Use Legal Report a Portal Issue Tracking Consent Careers
Support Policies © 2024 Teradata. All Rights Reserved
https://support.teradata.com/knowledge?id=kb_article_view&sys_kb_id=48d3ded997dee59025b07da0f053af5b 6/6