Networker

Re: [Networker] 24 time attribute for mminfo?

2003-06-04 15:53:09
Subject: Re: [Networker] 24 time attribute for mminfo?
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 4 Jun 2003 15:53:05 -0400
Ah, yes, so it is! I found where it mentions that in the man pages.
Guess I read over it too quickly the first time through. Interestingly,
it appears that the field width (17) can be used on most of the time
value attributes. Doesn't do anything for something like volretent,
though. Also, I found that if I specify a lower number like (8) or (7),
it still prints MM/DD/YY. I would have thought it might truncate that.
Hmm ... So does the 17 come from "MM/DD/YY HH:MM:SS" a total of 17
spaces if you include the space between the date and the time? Guess so
...

George

"David E. Nelson" wrote:
>
> Hi George,
>
> -r 'savetime(17)'
>
> I've also learned that you can specify "-q 'savetime>=05/19/03 14:31:00'".
>
> Regards,
>         /\/elson
>
> On Wed, 4 Jun 2003, George Sinclair wrote:
>
> > Hi,
> >
> > Does anyone know how I can get mminfo to display a 24 hour time value
> > when using the '-r' option? For example, if I run mminfo as:
> >
> > mminfo -s server -v -q
> > 'pool=pool_name,level=full,savetime>=05/19/03,savetime<=05/27/03' | grep
> > 3489341185
> >
> > I see output like this:
> >
> > FUL474         hostname      05/24/03 19:00:35   10 GB 3489341185 mb
> > full /raid
> > FUL479         hostname      05/24/03 19:00:35  316 MB 3489341185 mb
> > full /raid
> > FUL480         hostname      05/24/03 19:00:35   36 GB 3489341185 hb
> > full /raid
> > FUL483         hostname      05/24/03 19:00:35   41 GB 3489341185 mb
> > full /raid
> > FUL484         hostname      05/24/03 19:00:35   38 GB 3489341185 tb
> > full /raid
> >
> > But, if I want to see additional fields, I have to use the '-r' option
> > and specify, but there does not appear to be an attribute for the normal
> > 24 time value, only the nsavetime which is no good for me. So, running
> > something like:
> >
> > mminfo -s orion -v -q
> > 'pool=pool_name,level=full,savetime>=05/19/03,savetime<=05/27/03' -r
> > 'volume' -r 'client' -r 'savetime' -r 'sumsize' -r 'ssid' -r'sumflags'
> > -r 'level' -r 'name' | grep 3489341185
> >
> > I see this:
> >
> > FUL474         hostname    05/24/03  10 GB 3489341185 mb full /raid
> > FUL479         hostname    05/24/03 316 MB 3489341185 mb full /raid
> > FUL480         hostname    05/24/03  36 GB 3489341185 hb full /raid
> > FUL483         hostname    05/24/03  41 GB 3489341185 mb full /raid
> > FUL484         hostname    05/24/03  38 GB 3489341185 tb full /raid
> >
> > which is the closest I can get the output to look like the first one.
> > The problem, though, is that I want to add even more attributes, so I
> > must use the '-r' option, but this eliminates my nice time value. I
> > looked at the man pages for mminfo, and I tried all of the other time or
> > date related attributes and none of them gives me this. Anyone play with
> > this before?
> >
> > Thanks.
> >
> > George
> >
> > --
> > 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.
> > =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
> >
>
> --
> ~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
>                         time, then break it again.
>
> --
> 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.
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
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>