Thanks for your immediate response!!
To answer your question, the $EVENTMSG could look like some 40,000 different messages taken directly from 40,000 Event files.
There is one part in every single file that is the same... the time/day/date stamp, followed by "ModelType={t}, ModelName={m}"... but I may not necessarily need to parse that out.
The {t} and {m} are variables from another program that will input the appropriate data, so when it arrives in the $EVENTMSG it has usable data.
As far as "what I want out of the $EVENTMSG besides the substring that follows (AlarmSeverity=)", the short answer is, it depends on the script that I am using this in. In other words, I have a process in place that will send SPECIFIC alerts depending on a host of alert filters to the process that runs this sh script. The script, itself, is called SetScript.sh, and is called when the alert filters are passed. There is a separate SetScript for each type of alert filter that I create, so that means that what I need out of the $EVENTMSG will depend on the filter that it passes.
Not much of an answer, but that's what I have to work with
If you need any more details please let me know.
Thanks again Don~!!!