Video Screencast Help

Which NBU command can I use to see all data from a job ?

Created: 06 Jul 2012 | 11 comments


I´m looking for a command line to see all data from a NBU JobID, like I can see in NBU GUI -  (NBU 7.0.1 - Linux)

I need get all data from restore jobs.


Discussion Filed Under:

Comments 11 CommentsJump to latest comment

Soumyaa's picture

If you are looking for a failed logfile for restore you initiated it can be from

/usr/openv/netbackup/logs/user_ops/<Used ID>/logs/

<User ID> means from which ID you initiated restore. In this logs directory you must see the logs of restore log irrespective of failure and succes. For failure trouble shooting this is the best way to look into this log.

Nicolai's picture

bpdbjobs will give out the same output in text from as the GUI's activity monitor.

Complete documentation for command line options for bpdbjobs.

You may also take a look at bpimagelist (for complete backups, not restore)

DOCUMENTATION: What are the different fields in "bpimagelist -l" output?

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

mansoor.sheik's picture

Hi Schwarz,

As nicoli's excellent post, you can get the jobs details using bpdbjobs. The command provide you all the details. If you want to list only certain field you can use the awk option.

bpdbjobs |awk '{print $1" "$5" "$6" "$9" " $11}' | more

mansoor.sheik's picture

Hi Schwarzkopf,

bpdbjobs will show the file list to be restored. -all_columns option has to be used.

For example - bpdbjobs  -all _columns

I showed only 12019 jobid details.Here the field 32 will enlist the files are restored in the job.


12019,2,1,,,,CDCDRBAETEST,,1341757899,0000015917,0000000000,,1,0,,,,0,27480,root,,,,,sys,bkpsvr,,,,0,52393,6,/C/Documents and Settings/baetest1/Desktop/,/C/B
AE_Connections/,/C/Inetpub/,/E/BAE_DB_DAILY_BKP/BAExtranet/,/E/IISLOG/,/E/bae_production/,1,27480,,,1341757909,0000015907,0000000000,,,5,07/08/12 20:01:39 -
begin Restore operation,07/08/12 20:01:49 - 1 images required,07/08/12 20:01:49 - media STO025 required,07/08/12 20:01:49 - media STO493 required,07/08/12 20
:01:49 - media STO022 required,0,0,,,,,,,,,,,,,,1,0,,,,,1,,,, ,


Marianne's picture

@Schwarzkopf, it is not entirely clear from your opening post what exactly you are looking for...

If you talk about a specific job, we assume that you are looking for Job details in Activity Monitor. bpdbjobs will give you those details.

If you need to see files and folders that were backed up, as can be seen in BAR GUI, you can use the text-based version of the GUI - bpadm or bp.

In bpadm menu, you can find BAR here (extract from Admin Guide II):

NetBackup Administration
d) Data Classification Management...
s) Storage ...
p) Policy Management...
g) Global Configuration...
f) Fibre Channel Transport Management...
r) Reports...
m) Manual Backups...
x) Special Actions...
u) User Backup/Restore...
e) Media Management...
o) Server Group Management...
h) Help
q) Quit

Two other commands:

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Schwarzkopf's picture


I create a script to show me users that issued restores, but anytimes I can´t see the user that issued

the restore...

grep  job_id  /usr/openv/netbackup/logs/user_ops/*/logs/*

Marianne's picture

So, you need to see which user started a restore?

If you need that kind of control, you need NBAC (NBU Access control) combined with Auditing.

See Auditing NetBackup operations (chapter 22) of NBU Admin Guide for UNIX and Linux, Volume I

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Schwarzkopf's picture

When I do a grep  job_id  /usr/openv/netbackup/logs/user_ops/*/logs/* , in 99% times I can find

the job issuer, but anytimes I can´t found that information. Why NBU doesn´t log that data ??

revarooo's picture

Because it wasn't coded to do that? 

That's what features like nbaudit and NBAC are for.

Marianne's picture

So... If you need that elusive 1%, see my post above:

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links