Hi,
Thanks for your help.
I've got your idea, it really make sense to use vars, that the append is easy.
I'll try it today

From: Porter, Craig [mailto:[email protected]]
Sent: Wednesday, March 18, 2015 11:25 PM
To: spectrum
Subject: RE:[spectrum] event procedure - help is needed...

I think the easiest way is to create variables to hold the values you're 
interested in. Remember to use the ToString function on GetEventVariable. Then 
the Append piece is trivial. Something like this should work:

0xfff00606 E 50 P "\
  SetVariable({V type}, ToString(GetEventVariable({U 115})), \
    SetVariable({V policyName}, ToString(GetEventVariable({U 125})), \
      CreateEventWithVariables({C CURRENT_MODEL}, {H 0xfff0060a}, \
        SetEventVariable(GetEventVariableList({C CURRENT_EVENT}), {H 
0x00012b4c}, \
          Append({S \"DDOS ATTACK. Policy Name: \"}, Append({V policyName}, 
Append({S \"Type: \"}, {V type}))) \
        ) \
      ) \
    ) \
  )"

Craig Porter, Enterprise Systems Management - Availability & Performance 
Monitoring
Marsh & McLennan Companies
Global Technology Infrastructure (MGTI) | Centralized Operations
Sackville House 1.6, 143-149 Fenchurch Street, London EC3M 6BN, Great Britain
+44 (0)20 7178 4827 | Mobile +44 (0)7585 803 093 | 
[email protected]<mailto:[email protected]>
www.mmc.com<http://www.mmc.com/>

From: Amitay Ben-ishay [mailto:[email protected]]
Sent: 18 March 2015 11:17
To: spectrum
Subject: [spectrum] event procedure - help is needed...

Hi all,
I'm dealing with a procedure using append.
Here is what I did:
0xfff00606 E 50 P "CreateEventWithVariables ({C CURRENT_MODEL},{H 0xfff0060a}, 
SetEventVariable (GetEventVariableList ({C CURRENT_EVENT}), {H 0x00012b4c}, 
Append ({S \"DDOS ATTACK. Policy Name: \"}, GetEventVariable ({U 125}))))"

It perfectly works.
I want to continue appending text and vars to the alarm message.
The current result is:      DDOS ATTACK. Policy Name: f

Now, I want to append to the text: " Type:" U115

So I want the final text to be: DDOS ATTACK. Policy Name: f Type: <value of 
Variable 115>

Does anyone know how to append this and how to change my procedure?
How should I nest it?

BR, Amitay Ben-ishay

------------------------------------------------------------
This message contains information that may be confidential or privileged.
If you are not the intended recipient, you may not use, copy or disclose
to anyone any of the information in this message. If you have received
this message and are not the intended recipient, kindly notify the sender
and delete this message from your computer.
*         --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]<mailto:[email protected]>

________________________________

Marsh Ltd. Registered in England and Wales Number: 1507274
Registered office 1 Tower Place West, Tower Place, London, EC3R 5BU.

Marsh Ltd is authorised and regulated by the Financial Conduct Authority.

This message and any attachments are confidential.
If you have received this message in error please delete it from your system.
If you require any assistance please notify the sender. Thank you.

  *   --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]<mailto:[email protected]>
------------------------------------------------------------
This message contains information that may be confidential or privileged.
If you are not the intended recipient, you may not use, copy or disclose
to anyone any of the information in this message. If you have received
this message and are not the intended recipient, kindly notify the sender
and delete this message from your computer.

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

Reply via email to