hello all,
I have a file with the following format;
EVENT OV_IF_Index_Remapped .1.3.6.1.4.1.11.2.17.1.0.58982417 "Configuration Alarms" Major
FORMAT Possible device reconfiguration. Interface to IfIndex have been remapped. You may need to reconfigure any data collection on $2. The new interface mappings are:\n$5
EXEC OVHIDESHELL ovIfIndexRemap.ovpl
DISPLAY Possible device reconfiguration. Interface to IfIndex have been remapped. You may need to reconfigure any data collection on $2. The new interface mappings are:\n$5
SDESC
In my case, where there is an occurrence of the "EVENT" parameter and an occurrence of the EXEC parameter, I want to be able to extract the line starting with the EVENT test and also the line starting with the EXEC text.
Locating the EVENT is not a problem, but I am unsure to how then check for the EXEC string and then write both to a text file.
Any help would be appreciated.
Thanks
Alf
I have a file with the following format;
EVENT OV_IF_Index_Remapped .1.3.6.1.4.1.11.2.17.1.0.58982417 "Configuration Alarms" Major
FORMAT Possible device reconfiguration. Interface to IfIndex have been remapped. You may need to reconfigure any data collection on $2. The new interface mappings are:\n$5
EXEC OVHIDESHELL ovIfIndexRemap.ovpl
DISPLAY Possible device reconfiguration. Interface to IfIndex have been remapped. You may need to reconfigure any data collection on $2. The new interface mappings are:\n$5
SDESC
In my case, where there is an occurrence of the "EVENT" parameter and an occurrence of the EXEC parameter, I want to be able to extract the line starting with the EVENT test and also the line starting with the EXEC text.
Locating the EVENT is not a problem, but I am unsure to how then check for the EXEC string and then write both to a text file.
Any help would be appreciated.
Thanks
Alf