DX NetOps Manager

 View Only

Spectrum_alarms_9.2.1.txt 

Oct 31, 2014 06:12 AM

List of alarm Prob* ID and alarm title from Spectrum 9.2.1

Statistics
0 Favorited
6 Views
1 Files
0 Shares
2 Downloads
Attachment(s)
zip file
Spectrum_alarms_9.2.1.txt.zip   119 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Comments

Jun 12, 2017 10:43 AM

This can be done very easily with a unix shell script. I wrote the following and ran it from the Spectrum root directory on Linux and it created a file called Spectrum_alarms.txt in the Spectrum root directory that contains a list of the PCause file name and the Alarm Title from the PCause files located in the $SPECROOT/SG-Support/CsPCause and $SPECROOT/custom/Events/CsPCause directories.

 

NOTE: Use at your own risk. No guarantees.

 

 

#!/bin/sh
rm Spectrum_alarms.txt
echo "============================================================================" >> Spectrum_alarms.txt
echo "<SPECROOT>/SG-Support/CsPCause Probable Cause Titles" >> Spectrum_alarms.txt
echo "============================================================================" >> Spectrum_alarms.txt
echo "" >> Spectrum_alarms.txt
cd ./SG-Support/CsPCause
for i in `ls`
do
TITLE=`head -1 $i`
echo "$i;$TITLE" >> ../../Spectrum_alarms.txt
done
echo "" >> ../../Spectrum_alarms.txt
echo "============================================================================" >> ../../Spectrum_alarms.txt
echo "<SPECROOT>/SG-Support/CsPCause Probable Cause Titles" >> ../../Spectrum_alarms.txt
echo "============================================================================" >> ../../Spectrum_alarms.txt
echo "" >> ../../Spectrum_alarms.txt
cd ../../custom/Events/CsPCause
for a in `ls`
do
TITLE=`head -1 $a`
echo "$a;$TITLE" >> ../../../Spectrum_alarms.txt
done

 

Joe

Jun 09, 2017 05:19 AM

Hi  Michiel Helde,

 

How we can generate this text file for   Spectrum 10.2 alarms.

Related Entries and Links

No Related Resource entered.