HP Mellanox SX1018 Mellanox MLNX-OS® User Manualfor SX1018HP Ethernet - Page 61

Configuring an SNMP Notification

Page 61 highlights

Rev 1.6.9 Step 3. Enter privacy password and its confirmation. switch (config) # snmp-server user admin v3 prompt auth md5 priv des Auth password: ******** Confirm: ******** Privacy password: ******** Confirm: ******** switch (config) # To retrieve the system table, run the following SNMP command: snmpwalk -v3 -l authPriv -a MD5 -u admin -A "" -x DES -X "" SNMPv2-MIB::system 4.11.1.6 Configuring an SNMP Notification  To set up the SNMP Notification (traps or informs) follow the next steps Step 1. Make sure SNMP and SNMP notification are enable. Run: switch (config) # snmp-server enable switch (config) # snmp-server enable notify switch (config) # Step 2. Configure SNMP host with the desired arguments (IP Address, SNMP version, authentication methods). More than one host can be configured. Each host may have different attributes. Run: switch (config) # snmp-server host 10.134.47.3 traps version 3 user my-username auth sha my-password switch (config) # Step 3. Verify the SNMP host configuration. Run: switch (config) # show snmp host Notifications enabled: yes Default notification community: public Default notification port: 162 Notification sinks: 10.134.47.3 Enabled: yes Port: 162 (default) Notification type: SNMP v3 trap Username: my-username Authentication type: sha Privacy type: aes-128 Authentication password: (set) Privacy password: (set) Step 4. switch (config) # Configure the desired event to be sent via SNMP. Run: switch (config) # snmp-server notify event interface-up switch (config) # Mellanox Technologies 61 Mellanox Technologies Confidential

  • 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
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

Rev 1.6.9
Mellanox Technologies
61
Mellanox Technologies Confidential
Step 3.
Enter privacy password and its confirmation.
To retrieve the system table, run the following SNMP command:
snmpwalk -v3 -l authPriv -a MD5 -u admin -A
“<Authentication password>” -x DES -X
“<privacy password>” <system ip> SNMPv2-MIB::system
4.11.1.6 Configuring an SNMP Notification
To set up the SNMP Notification (traps or informs) follow the next steps
Step 1.
Make sure SNMP and SNMP notification are enable. Run:
Step 2.
Configure SNMP host with the desired arguments (IP Address, SNMP version, authentication
methods). More than one host can be configured. Each host may have different attributes. Run:
Step 3.
Verify the SNMP host configuration. Run:
Step 4.
Configure the desired event to be sent via SNMP. Run:
switch (config) # snmp-server user admin v3 prompt auth md5 priv des
Auth password: ********
Confirm: ********
Privacy password: ********
Confirm: ********
switch (config) #
switch (config) # snmp-server enable
switch (config) # snmp-server enable notify
switch (config) #
switch (config) # snmp-server host 10.134.47.3 traps version 3 user my-username auth
sha my-password
switch (config) #
switch (config) # show snmp host
Notifications enabled:
yes
Default notification community:
public
Default notification port:
162
Notification sinks:
10.134.47.3
Enabled:
yes
Port:
162 (default)
Notification type:
SNMP v3 trap
Username:
my-username
Authentication type:
sha
Privacy type:
aes-128
Authentication password: (set)
Privacy password:
(set)
switch (config) #
switch (config) # snmp-server notify event interface-up
switch (config) #