We use putfiles to write the records, the filename/filetype contains the
date and recordID. This is part of a larger pipeline that contains some
logic to enable us to comunicatie with the MONWRITE machine.

  '\ STARMON MONDCSS SHARED',            /* connect to MONITOR        */
  '| specs 9.8 1.8',                     /* Get TOD clock             */
  '   5 c2x 10 7.2 c2x nw 1-* nw',       /* Translate D R             */
  '| a: lookup 10-16 1-7 details',       /* Only selected records     */
  '| dateconv 1.8 todabs rexxj timeout', /* Convert tot to julian     */
  '| specs w1 1 /_/ next /00/ next',     /* Build filename : 10271_00 */
  '        /D/ nw w3 next',              /* Build filetype : D0A      */
  '        /R/ next w4 next',            /* Build filetype :    R0002 */
  '        /D/ nw',                      /* Build filemode : D        */
  '        w5-* next',                   /* Remaining data            */
  '| putfiles append grouped',           /* write files               */
  '\ < moncolct param x',                /* Parameter file            */
  '| a:'

The param file contains the records we want to write to disk such as "0A
0002". If you want files for every hour replace the /00/ with 7.2 .

Regards, Berry.

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of
Scott Rohling
Sent: vrijdag 22 oktober 2010 1:45
To: [email protected]
Subject: Re: mon_fsstatd - filesystem monitor records

One thing - I don't seem to actually see the output file on disk until I
stop the PIPE..   is there a way to run pipe starmon and have it output
records to disk as they are received?    When I LINK to the disk from
another userid - I don't see a file at all until I 'hx' out of the pipe.

Scott Rohling

On Thu, Oct 21, 2010 at 1:13 PM, Berry van Sleeuwen <
[email protected]> wrote:

> The most easiest:
>
> "PIPE STARMON | > monwrite file a", that way you will write one record

> to disk for each record in CP MONITOR. In this case you won't have to 
> figure out how to parse the records or to process them afterwards with

> MONVIEW. Just connect a test CMS machine to MONITOR if you can't use 
> MONWRITE for this.
>
> Regards, Berry.
>
> Op 21-10-10 21:04, Scott Rohling schreef:
> > Hi Berry -   Thanks very much for your reply - you're right - I was
being
> > too simplistic in plumbing the MONWRITE data.  I used MONVIEW and 
> > quickly did an XLATE A2E against the output - I can now see dasda1,
etc in the
> > output.  So I obviously need to parse the MONWRITE data correctly.
I'll
> > poke around the MONVIEW stuff to figure it out.
> >
> > Thanks again!
> >
> > Scott Rohling
> >
> > On Thu, Oct 21, 2010 at 12:28 PM, Berry van Sleeuwen < 
> > [email protected]> wrote:
> >
> >
> >> Hi scott,
> >>
> >> We do see records for every mounted filesystem. Both on SLES10 SP2 
> >> and
> >> SLES11 SP1. Indeed, have option APPLMON for the guest and start 
> >> mon_fsstatd. Actually we have APPLDATA, mon_fsstatd and mon_procd
> running.
> >>
> >> We run two machines on the CP MONITOR running custom plumbing. The 
> >> first only writes selected recordtypes to disk (such as Dom. 10 
> >> Rec. 2). The second CMS machine monitors the filesystem records and

> >> creates incidents based on certain thresholds on filesystem usage.
> >>
> >> We don't run the IBM MONWRITE. First of all we'd like to write only

> >> those records we are interested in. And second, MONWRITE writes the

