HP Mellanox SX1018 Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed - Page 48

Event Notifications

Page 48 highlights

Rev 1.6.2 Step 3. Set the minimum severity of the log level to info. Run: switch (config) # logging trap info Step 4. Override the log levels on a per-class basis. Run: switch (config) # logging trap override class For further information, please refer to Mellanox MLNX-OS Command Reference Guide. 4.5 Event Notifications 4.5.1 E-mail Notifications  To configure MLNX-OS to send you emails for all configured events and failures, perform the following steps: Step 1. Change to Config mode. Enter: switch > switch > enable switch # configure terminal Step 2. Set your mailhub to the IP address to be your mail client's server - for example, Microsoft Outlook exchange server. switch (config) # email mailhub 10.0.X.X Step 3. Add your email address for notifications. switch (config) # email notify recipient Step 4. Have the system send you a test email. switch # email send-test The last command should generate the following email: -----Original Message----From: Admin User [mailto:do-not-reply@switch.] Sent: Sunday, May 01, 2011 11:17 AM To: Subject: System event on switch: Test email for event notification ==== System information: Hostname: switch Version: 2011-05-01 14:56:31 ... Date: 2011/05/01 08:17:29 Uptime: 17h 8m 28.060s This is a test email. ==== Done. For further information, please refer to Mellanox MLNX-OS Command Reference Guide. Mellanox Technologies 48

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77

Rev 1.6.2
Mellanox Technologies
48
Step 3.
Set the minimum severity of the log level to
info
. Run:
Step 4.
Override the log levels on a per-class basis. Run:
For further information, please refer to
Mellanox MLNX-OS Command Reference Guide
.
4.5
Event Notifications
4.5.1
E-mail Notifications
To configure MLNX-OS to send you emails for all configured events and failures, perform
the following steps:
Step 1.
Change to Config mode. Enter:
Step 2.
Set your mailhub to the IP address to be your mail client’s server – for example, Microsoft Out-
look exchange server.
Step 3.
Add your email address for notifications.
Step 4.
Have the system send you a test email.
For further information, please refer to
Mellanox MLNX-OS Command Reference Guide
.
switch (config) # logging <IP address> trap info
switch (config) # logging <IP address> trap override class <class name>
switch >
switch > enable
switch # configure terminal
switch (config) # email mailhub 10.0.X.X
switch (config) # email notify recipient <email address>
switch # email send-test
The last command should generate the following email:
-----Original Message-----
From: Admin User [mailto:do-not-reply@switch.]
Sent: Sunday, May 01, 2011 11:17 AM
To: <name>
Subject: System event on switch: Test email for event notification
==== System information:
Hostname: switch
Version:
<version> 2011-05-01 14:56:31
...
Date:
2011/05/01 08:17:29
Uptime:
17h 8m 28.060s
This is a test email.
==== Done.