Never Mind, Following code works with external attributes:
============================================================================================
0xffff99ab E 50 P              "CreateEventWithVariables ( \
                                                                                
                                                { C CURRENT_MODEL }, { H 
0xffff99aa }, \
                                                                                
                                                SetEventVariable ( \
                                                                                
                                                                
GetEventVariableList (), \
                                                                                
                                                                { U 111 }, 
ReadAttribute ( \
                                                                                
                                                                                
                { C CURRENT_MODEL }, { H 0x11f7e }              \
                                                                                
)                                                                              \
                                                                )               
                                                                               \
                                                )"
===============================================================================================


Happy Thanksgiving day.

From: Lalit Tyagi [mailto:[email protected]]
Sent: Wednesday, November 24, 2010 10:44 AM
To: spectrum
Subject: [spectrum] Reading external attribute in event procedure

Guys,

Following procedure works fine if I am reading spectrum internal attribute but 
does not work if I am trying to read external attribute (e.g ifalias);

===============================================================
<Event> E 50 P  "CreateEventWithVariables ( \
                                                                { C 
CURRENT_MODEL }, { H 0xffff99aa }, \
                                                                
SetEventVariable ( \
                                                                                
GetEventVariableList (), \
                                                                                
                { U 101 }, ReadAttribute ( \
                                                                                
                                { C CURRENT_MODEL }, { H 0x10069 }      \
                                                                                
)              \
                                                                )               
               \
                                                )"


==================================================================

Does anyone had a success in calling\reading external attribute in procedure? I 
have to insert a port ifalias as a event variable in alarm.

Thanks
Lalit Tyagi



----------------------------------------



This message is intended exclusively for the individual(s) or entity to

which it is addressed. It may contain information that is proprietary,

privileged or confidential or otherwise legally exempt from disclosure.

If you are not the named addressee, you are not authorized to read,

print, retain, copy or disseminate this message or any part of it.

If you have received this message in error, please notify the sender

immediately by e-mail and delete all copies of the message.

 *   --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]

----------------------------------------

This message is intended exclusively for the individual(s) or entity to
which it is addressed. It may contain information that is proprietary, 
privileged or confidential or otherwise legally exempt from disclosure. 
If you are not the named addressee, you are not authorized to read, 
print, retain, copy or disseminate this message or any part of it. 
If you have received this message in error, please notify the sender 
immediately by e-mail and delete all copies of the message.

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to