cancel
Showing results for 
Search instead for 
Did you mean: 

NetBackup command for activity monitor output

Amaan
Level 6

Hi All,

I need your help as usual.

Is it possible to get same output as activity monitor from command line. I know it is possible with bpdbjobs -report, but columns which i need are not appering in the report (output). Columns which I need are:

JobID - Parent JobID - Type - State - Policy name - Schedule name - Client name - Start time - End time.

Is there any way (documented or undocumented) to get this output about jobs (Failed, successful jobs) from command line.

Environment: Windows 2008 R2; and NBU 7.0.1

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Andy_Welburn
Level 6

bpdbjobs -most_columns

but it'll need some work:

 

DOCUMENTATION: In NetBackup 6.x and 7.x, what does the output of "bpdbjobs -most_columns" mean?
http://www.symantec.com/business/support/index?page=content&id=TECH65123

 

Think there's also an -all_columns option?

***EDIT***

Maybe this could also be of assistance:

DOCUMENTATION: How to customize the output of the bpdbjobs -report command with a Windows Master Server.
http://www.symantec.com/business/support/index?page=content&id=TECH46268

& a bit more on COLDEFS, but UNIX based:

BPDBJOBS_COLDEFS bp.conf entries for UNIX servers
http://www.symantec.com/business/support/index?page=content&id=HOWTO33188

View solution in original post

4 REPLIES 4

Andy_Welburn
Level 6

bpdbjobs -most_columns

but it'll need some work:

 

DOCUMENTATION: In NetBackup 6.x and 7.x, what does the output of "bpdbjobs -most_columns" mean?
http://www.symantec.com/business/support/index?page=content&id=TECH65123

 

Think there's also an -all_columns option?

***EDIT***

Maybe this could also be of assistance:

DOCUMENTATION: How to customize the output of the bpdbjobs -report command with a Windows Master Server.
http://www.symantec.com/business/support/index?page=content&id=TECH46268

& a bit more on COLDEFS, but UNIX based:

BPDBJOBS_COLDEFS bp.conf entries for UNIX servers
http://www.symantec.com/business/support/index?page=content&id=HOWTO33188

Amaan
Level 6

WOW, this is exactly what i was looking for. Thanks so much.

ONe more question. do you know any way of applying filter to the output. i was actually getting output from activity monitor (GUI) after applying some filter like: give me jobs which has ended more than 5/30/2012 6PM and less than 5/31/2012 6PM.

is it possible to do that?

Andy_Welburn
Level 6

There's no start/end time option in the bpdbjobs command.

You'd have to filter (script) the results as you intimated on field 11 (end-time) & I think that's output in 'ctime' so you'd have to work out what ctime values you needed to filter with.

bpdbm -ctime <ctime> converts Unix ctime to human readable format, but you'd need to do that in reverse somehow......

Symantec have a T/N on converting from ctime:

http://www.symantec.com/business/support/index?page=content&id=TECH11522

but nothing (un-suprisingly) for the reverse.

Andy_Welburn
Level 6

but that would depend on exactly what it is you need, can any of this output that you require be achieved via any of the Admin Console reports?

DOCUMENTATION: The command line equivalents for running the NetBackup reports available in the NetBackup user interface
http://www.symantec.com/business/support/index?page=content&id=TECH20462

- the majority of these do have start/end time options as well as being able to report further back than what you'll have in the Activity Monitor. But that would depend on what you're after as it seems you're obviously looking at the Activity Monitor for a specific reason.