Re: Search of Text
From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 12/22/04
- Previous message: Justin Bleistein: "Re: jfs2 mount options"
- Maybe in reply to: Akash Jain: "Search of Text"
- Next in thread: cbaker_at_GOODYEAR.COM: "/etc/sendmail.cf for AIX 4.3.3 ML11"
- Reply: cbaker_at_GOODYEAR.COM: "/etc/sendmail.cf for AIX 4.3.3 ML11"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Dec 2004 18:24:51 +0100 To: aix-l@Princeton.EDU
Do you mean, just the "2%" from:
PAGING Information
Total Paging Space Percent Used
8192MB 2%
...but only the first entry in the file?
That's not terribly easy with simple commands. You might be able
to knock something up in awk.
I guess you've got another script which creates this log file by
concatenating the output of various other commands - sar, lsps etc.
If you modify this to use a consistent separator you might be able
to use a relatively simple grep. The simplest would be a blank
line, which is the default.
e.g. grep -p "Total Paging Space" | more greps, read, tail...
This seems an odd thing to want. If you explain to us what
you're really trying to do, and why you need this information,
maybe someone can suggest a better solution.
For a start, nmon might be a good replacement for the entire thing,
although it won't give you paging space utilisation. It's widely
used and covers most of what you've got, and can easily be used to
produce nice graphs to show to managers. Things like lsvg output
are fairly static, and I wouldn't have thought they need to be
generated more than once per day.
If you want paging-space utilisation at 10:30 - or whatever time -
it'd be simpler just to run the command at that time, rather than
try to extract it. But again: I don't understand why this would be
of any particular use. It only makes sense in context: either to
have the highest value through the day, or a whole series of values
over time.
It looks to me like you're trying to solve the wrong problem.
-- Simon Green Altria ITSC Europe Ltd AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. > -----Original Message----- > From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On > Behalf Of Akash Jain > Sent: 22 December 2004 10:31 > To: aix-l@Princeton.EDU > Subject: Re: Search of Text > > > I am attaching the log file for your reference. > > Now I want to extract average of sar for first iteration and > percent of > paging space used. > > Thanks in advance. > > > Regards > Akash Jain > > > -----Original Message----- > From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of > Green, Simon > Sent: Tuesday, 21 December 2004 6:22 PM > To: aix-l@Princeton.EDU > Subject: Re: Search of Text > > I don't really understand that. Can you give an example of > the data, and > also all of the file names and types in the directory? > Examples of the real > data involved are always easier to deal with than > descriptions, unless you > give a very specific description, (like you'd used for a program > specification). > > -- > Simon Green > Altria ITSC Europe Ltd > AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html > New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX > N.B. Unsolicited email from vendors will not be appreciated. > Please post all follow-ups to the list. > > > -----Original Message----- > > From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On > > Behalf Of Akash Jain > > Sent: 21 December 2004 12:16 > > To: aix-l@Princeton.EDU > > Subject: Re: Search of Text > > > > > > See I want to extract average field (date by date) along with > > numeric values > > from all month log files generated and kept in directory. The values > > extracted will be used to generate graph. >
- Previous message: Justin Bleistein: "Re: jfs2 mount options"
- Maybe in reply to: Akash Jain: "Search of Text"
- Next in thread: cbaker_at_GOODYEAR.COM: "/etc/sendmail.cf for AIX 4.3.3 ML11"
- Reply: cbaker_at_GOODYEAR.COM: "/etc/sendmail.cf for AIX 4.3.3 ML11"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]