02-06-2012 05:49 AM
Hi,
Can anybody know the command to get the stat and end time of a client backup .
Solved! Go to Solution.
03-22-2012 12:32 PM
try bpdbjobs -all_columns | awk -F"," '{print $7, $9, $11, $10, $4}'
04-08-2012 04:04 PM
It is the 7th, 9th 11th 10th and 4th fields of the comma separate output of the bpdbjobs -all_columns command.
However, the lines can be very long, and awk sometimes will not work.
If I run bpdbjobs -most_columns - these are the first 11 columns
384,0,3,237,womble_ad_disk,Full,*NULL*,,1333911123,0000000000,1333911123
These are ...
jobid,jobtype,state,status,class,schedule,client,server,started,elapsed,ended
I think this is better :
NOTE : THIS WILL ONLY WORK ON UNIX ... (awk does not work on windows)
bpdbjobs -most_columns |awk -F, '{print $1" "$5" "$6" "$9" " $11}'
This command gives the 1, 5th, 6th, 9th and 11th fields which from the descriptions are :
jobid class/ policy schedule start time end time
The output looks like this :
02-06-2012 05:54 AM
i am looking for a command to list the backups information (as in the activity monitor)
like
client >>>> $7
start time >>>> $9
end time >>>> $11
active elapsed time >>>> $10
status >>>> $4
Plz provide the awk script or command for this?
02-06-2012 06:24 AM
02-06-2012 07:19 AM
02-06-2012 07:37 AM
As per the tech note Marianne gave the link to above ....
Just run the bpdbjobs command with the switches you require - read through the tech note
02-06-2012 07:37 AM - edited 01-28-2018 04:55 AM
03-22-2012 10:20 AM
Is the command Given is right.
If I execute this Im not getting any output.
/usr/openv/netbackup/bin/admincmd/bpdbjobs -all_columns | awk '{print $7, $9, $11, $10, $4}'
03-22-2012 12:32 PM
try bpdbjobs -all_columns | awk -F"," '{print $7, $9, $11, $10, $4}'
03-23-2012 03:35 AM
03-24-2012 06:33 AM
-bash-3.2$ sudo ./bpdbjobs -all_columns | awk -F"," '{print $7, $9, $11, $10, $4}'
1332494446 0000000000 0000000424
1332494446 0000000000 0000000424
1332494446 0000000000 0000000424
1332494446 0000000000 0000000424
lxyump 1332494492 1332494808 0000000316 0
1332494032 0000000000 0000000838
lxyump 1332494058 0000000000 0000000812
lxyump34 1332493981 133
What is this?
04-08-2012 06:23 AM
please update on this?
04-08-2012 04:04 PM
It is the 7th, 9th 11th 10th and 4th fields of the comma separate output of the bpdbjobs -all_columns command.
However, the lines can be very long, and awk sometimes will not work.
If I run bpdbjobs -most_columns - these are the first 11 columns
384,0,3,237,womble_ad_disk,Full,*NULL*,,1333911123,0000000000,1333911123
These are ...
jobid,jobtype,state,status,class,schedule,client,server,started,elapsed,ended
I think this is better :
NOTE : THIS WILL ONLY WORK ON UNIX ... (awk does not work on windows)
bpdbjobs -most_columns |awk -F, '{print $1" "$5" "$6" "$9" " $11}'
This command gives the 1, 5th, 6th, 9th and 11th fields which from the descriptions are :
jobid class/ policy schedule start time end time
The output looks like this :
04-09-2012 01:38 AM
HI,
Is there a command to get the time in Sun Apr 8 19:52:03 2012 format when i run bpdbjobs.