Since SetEventAttribute() returns the entire attribute list, you can keep nesting calls to it. The following is untested, but should do what you¹re asking:
0xffff0000 E 50 P ³\
> CreateEventWithAttribute(\
> {C CURRENT_MODEL},\
> {H 0xffff0001},\
> SetEventAttribute(\
> SetEventAttribute(\
> GetEventAttributeList(),\
> {U 111},\
> ReadAttribute (\
> {C CURRENT_MODEL},\
> {H 0x11f7e}\
> ),\
> {U 112},\
> ReadAttribute (\
> {C CURRENT_MODEL},\
> {H 0x10e40}\
> )\
> )\
> )\
> )²
On 7/28/10 9:38 AM, "Gray, Brad" <[email protected]> wrote:
> Greeting all,
>
> I¹m trying to pass two attributes in an event message, ifAlias (0x11f7e) and
> ifOperStatus (0x10e40). I understand it can be done by using an event
> procedure, but cannot get the syntax working correctly. Does anyone have an
> example of how to pass two attributes? I found the following and have tried
> adding in a second attribute, but the code is not working as expected.
>
> 0xffff0000 E 50 P ³\
> CreateEventWithAttribute (\
> {C CURRENT_MODEL},\
> {H 0xffff0001},\
> SetEventAttribute(\
> GetEventAttributeList(),\
> {U 111},\
> ReadAttribute (\
> {C CURRENT_MODEL},\
> {H 0x11f7e})))²
>
> Kind Regards,
> Brad
>
> Bradley Gray
> Distributed Computing Analyst III
> ETA Network Support
> 214-422-6795
> [email protected] <mailto:[email protected]>
>
>
>
> _____________
>
> The information contained in this message is proprietary and/or confidential.
> If you are not the intended recipient, please: (i) delete the message and all
> copies; (ii) do not disclose, distribute or use the message in any manner; and
> (iii) notify the sender immediately. In addition, please be aware that any
> message addressed to our domain is subject to archiving and review by persons
> other than the intended recipient. Thank you.
> _____________
> * --To unsubscribe from spectrum, send email to [email protected] with the
> body: unsubscribe spectrum [email protected]
>
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]<<image.png>>
