[HPADM] Script

From: Dinesh Devan (ix24@btc.com.bh)
Date: Mon Sep 23 2002 - 04:07:06 EDT


Hi Admins,

I need to check in the file below for entries which starts with ***ALARM
and ends with END. For the matching entries I have to get the number on top
of each of those entries and pass to another script. Could someone please
tell me how I can do this.

In short how can I extract the stuff which is in red.

Thanks in Advance.

Rgds,
Dinesh.

702081649
         Connection to an external output system was broken.
Received error while renaming '.tmpalarmLog.txt' to 'alarmLog.txt' at
'TMOSTXF_M
F'.
702082066
         *** ALARM 516 A1/APT "GMSC21C0117A24R"A 020922 0843
CCITT7 DISTURBANCE SUPERVISION LIMIT REACHED
ENUM
   3
END
     702083781
         *** ALARM 457 A1/BTS "BSC41C0018A07E0" 020923 0913
RADIO X-CEIVER ADMINISTRATION
BTS EXTERNAL FAULT
MO RSITE CLASS
RXOCF-41 SRF092A 1

END

***Disclaimer***********************************************
Please note the following points:

* This message and any attachments thereto may contain
  privileged or proprietary information, and are intended
  for the sole use of the addressee(s). Total or partial
  reproduction, communication, distribution or use of this
  information by persons other than the addressee(s) is
  prohibited.
* If you have received this message in error, please notify
  the sender either by telephone or message and delete the
  message from any computer.
* This message and any attachments have been scanned by
  Batelco for malicious code on best efforts basis for your
  protection.

Thank you for your cooperation.
************************************************************

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:20 EDT