Networker

Re: [Networker] Using -r option with media report?

2004-05-07 12:06:00
Subject: Re: [Networker] Using -r option with media report?
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Fri, 7 May 2004 09:05:51 -0700
>
> Why doesn't the '-r' option work with a media report?

Ahh, the intricacies of mminfo and reports.  The basic problem here is
"What is a media report, and how does it differ from other reports?"

It turns out that mminfo has at least 3 separate "styles" of reports
(and really more than that in some strange ways).  The basic ones though
are one line per volume, one line per saveset, and one line per
fragment.

In this way, a media report is really just a special form of the "one
line per volume" report.

What then controls which of the reports are generated?  It depends on
which fields you report on.

Take a close look at the list of attributes that can be specified in
queries and reports.  No, look closer.  You'll note that in the list
there are two locations (not counting page breaks) where attributes are
separated by a double space.  This marks the boundaries between media,
saveset, and fragment objects.

You use only media attributes in a report, get a media report.  Use
saveset or media atttributes, get a saveset report.  Use any fragment
objects, get a fragment report.

> For example, if I
> want to see a list of all the volumes in a particular library that are
> not full, I could run this:
>
> mminfo -s server -mvq 'location=value,!full'

Right.  You're not specifying -r, but -m (which is just a special -r).
This report includes only media objects, so you get a media report.

> but this includes a lot of info I don't want to see, and if I try to add
> '-r' with the values I want to see, it doesn't work, so I have to
> instead run:

What are you trying, and how does it "doesn't work"?

> mminfo -s server -vq 'location=value,!full' -r 'volume,%used'

> Is there a way to get the '-r' option to work when you're using '-m'?

You shouldn't need it to.  -m is just a different -r (probably something
like -r "volume(27),written,%used(5),volretent,read,mounts,capacity").


--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>