> >> file into fixed 4096 records instead of one record for each monitor
record.
> >>
> >> Do you know for sure your plumbing does indeed get the records the 
> >> correct way? Have you tried the MONVIEW package from the IBM VM
> packages?
> >>
> >> Regards, Berry.
> >>
> >>
> >> Op 21-10-10 17:16, Scott Rohling schreef:
> >>
> >>> I am trying to use the mon_fsstatd driver (s390-tools) to generate
> >>>
> >> monitor
> >>
> >>> records with Linux fileystem stats.   The guest has OPTION APPLMON
and
> >>> ability to write monitor records.
> >>>
> >>> Records 'do' seem to be generated - but it seems like it's only 
> >>> for a
> >>>
> >> single
> >>
> >>> filesystem (/dev/dasdd1, which happens to be the last listed if 
> >>> you do
> a
> >>>
> >> df
> >>
> >>> -h).   According to the device drivers manual -- a record should
be
> >>> generated for each physical mounted filesystem.   I'm only seeing
one.
> >>>
> >>> As an aside - I am viewing the records on z/VM by linking to 
> >>> MONWRITE
> 191
> >>> and using some creative PIPEing to translate the ascii fields to
> ebcdic,
> >>> etc...   Basically getting all records with 'LNXAPPL' in ascii and
> >>>
> >> parsing
> >>
> >>> them.   So pretty sure I'm not missing records that are being
written
> for
> >>> APPLDATA ...
> >>>
> >>> Has anyone else used this driver and gotten different/better
results?
> >>>
> >>> (I'm running this on RHEL54 under z/VM 5.4)
> >>>
> >>> Scott Rohling
> >>>
> >>> ------------------------------------------------------------------
> >>> ---- For LINUX-390 subscribe / signoff / archive access 
> >>> instructions, send email to [email protected] with the 
> >>> message: INFO LINUX-390
> or
> >>>
> >> visit
> >>
> >>> http://www.marist.edu/htbin/wlvindex?LINUX-390
> >>> ------------------------------------------------------------------
> >>> ---- For more information on Linux on System z, visit 
> >>> http://wiki.linuxvm.org/
> >>>
> >>>
> >>>
> >> -------------------------------------------------------------------
> >> --- For LINUX-390 subscribe / signoff / archive access 
> >> instructions, send email to [email protected] with the 
> >> message: INFO LINUX-390
> or
> >> visit
> >> http://www.marist.edu/htbin/wlvindex?LINUX-390
> >> -------------------------------------------------------------------
> >> --- For more information on Linux on System z, visit 
> >> http://wiki.linuxvm.org/
> >>
> >>
> > --------------------------------------------------------------------
> > -- For LINUX-390 subscribe / signoff / archive access instructions, 
> > send email to [email protected] with the message: INFO 
> > LINUX-390 or
> visit
> > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > --------------------------------------------------------------------
> > -- For more information on Linux on System z, visit 
> > http://wiki.linuxvm.org/
> >
> >
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO LINUX-390 or 
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit 
> http://wiki.linuxvm.org/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
ÿþDit bericht is vertrouwelijk en kan 
geheime informatie bevatten enkel

bestemd voor de geadresseerde. Indien 
dit bericht niet voor u is bestemd,

verzoeken wij u dit onmiddellijk aan 
ons te melden en het bericht te

vernietigen.

Aangezien de integriteit van het 
bericht niet veilig gesteld is middels

verzending via internet, kan Atos 
Origin niet aansprakelijk worden 
gehouden

voor de inhoud daarvan.

Hoewel wij ons inspannen een virusvrij 
netwerk te hanteren, geven

wij geen enkele garantie dat dit 
bericht virusvrij is, noch aanvaarden 
wij

enige aansprakelijkheid voor de 
mogelijke aanwezigheid van een virus in 
dit

bericht.

 

Op al onze rechtsverhoudingen, 
aanbiedingen en overeenkomsten 
waaronder

Atos Origin goederen en/of diensten 
levert zijn met uitsluiting van alle

andere voorwaarden de 
Leveringsvoorwaarden van Atos Origin 
van toepassing.

Deze worden u op aanvraag direct 
kosteloos toegezonden.

 

This e-mail and the documents attached 
are confidential and intended solely

for the addressee; it may also be 
privileged. If you receive this e-mail

in error, please notify the sender 
immediately and destroy it.

As its integrity cannot be secured on 
the Internet, the Atos Origin group

liability cannot be triggered for the 
message content. Although the

sender endeavours to maintain a 
computer virus-free network, the sender

does not warrant that this transmission 
is virus-free and will not be

liable for any damages resulting from 
any virus transmitted.

 

On all offers and agreements under 
which Atos Origin supplies goods and/or

services of whatever nature, the Terms 
of Delivery from Atos Origin

exclusively apply. 

The Terms of Delivery shall be promptly 
submitted to you on your request.

 

Atos Origin Nederland B.V. / Utrecht

KvK Utrecht 30132762

Reply via email to