DOCUMENTATION: How to adjust the Backup-ID column size or the Policy column size when running bpimmedia with the -L or -U options

Article:TECH36016  |  Created: 2009-01-15  |  Updated: 2011-11-26  |  Article URL http://www.symantec.com/docs/TECH36016
Article Type
Technical Solution


Environment

Issue



The BackupID column is being truncated when a bpimmedia report is run with the -L or -U switch (-l is fine).


Cause



By default the bpimmedia -L or bpimmedia -U commands will truncate the backup ID if it is greater than twenty characters (unlike the the -l output) .  The default spacing allows for a nine character host name, one underscore and a ten digit ctime. The policy name will also be truncated if it is 10 characters or more.  The column size can be adjusted by creating a SmeMsgs file on the master.  This file can be used to control the number of characters NetBackup will display when running the above commands.


To duplicate this issue run the bpimmedia -L or bpimmedia -U commands.  Any clients with host names larger than nine characters or policies with names larger than ten characters will be truncated.

# /usr/openv/netbackup/bin/admincmd/bpimmedia -L
Backup-ID            Policy     Type  RL  Files  ...
Copy Frag    KB Type Density FNum      Off       ...
-------------------------------------------------...
netbackup001_1109139 my_policy INCR  1   1513    ...
1   1   320645 RMed dlt     54        495000    ...

The correct backup ID should be: netbackup001_1109139264
The final three digits are truncated due to a twelve character host name.


Solution



The column size can be adjusted by creating a SmeMsgs file on the master.
 
1) As root, create the following file:
 
On UNIX: /usr/openv/msg/C/netbackup/SmeMsgs
 
On Windows: <install_path>\VERITAS\msg\C\NetBackup\SmeMsgs
 

 
2) Add the entries:
 
SmeImm0036N "%-30.30s %-15.15s %-5.5s %-1d %-7d %-1.1s %-1.1s %-1.1s %-2d %s\n"
 
SmeImm0020N "Backup-ID            Policy     Type  RL  Files   C  E  T  PC  Expires\n"
 

 
The %-30.30s in the SmeImm0036N line changes the column width for the backup ID to 30 characters.   The default is column width is 20  (%-20.20s) characters.
 
The %-15.15s in the SmeImm0036N line changes the column width for the policy to be 15 characters.  The default column width is 10 (%-10.10s) characters.
 

 
3) Save the file.  
 
No restart is necessary.  The changes will take effect the next time the bpimmedia -L or bpimmedia -U command is run. 



Legacy ID



273598


Article URL http://www.symantec.com/docs/TECH36016


Terms of use for this information are found in Legal Notices