How to customize the output of the bpdbjobs -report command with a Windows Master Server.

Article: 100017436
Last Published: 2013-04-01
Ratings: 0 0
Product(s): NetBackup & Alta Data Protection

Problem

The bpdbjobs -report command can be customized to display any number of specific columns on a Windows Master Server. 

 

 

Error Message

This functionality can be useful in many situations.  For instance, the command "bperror -U -backstat" has limitations regarding column width.  The "bpdbjobs -report" command does not have this limitation.

Solution

Customization of headers for the output of bpdbjobs -report is possible by doing the following:
  • Open regedt32 on the Master Server
  • Browse to HKEY_LOCAL_MACHINE\Software\VERITAS\NetBackup\CurrentVersion\Config
  • Add a REG_MULTI_SZ value named BPDBJOBS_COLDEFS
  • Edit the value and add the desired column headers to the Data field using the format seen in Figure 1, pressing [ENTER] at the end of each line to insert a carriage return

The below example would display the default BPDBJOBS parameters in columned format.  The numerical value following each parameter specifies the column width in characters. The "true" value that follows the column width is what enables the display of that column:
 
Figure 1.
 
 
 
The entries are not case-sensitive. NetBackup Services do not need to be restarted.  The following is an alphabetical list of available parameters:
ACTPID             PATHNAME
BACKUPTYPE         POLICY
CLIENT             POLICYTYPE
COMPLETION         PRIORITY
COMPRESSION        PRODUCT
DSTMEDIA_SERVER    PROFILE
DSTMEDIAID         RETENTION
DSTSTORAGE_UNIT    ROBOT
ELAPSED            RQSTPID
ENDED              SCHEDULE
ESTFILE            SCHEDULETYPE
ESTKB              SESSIONID
FILES              SRCMEDIA_SERVER
GROUP              SRCMEDIAID
JOBID              SRCSTORAGE_UNIT
JOBSTVERSION       STARTED
KBPERSEC           STATE
KILOBYTES          STATUS
LASTBACKUP         STREAMNUMBER
MAINPID            TRY
NUMTAPESEJECT      TYPE
OPERATION          VAULT
OWNER              VERSION
PARENTJOBID  
 
Warning : Incorrect use of the Windows registry editor may prevent the operating system from functioning properly. Great care should be taken when making changes to a Windows registry. Registry modifications should only be carried-out by persons experienced in the use of the registry editor application. It is recommended that a complete backup of the registry and machine be made prior to making any registry changes.

Was this content helpful?