command to get the stat and end time of a client backup
Updated: 22 Mar 2012 | 12 comments
This issue has been solved. See solution.
Hi,
Can anybody know the command to get the stat and end time of a client backup .
Discussion Filed Under:
Comments
i am looking for a command
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?
Parse bpdbjobs
Parse bpdbjobs output.
http://www.symantec.com/docs/HOWTO43650
Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows.
Handy NBU links
Parse bpdbjobs? How to do
Parse bpdbjobs?
How to do this?
As per the tech note Marianne
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
Authorised Symantec Consultant
Don't forget to give a "Thumbs Up" or mark as "Solution" if someones advice has helped you.
It seems you have found this
It seems you have found this post:
https://www-secure.symantec.com/connect/forums/re-...
'parse' means that you can use shell commands such as grep and awk to extract specific info.
If you google
netbackup bpdbjobs awk
you will be guaranteed to find some examples!
You can also do a 'man awk' from cmd to learn what awk can do for you.
Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows.
Handy NBU links
Please Check
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}'
Amarnath Sathishkumar
If this comment is helpfull, Don't forget to give a "Thumbs Up" or mark as "Solution"
should work
try bpdbjobs -all_columns | awk -F"," '{print $7, $9, $11, $10, $4}'
good Will backing-up
Error executing the Command
Amarnath Sathishkumar
If this comment is helpfull, Don't forget to give a "Thumbs Up" or mark as "Solution"
-bash-3.2$ sudo ./bpdbjobs
-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?
please update on this?
please update on this?
It is the 7th, 9th 11th 10th
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 :
HI, Is there a command to
HI,
Is there a command to get the time in Sun Apr 8 19:52:03 2012 format when i run bpdbjobs.
Would you like to reply?
Login or Register to post your comment.