Hi Gerry,
Don't know how Marco could  analyse your Eventproc without formatting it
with indentation - (See below with Marco's syntax corrections)  - it makes
my brain hurt otherwise  - being an old programmer! .
As long as the instance value for the custom attribute 0xffff006b of your
device model is in your trap's 8th varbind it looks like it should work ...
Cheers
Dan.

0xfff00035 E 50 P "\
CreateEventWithVariables \
( \
   {C CURRENT_MODEL}, \
   {H 0xfff00036}, \
   SetEventVariable \
   ( \
      GetEventVariableList(), \
      {U 14}, \
      ToString \
      ( \
         ReadAttributeInstance \
         ( \
            { C CURRENT_MODEL }, \
            { H 0xffff006b }, \
            GetEventVariable( { H 8 }) \
         ) \
      ) \
   ) \
) \
"




*Dan White*
Senior Consultant
Service Assurance
[image: Devoteam]

 *Mob. : *+44 (0)7973 533671
dan.wh...@devoteam.com

Follow us : [image: Linked In]
<http://www.linkedin.com/company/4160?trk=null> [image: Twitter]
<http://twitter.com/#!/devoteam> [image: Youtube]
<http://www.youtube.com/user/devoteam>

CONNECTING BUSINESS & TECHNOLOGY

On 16 October 2014 10:19, Russo, Marco <marco.ru...@computacenter.com>
wrote:

> Hello Gerry, hi all,
>
> although your question is a few days old, i did not yet see any response,
> so I'll answer on that one in case you did not find out what's wrong yet by
> yourself:
>
> First thing that sticks into my eyes is that in your debug message,
> there's a missing closing quote sign at the end of the event procedure. But
> this could be a copy & paste failure.
> Other than that, you have a missing opening curved bracket at
> "...ToString(ReadAttributeInstance( C CURRENT_MODEL }"  right before "C
> CURRENT_MODEL"
>
> Besides that, the syntax seems to be correct.
>
> Mit freundlichen Gruessen - Best regards
>
> Marco Russo
> System Engineer
> Global Infrastructure Operations
>
> Computacenter AG & Co oHG
> Enabling Users
>
> Europaring 34-40, 50170 Kerpen, Germany
> E-Mail: marco.ru...@computacenter.com
> WWW: www.computacenter.de
>
> -----Ursprüngliche Nachricht-----
> Von: cl...@opsvision.com [mailto:cl...@opsvision.com]
> Gesendet: Freitag, 3. Oktober 2014 15:57
> An: spectrum
> Betreff: [spectrum] Event procedure syntax help
>
> Hello,
>
> I need help verifying the syntax of my event procedure rules.  I'm getting
> the following debug message:
>
> Error: parse failed: Procedure parsing failure Procedure did not parse
> successfully (error reason: Procedure parsing failure) for event 0xfff00035
> on line 44 of event disposition file ../custom/Events/EventDisp
>    0xfff00035 E 50 P " CreateEventWithVariables( {C CURRENT_MODEL}, {H
> 0xfff00036}, SetEventVariable( GetEventVariableList(),{U 14},
> ToString(ReadAttributeInstance( C CURRENT_MODEL }, { H 0xffff006b },
> GetEventVariable( { H 8 } ) )  ) )  )
>
> Can you tell me what my syntax errors are?  Thanks.
>
> Gerry
>
>
> ---
> To unsubscribe from spectrum, send email to lists...@unc.edu with the
> body: unsubscribe spectrum marco.ru...@computacenter.com
>
> ---
> To unsubscribe from spectrum, send email to lists...@unc.edu with the
> body: unsubscribe spectrum dan.wh...@devoteam.com

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum arch...@mail-archive.com

Reply via email to