01-18-2017 02:12 AM
I have configured Event Action in the SAN Network Advisor, when a port goes offline, I get an email. Now I see the port name in the text of the mail. In the subject of the mail, I see the switch IP address:
Warning: 10.3.2.83 - Port 17 (0/17) changed its operational state to offline
I want to see the port name here, which is offline, like:
Warning: spwas002-s3-p1 - Port 17 (0/17) changed its operational state to offline
This can be done under Monitor - Event Processing - Event Actions - Edit - 5. Action Group - 5.2 E-Mail Settings under Subject,
"Select Custom to enter a new event description in the Subject field"
Can I enter a variable for the port name here? If so, how is the variable (e.g.,%PORT_NAME% or $ PORT_NAME)?
Solved! Go to Solution.
01-30-2017 06:40 AM
I spoke with a TAC representative regarding your inquiry and this was their response:
The Subject field is just for text and won't recognize a variable. However, I think I can help you
get most of what you want. We can't prevent BNA email from putting the switch IP in the subject field
but you can modify the SNMP trap responsible for port offline / online events to include the port name.
Port $2 changed its operational state to $1
$3 - Port $2 changed its operational state to $1
So after running all these steps, here is an example from my lab switch with a port 60 set up as an ISL. I've edited the output for brevity:
port 60: Bartertown
K08-5300-153-69:root> portdisable 60
** EMAIL SUBJECT LINE **
Warning: 10.26.153.69 - Bartertown - Port 60 (0/60) changed its operational state to offline
We hope this helps you; if we may assist you further via the Community, please let us know.
Brocade Community Team
01-30-2017 11:02 PM
That was exactly what I was looking for. Many Thanks.
I have another question, maybe you have a solution as well:
The alarm now works perfectly with physical ports.
I would like also a mail, if a virtual port (NPIV) is "down".
Do you have a solution for this?
02-02-2017 07:42 AM
I'm glad your initial question was resolved!
While we still encourage the Community to assist with your post, I wanted to let you know that upon speaking with TAC regarding your second inquiry, their recommendation was to open a TAC case, so I have opened one for you. A representative from TAC will be contacting you shortly to ask for more information. Once received, they will assign your case to an engineer for assistance. I do urge you to continue to post in the Community and do let me know if I may further assist you in any way.
Once your post is resolved, we will make sure to post the resolution back to the Community so that we may help others.
You can find out more about the TAC Engaged Program by clicking on the image below.