cancel
Showing results for 
Search instead for 
Did you mean: 

NB script

Shehkh4
Level 4

NetBackup Flex Appliance
Our client wants log for backups running on the appliance, we created a script that redirects output of bpimagelist -U command into a file or / directory. But in there previous appliance they had policy names on the names of clients but in this new appliance we have policy names according to the category of client like for e.g if client name is A then policy name for all A* nodes is A*_Backups. Now the client wants client column or client names inside the log files.

So can anyone plz help me change the command that will give client names also along with the backup status or give options to use with the same script to include client names also, Thanks

1 REPLY 1

jnardello
Moderator
Moderator
   VIP    Certified

You'll need to use the more script-friendly short-mode default option for bpimagelist, along with referencing this technote to tell you what fields to look for.

https://www.veritas.com/support/en_US/article.100017904

Example:

-bash-4.2# bpimagelist -backupid myclient.domain.com_1713798000 | awk '/IMAGE/ {print "Client=" $2, ", policy= "$7 ", schedule= "$11 }'
Client=myclient.domain.com , policy= mypolicy, schedule= Incremental-10am
-bash-4.2#