Management Software

Reply
New Contributor
Posts: 2
Registered: ‎01-18-2017
Accepted Solution

SNA: E-Mail Subject with Port Name when Port offline

Hi all,

 

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:

 

Subject:

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)?

 

Thanks

TAC Mod
Posts: 48
Registered: ‎04-07-2011

Re: SNA: E-Mail Subject with Port Name when Port offline

Hello @eyjo

 

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.

 

  1. Edit the Event Action
  2. Go to Step 2 for Events
  3. Select "Traps" under the Show menu.
  4. Open the Fabric OS folder.
  5. Open the SW-MIB folder.
  6. Select swFCPortScn and click the right arrow.
  7. Go To Step 5.2 for Email Settings
  8. In the Subject area select "Use event description"
  9. Click on Finish
  10. Click on Close
  11. Go to Monitor -> SNMP Setup -> Event Reception
  12. Click on Trap Configuration
  13. Open the Standard SAN Traps folder
  14. Open the SW-MIB folder
  15. Highlight swFCPortScn
  16. In the Message field it should look like this:

Port $2 changed its operational state to $1

 

  1. Add $3 to the beginning so that it looks like this:

$3 - Port $2 changed its operational state to $1

 

  1. This will put the swFCPortName at the begining of the message.

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:

 

K08-5300-153-69:root> portname

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.

 

Thank you!

 

Denise K.

Brocade Community Team

@DeniseK

New Contributor
Posts: 2
Registered: ‎01-18-2017

Re: SNA: E-Mail Subject with Port Name when Port offline

Hello @DeniseK

 

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?

 

Thank you

TAC Mod
Posts: 48
Registered: ‎04-07-2011

Re: SNA: E-Mail Subject with Port Name when Port offline

Hello @eyjo

 

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.

 

Thank you!

 

 

Denise

 

TAC Engaged Program

 

 

 

 

TAC Mod
Posts: 48
Registered: ‎04-07-2011

Re: SNA: E-Mail Subject with Port Name when Port offline

[ Edited ]

Hello @eyjo

I wanted to check in with you - TAC has been unable to reach you regarding this open issue within the Brocade Community and has closed the case I opened as a result. I hope you were able to find a resolution. If yes, it would be great if you could post the resolution to help others. If no, please let me know if there's any way we can further assist you with this issue.

Best Regards,

Denise K.
Brocade Community Team
@DeniseK

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.