[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FW-1] Log processing/shell conundrum



Remove the -f from the tail command.

> -----Original Message-----
> From: Galuszka, Ray [mailto:[email protected]]
> Sent: Friday, September 20, 2002 07:47
> To: [email protected]
> Subject: [FW-1] Log processing/shell conundrum
>
>
> I'm trying to get my FW-1 v4.1 Management Server (Solaris) to
> email a group
> id every time someone pushes policy.  I'm trying to get the
> relevant line
> from $FWDIR/log/cpmgmt.aud to be the body of the email, with the below
> pipeline, but it only sends an empty email when someone does a policy
> install.  I think it's because mailx needs an end-of-text
> (EOT)character
> (control-d I think) in the received stream to process the
> stream as a mail
> body.  Any ideas from our friends who know some shell scripting?
>
> tail -f cpmgmt.aud | grep Install | mailx -s "FW-1 Policy
> Change Notice"
> recipient-email
>
>
> The mail should look like below.  With the pipeline above,
> however, the body
> is missing.
>
> --------------------------------------------------------------
> From: root@managementserver
> To: recipient-email
> Subject: FW-1 Policy Change Notice
>
> Thu Sep 19 22:50:43 2002 rule-editor user@host: Installing rulebase
> '/opt/CPfw1-41/conf/rulebase-name.W' on host 'firewall-host'
> --------------------------------------------------------------
>
>
> Any help is much appreciated!
>
> Ray Galuszka
>
> =================================================
> To set vacation, Out Of Office, or away messages,
> send an email to [email protected]
> in the BODY of the email add:
> set fw-1-mailinglist nomail
> =================================================
> To unsubscribe from this mailing list,
> please see the instructions at
> http://www.checkpoint.com/services/mailing.html
> =================================================
> If you have any questions on how to change your
> subscription options, email
> [email protected]
> =================================================
>

=================================================
To set vacation, Out Of Office, or away messages,
send an email to [email protected]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[email protected]
=================================================