cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Backup Id form a Job

Schwarzkopf
Level 5

I´m looking for any way to extract the 'Backup Id' string from a job (command line). 

1 ACCEPTED SOLUTION

Accepted Solutions

watsons
Level 6

If you know the jobID, you can grep it straightaway from the job details:

For example, JobID =  1234

# grep -i backupid /usr/openv/netbackup/db/jobs/trylogs/1234.t  

From that output, just do some "cutting" / formatting to retrieve just the backupid. 

View solution in original post

4 REPLIES 4

Nicolai
Moderator
Moderator
Partner    VIP   

backup id from the activity monitor or just a job id's in general ?

job id in general can be retrived from the master server using bpimagelist 

http://www.veritas.com/docs/000032604

From activity monitor id you can use bpdbjobs -most_columns or all_columns for all the glory details 

Marianne
Level 6
Partner    VIP    Accredited Certified

Field 1 of bpdbjobs -all_columns or -most_columns output.

DOCUMENTATION: In NetBackup 6.x and 7.x, what does the output of "bpdbjobs -most_columns" mean?  http://www.veritas.com/docs/000036041 

and http://www.veritas.com/docs/000051018 

Use awk to parse the output.
Examples in lots of forum posts, e.g. https://vox.veritas.com/t5/NetBackup/bpdbjobs/td-p/497074 

watsons
Level 6

If you know the jobID, you can grep it straightaway from the job details:

For example, JobID =  1234

# grep -i backupid /usr/openv/netbackup/db/jobs/trylogs/1234.t  

From that output, just do some "cutting" / formatting to retrieve just the backupid. 

Marianne
Level 6
Partner    VIP    Accredited Certified

It would be sooooooo nice if @Schwarzkopf could reply to attempts to help.....
Not only this post....