Networker

Re: [Networker] mminfo and sizes

2008-06-19 12:23:06
Subject: Re: [Networker] mminfo and sizes
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 19 Jun 2008 11:13:48 -0500
In regard to: [Networker] mminfo and sizes, Teresa Biehler said (at 10:01am...:

I'd like to find out how much data is written to a piece of media (could
be disk, could be tape).  So, I use mmifo.  Unfortunately, it changes
the units it reports the size in based on the size.  For example:

mminfo -q " volume=000999" -r "volume,written"

That's because the field size has a default width.  If you look at the
chart in the mminfo man page, you'll see:


        attribute     value
          name        range   width                     description

       capacity    size         8  The volume's estimated capacity.
       written     kbsize       7  Kbytes written to volume.
       %used       number       5  Estimated percentage used, or 'full'

Since there are only 7 places available (by default), it scales the number
and units to fit in that space.

The good news is that any field can have its field width altered just
by including a width:

mminfo -q "volume=000039" -r "volume(12),written(24)"

Tim
--
Tim Mooney                                        Tim.Mooney AT ndsu DOT edu
Information Technology Services                   (701) 231-1076 (Voice)
Room 242-J6, IACC Building                        (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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