Technical Support Services
Showing results for 
Search instead for 
Do you mean 

DPTIPS: Some Handy Media Reports

‎04-19-2013 09:51 AM - edited ‎03-10-2016 08:45 AM

Have you ever found yourself wanting some quick media stats from you Data Protector installation, but you didn't want to spend a lot of time clicking through the GUI?  Recently I had a chance to try some different forms of the "omnirpt" command specific to the "media_statistics" report.  These reports run quickly, and you could easily incorporate them into a scripted solution for monitoring media statistics in summary form.

 

So here we go!

 

First, the report in its most general form can be had by just using the report name.  This gives you a summary of all media in your Cell regardless of pool, library, media type, or protection.

 

C:\> omnirpt -report media_statistics 
Media Statistics

Cell Manager: fanta
Creation Date: 4/19/2013 7:36:00 AM

# Media: 705
# Scratch: 585
# Protected: 120
# Good : 673
# Fair: 0
# Poor: 32
Total [GB]: 2770815.51
Used [GB]: 1052.36
Free [GB]: 2769763.15
# Appendable: 120

 

Although interesting and perhaps useful, you will more than likely be interested in media only within a specific pool.  In that case, you simply add the "-pool" option followed by the media pool name of interest.

 

C:\> omnirpt -report media_statistics -pool Jim_4220_MediaPool 
Media Statistics

Cell Manager: fanta
Creation Date: 4/19/2013 7:38:25 AM

# Media: 82
# Scratch: 32
# Protected: 50
# Good : 82
# Fair: 0
# Poor: 0
Total [GB]: 335872.00
Used [GB]: 128.24
Free [GB]: 335743.76
# Appendable: 50

 

This narrows your scope to only statistics for the given pool.  You can also filter by library rather than pool by using the "-library" option.  That reports on media resident in the specified library without regard to pool membership.

 

C:\> omnirpt -report media_statistics -library Geoff_Test_4220 
Media Statistics

Cell Manager: fanta
Creation Date: 4/19/2013 7:41:44 AM

# Media: 20
# Scratch: 20
# Protected: 0
# Good : 20
# Fair: 0
# Poor: 0
Total [GB]: 81920.00
Used [GB]: 0.00
Free [GB]: 81920.00
# Appendable: 0

 

Perhaps you're shopping for media in a specific pool that has protection expiring in the next 7 days.  We can do that, too!  Just add the "-protection" option followed by a number of days.

 

C:\> omnirpt -report media_statistics -pool Jim_4220_MediaPool -protection 7 
Media Statistics

Cell Manager: fanta
Creation Date: 4/19/2013 10:15:01 AM

# Media: 6
# Scratch: 0
# Protected: 6
# Good : 6
# Fair: 0
# Poor: 0
Total [GB]: 24576.00
Used [GB]: 15.82
Free [GB]: 24560.18
# Appendable: 6

 

Finally, your interest may be stats for only scratch (expired) media in a particular pool.  You can get that with the "-no_protection" switch.

 

C:\> omnirpt -report media_statistics -pool Jim_4220_MediaPool -no_protection 
Media Statistics

Cell Manager: fanta
Creation Date: 4/19/2013 10:16:04 AM

# Media: 32
# Scratch: 32
# Protected: 0
# Good : 32
# Fair: 0
# Poor: 0
Total [GB]: 131072.00
Used [GB]: 0.00
Free [GB]: 131072.00
# Appendable: 0

 

There are dozens of other option combinations for the media_statistics report.  You will find that information and much, much more in the Command Line Interface (CLI) Reference available anywhere you have the documentation packet installed.  You can also find a copy at http://support.openview.hp.com/selfsolve/document/KM1363241/binary/DP7.00_CLIReference.pdf.

 

I'm a certified Unix curmudgeon and command line guy from way back.  The GUI is a convenient tool, but if you want to get some real work done ...

... come to the dark side, Luke.

About the Author

Jim Turner

Jim is a multi-disciplined engineering professional with 30 years of electronic and systems experience. For the past 17 years, Jim’s primary focus has been enterprise backup, recovery, and archiving (BURA). As an HPE Master Technologist, he is recognized as a global authority on HPE Data Protector, HPE StoreOnce, and the proper integration of both. Jim's consulting has stretched over 350k miles and 145 unique locations in North America during his 9 years with HP(E). When not traveling, Jim resides in Edmond, OK with his wife, two grown children, and two dogs.

Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the Community Guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Labels
Events
Aug 29 - Sep 1
Boston, MA
HPE Big Data Conference 2016
Attend HPE’s Big Data Conference to learn from peers in every industry and hear from Big Data experts and thought leaders in an exciting, energy fille...
Read more
Sep 13-16
National Harbor, MD
HPE Protect 2016
Protect 2016 is our annual conference and is the place to meet the world’s top information security talent, discuss new products and share information...
Read more
View all