Hi List, this post was an accident. As a matter of fact, there might be someone on the list who can help me, but it was intended for our SPECTRUM partner, which is the reason why it is written in German. Those of you who understand the language can see that I guess I am a little worn out and lost the sight for the correct syntax of the Event Procedure I have copied
into the body - after two hours bugfixing. I guess this is the reason why I have accidently chosen the wrong recipient. Please be so kind to ignore the post. Thank you and sorry for any inconvenience. Freundliche Grüße / Best regards Christian Fieres Mainova AG Planung und Betrieb Infrastruktur (M3-ON2) Service Operation Center Solmsstraße 38 60623 Frankfurt Telefon / Phone (069) 2 13-2 36 17 Mobil / Mobile (0170) 5 60 15 63 Telefax / Facsimile (069) 2 13-9 62 36 17 E-Mail [email protected] ----- Weitergeleitet von Christian Fieres/M3-ON/MAINOVA/DE am 05.02.2013 16:14 ----- Von: Christian Fieres <[email protected]> An: "spectrum" <[email protected]>, Kopie: Ralf Bödler <[email protected]>, Tristan Österreicher <[email protected]> Datum: 05.02.2013 16:12 Betreff: [spectrum] Syntax Error in EventProcedure Hallo Support, nach zwei Stunden Fehlersuche bin ich zwischenzeitlich recht betriebsblind geworden. Ich habe zur Korrelation 'Erstelle Alarm 0x4560001 auf Model A, wenn für Model A oder Model B ein Event 0x4560001 erstellt wird und für Model B bzw. Model A das Attribut 0x456008c <> 1 ist, wenn die Namen von Model A und Model B dem regul ären Ausdruck ".*_by_SVAVAIL0" entsprechen sowie denselben Namen haben, wobei sich die letzten beiden Stellen unterscheiden - "01" bzw. "02"' in der $SPECROOT/SS/CsVendor/Aprisma_RTM/EventDisp die Zeile 0x04560001 E 20 A {v 89 Cabletron.rtmTestTypeSeverityMap},0x04560001 durch 0x04560001 E 20 R CA.EventCondition, "regexp({ VARDATA 1 }, { S\"_by_SVAVAIL0\"})", "0x3990280 -:-", "default", "0x3990281 -:-" 0x3990280 E 20 P " \ If( Regexp( GetEventVariable( { U 1 } ), { S \"_by_SVAVAIL01$\" } ), \ If( DoesNotEqual( ReadAttribute( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S \"01$\" }, { U 1 }, { S \"02$\" } ) ), { U 1 } ), { H 0x456008c } ), { U 1 } ), \ CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990282 }, GetEventVariableList() ), \ CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990283 }, GetEventVariableList() ) ), \ If( DoesNotEqual( ReadAttribute( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S \"02$\" }, { U 1 }, { S \"01$\" } ) ), { U 1 } ), { H 0x456008c } ), { U 1 } ), \ CreateEventWithVariables( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S \"02$\" }, { U 1 }, { S \"01$\" } ) ), { U 1 } ), { H 0x3990282 }, GetEventVariableList() ), \ CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990283 }, GetEventVariableList() ) ) \ )" 0x3990281 E 20 A {v 89 Cabletron.rtmTestTypeSeverityMap},0x04560001 ersetzt. Ich würde, wenn Event 0x4560001 für ein Model mit Namen "TCP-22_MISC01_by_SVAVAIL02" auftritt, erwarten, dass nicht nur Event 0x3990280 erstellt wird, sondern zumindest auch Event 0x3990283. Dies ist nicht der Fall, zudem wird im event_disp_error-File geloggt: Error: parse failed: syntax error. Parsing failed at position 0, the unparsed remainder is " If( Regexp( GetEventVariable( { U 1 } ), { S "_by_SVAVAIL01$" } ), If( DoesNotEqual( ReadAttribute( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S "01$" }, { U 1 }, { S "02$" } ) ), { U 1 } ), { H 0x456008c } ), { U 1 } ), CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990282 }, GetEventVariableList() ), CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990283 }, GetEventVariableList() ) ), If( DoesNotEqual( ReadAttribute( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S "02$" }, { U 1 }, { S "01$" } ) ), { U 1 } ), { H 0x456008c } ), { U 1 } ), CreateEventWithVariables( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S "02$" }, { U 1 }, { S "01$" } ) ), { U 1 } ), { H 0x3990282 }, GetEventVariableList() ), CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990283 }, GetEventVariableList() ) ) )". Error: parse failed: Procedure parsing failure Procedure did not parse successfully (error reason: Procedure parsing failure) for event 0x3990280 on line 5 of event disposition file ./CsVendor/Aprisma_RTM/EventDisp 0x3990280 E 20 P " If( Regexp( GetEventVariable( { U 1 } ), { S \"_by_SVAVAIL01$\" } ), If( DoesNotEqual( ReadAttribute( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S \"01$\" }, { U 1 }, { S \"02$\" } ) ), { U 1 } ), { H 0x456008c } ), { U 1 } ), CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990282 }, GetEventVariableList() ), CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990283 }, GetEventVariableList() ) ), If( DoesNotEqual( ReadAttribute( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S \"02$\" }, { U 1 }, { S \"01$\" } ) ), { U 1 } ), { H 0x456008c } ), { U 1 } ), CreateEventWithVariables( GetElement( GetModelsByAttrValue( { H 0x1006e }, ReplaceRegexp( GetEventVariable( { U 1 } ), { S \"02$\" }, { U 1 }, { S \"01$\" } ) ), { U 1 } ), { H 0x3990282 }, GetEventVariableList() ), CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x3990283 }, GetEventVariableList() ) ) )" (Zeile 5 der EventDisp ist tatsächlich die Vereinbarung für Event 0x3990280.) Können Sie in der Prozedur etwas offensichtlich Falsches erkennen, was ich möglicherweise schlichtweg übersehe? Freundliche Grüße / Best regards Christian Fieres Mainova AG Planung und Betrieb Infrastruktur (M3-ON2) Service Operation Center Solmsstraße 38 60623 Frankfurt Telefon / Phone (069) 2 13-2 36 17 Mobil / Mobile (0170) 5 60 15 63 Telefax / Facsimile (069) 2 13-9 62 36 17 E-Mail [email protected] Mainova Aktiengesellschaft Solmsstraße 38 D-60623 Frankfurt am Main Vorsitzende des Aufsichtsrates: Dr. h. c. Petra Roth, Oberbürgermeisterin a. D. Vorstand: Dr. Constantin H. Alsheimer (Vorsitzender), Dr. Peter Birkner, Lothar Herbst, Dr. Marie-Luise Wolff-Hertwig Sitz der Aktiengesellschaft: Frankfurt am Main Amtsgericht Frankfurt HRB 7173 USt-ID-Nr. DE 114184034 Mainova steht für besten Service, faire Verträge und top Preise für Ihre Energie - mit Auszeichnung! Mehr Infos unter: http://www.mainova.de/auszeichnung --To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected] Mainova Aktiengesellschaft Solmsstraße 38 D-60623 Frankfurt am Main Vorsitzende des Aufsichtsrates: Dr. h. c. Petra Roth, Oberbürgermeisterin a. D. Vorstand: Dr. Constantin H. Alsheimer (Vorsitzender), Dr. Peter Birkner, Lothar Herbst, Dr. Marie-Luise Wolff-Hertwig Sitz der Aktiengesellschaft: Frankfurt am Main Amtsgericht Frankfurt HRB 7173 USt-ID-Nr. DE 114184034 Mainova steht für besten Service, faire Verträge und top Preise für Ihre Energie - mit Auszeichnung! Mehr Infos unter: http://www.mainova.de/auszeichnung --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
