Hello Siegfried, I believe, it´s not possible. You will have to use cli within the Notifier Scripts to read the attributes from the device.
Regards Andreas From: Scholtyssek, Siegfried [mailto:[email protected]] Sent: Thursday, October 18, 2012 5:27 PM To: spectrum Subject: AW: [spectrum] attributes from device to port in alarmnotifier (.alarmrc,setscript,clearscript) Hi Joseph Many thanks for the answer. But we have the attribute only on a device and can fill the value attribute only on a device but not on a port attribute. If a port alarm(0x1040a) will come so we need the attribute value from the device which the port belongs to because the port have not the attribute. Maybe you have in this case some experiences and can help me further ? Thanks and regards Siggi Siegfried Scholtyssek Principal Spectrum Engineer Wuerzburger Str. 121 90766 Fuerth, Deutschland Tel.: +49 (211) 39934792 Mobil: +49 (163) 1666810 [email protected]<mailto:[email protected]> [cid:[email protected]] Atos IT Solutions and Services GmbH, Rechtsform: Gesellschaft mit beschränkter Haftung ; Geschäftsführer: Winfried Holz; Vorsitzender des Aufsichtsrats: Charles Dehelly; Sitz der Gesellschaft: München, Deutschland; Amtsgericht München, HRB 184933. Von: Joseph POUTRE [mailto:[email protected]] Gesendet: Donnerstag, 18. Oktober 2012 17:03 An: spectrum Betreff: RE: [spectrum] attributes from device to port in alarmnotifier (.alarmrc,setscript,clearscript) Siegfried, We have done basically the same here. You need to take two steps to make the additional attributes available to email. 1. List the attributes in $SPECROOT/Notifier/.alarmrc in the variable “EXTRAATTRS_AS_ENVVARS”. Use upper case, even on Windows. e.g. EXTRA_ATTRS_AS_ENVVARS=0xF0000001 2. Import the attributes into the SetScript (and UpdateScript and ClearScript if you use those) like this: MY_FIRST_ATTRIBUTE="$SANM_0XF0000001" You can then use that variable in the subject or content of the email sent by the *Scripts. Don’t forget to save the *Script files _before_ you edit them, _and_ save a copy before running any patch or upgrade – those scripts are often overwritten in those circumstances. Joe Poutre BNP Paribas From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Thursday, October 18, 2012 10:29 AM To: [email protected]<mailto:[email protected]> Subject: [spectrum] attributes from device to port in alarmnotifier (.alarmrc,setscript,clearscript) Hi Maybe somebody can help us further ! We Added several attributes on a device level to Spectrum. That means this Attributes are inheritated from Device at the model Catalog. The values are filled automatically at the device (e.g. Cisco Router) itself. That means each device is enriched with about 20 additional attributes like 1stLevelSupportgroup. When We send an Alarm via the Notifier to our Ticketsystem we forward all this values to the Ticket. BUT: When there is a port down alarm we miss them. Spectrum does not show the Attributes from the Device at which the ports are, because the alarm comes from the port. Now my question. What is the best way, to get the additional attributes of a device send out at the Notifier, if a portalarm is sent. Do you have any recommendation. Thanks and best regards Siegfried Scholtyssek Principal Spectrum Engineer This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. Please note that certain functions and services for BNP Paribas may be performed by BNP Paribas RCC, Inc. * --To unsubscribe from spectrum, send email to [email protected]<mailto:[email protected]> with the body: unsubscribe spectrum [email protected]<mailto:[email protected]> * --To unsubscribe from spectrum, send email to [email protected]<mailto:[email protected]> with the body: unsubscribe spectrum [email protected]<mailto:[email protected]> The information contained in this e-mail message is privileged and confidential and is for the exclusive use of the addressee. The person who receives this message and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof, and is kindly asked to notify the sender and delete the e-mail immediately. --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
<<inline: image001.gif>>
