07-06-2012 04:10 PM
Hi,
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.
thanks
07-06-2012 04:40 PM
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.
07-06-2012 10:11 PM
bpdbjobs will give out the same output in text from as the GUI's activity monitor.
Complete documentation for command line options for bpdbjobs.
http://www.symantec.com/docs/TECH10598
You may also take a look at bpimagelist (for complete backups, not restore)
http://www.symantec.com/docs/TECH5584
07-07-2012 03:07 PM
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
07-08-2012 06:04 AM
bpdbjobs will show me files to be restored ?
07-08-2012 12:08 PM
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,,,, ,
----------------------------------------
07-08-2012 08:26 PM
@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
ENTER CHOICE:
Two other commands:
bplist
bpflist
07-11-2012 03:10 PM
Hi,
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/*
07-11-2012 09:15 PM
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 http://www.symantec.com/docs/DOC3650
07-12-2012 12:20 PM
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 ??
07-12-2012 01:01 PM
So... If you need that elusive 1%, see my post above: https://www-secure.symantec.com/connect/forums/which-nbu-command-can-i-use-see-all-data-job?page=0#c...
07-12-2012 02:17 PM
Because it wasn't coded to do that?
That's what features like nbaudit and NBAC are for.