07-19-2011 08:50 AM
Im trying to configure a script to mail out the mentioned report daily on a solaris master server .
can i use bperror command to do the below mentioned layout ?
CLIENT NAME START_TIME END_TIME KILOBYTES SUCCESSFUL RATE
------------------ ------------------ ------------------ -------------------- ------------------
07-20-2011 12:28 AM
Hi,
You can use bpdbjobs to extract the information you require. This command actually prints an output of what is shown the GUI (activity monitor). Check the note and pull out the fields that you require.
http://www.symantec.com/docs/TECH65123
07-20-2011 12:45 AM
thanks will try it
07-21-2011 05:40 AM
any luck?
07-21-2011 07:47 AM
Thanks we have some luck and manage to get the expected layout .
but still have some issues as below.
But there is 2 things to be fix by further customization :
1. The start time and end time output is not human readable format(eg: 1311146159), we need to convert it to human readable format.
2. Output alignment might be running out.
07-21-2011 07:54 AM
1. Use bpdbm -ctime
# bpdbm -ctime 1311146159
1311146159 = Wed Jul 20 08:15:59 2011
2. "Output alignment might be running out" - can you clarify?
07-21-2011 08:05 AM
Example when the client name character is long that the default , it will not display in the output.
07-21-2011 08:24 AM
Thought it 'expanded' to suit the size of the client name - there were issues in older versions that resulted in job-ids etc being truncated, but....
I presume you're not manipulating the output of bpdbjobs & it's that manipulation that's truncating the client name?
It is possible to use BPDBJOBS_COLDEFS entries in bp.conf to format the output of bpdbjobs, maybe worth playing with them?
BPDBJOBS_COLDEFS bp.conf entries for UNIX servers
http://www.symantec.com/business/support/index?page=content&id=HOWTO33188
07-21-2011 08:36 AM
thanks will try with it.
07-21-2011 11:33 AM
you say it "won't display at all"?
Is it actually the parent of a multi-streamed job? There is an additional option to bpdbjobs "-ignore_parent_jobs" ... just a thought.
07-21-2011 04:49 PM
it display only partially if the length of the characher is longer than the default .