How Configuring Events and Traps in Switches Extreme XOS

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
I need to configure events in the logs of the switch and also that these are replicated to NetSight as I set these alerts on Switch Extreme and that can be displayed in NetSight?
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Tony Thornton

Tony Thornton, Extreme Alumnus

  • 1,412 Points 1k badge 2x thumb
Hi Jairo,

You can configure ELRP to send traps to NetSight.  The link below can help:

https://gtacknowledge.extremenetworks.com/articles/Solution/ELRP-Loop-Detected-alarm-is-not-triggere...

Make sure you select the 'log-and-trap' option as mentioned in the article.

Some of the events you want to add traps for may already be sent when ELRP is configured to send traps according to the link above.


Hope this helps.
Tony
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb
Thanks Tony, but these events are not replicated in the NetSight console.

Anyone have any template settings SNMPv3 work, the LOG-and-Traps set in swicthes events and are reported in NetSight alarms?

I have done everything documentation says more than three months ago but it does not work unless NetSight not work with Extreme Traps.

I appreciate your collaboration...

Photo of Tony Thornton

Tony Thornton, Extreme Alumnus

  • 1,412 Points 1k badge 2x thumb
Jairo,

It looks like you don't have NetSight configured as a trap receiver on the switch.  Please confirm that the correct VR is being used in the communication settings as mentioned in the article link below:

https://gtacknowledge.extremenetworks.com/articles/Solution/Inventory-Manager-Failed-to-Upgrade-Firm...

As mentioned in the article, for the Firmware Download MIB and Configuration MIB menus, you should select Script for both and the Device Family Definition File Name select ExtremeXOS - TFTP(VR-Mgmt)

If any changes are made, make sure to save them by clicking on the Save button near the top right corner of the screen.

Then try to add NetSight as a trap receiver again.
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb
-- Use these scripts to manage Extreme XOS devices
name="ExtremeXOS - TFTP (VR-Mgmt)"
desc="Extreme SSH/TFTP Scripts using VR-Mgmt interface"
protocol=TFTP
--
separator=UNIX_FILE_SEPARATOR
advanced_script_support=true
-- Recheck script output for success even if there was an error.
perform_success_test_always=true
--
-----BEGIN SCRIPT "Configuration Upload"-----
save configuration primary
Y

@receive 5
save configuration as-script nms
@key y
@key %0d
@RECEIVEUNTIL 30 ".*done!.*"
@receive 5
%EXTR_DYNAMIC_COMMANDS%
@receive 5
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
Uploading.*done!
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Configuration Upload"-----
Error: timeout=The device was unable to contact the TFTP server. Check that the TFTP server is running and connectivity is okay.
Network is unreachable=The device was unable to backup the configuration.  Check that the correct VR is being used.
.*to switch... failed=Backup of the configuration failed.  Verify that the TFTP server is running and connectivity is okay.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Configuration Download"-----
save configuration primary
Y
%EXTR_DYNAMIC_COMMANDS%
@receive 10
use configuration primary
reboot
y
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Download"-----
Downloading.*(to switch|on.*MSM|on.*MM).+ done!
The selected configuration will take effect after the next switch reboot.
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Configuration Download"-----
Error: timeout=The device was unable to contact the TFTP server. Check that the TFTP server is running and connectivity is okay.
Network is unreachable=The device was unable to download the configuration.  Check that the correct VR is being used.
Downloading.*to switch... failed=Restore of the configuration failed.  Verify that the TFTP server is running and connectivity is okay.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Firmware Download"-----
%SET_IMAGE_PARTITION_BEFORE_INSTALL%

@# Remove any debug files from internal-memory before upgrade
rm internal-memory *
@key y
@key %0d
@receive 5

download image %TFTP_IP% %RELATIVE_TARGET_FILE_PATH% vr "%VR_VAR%"
@key y
@COMMANDDONE 30
@key %0d
@COMMANDDONE 2
%SET_IMAGE_PARTITION_AFTER_INSTALL%
exit
@# Answer to Save Configuration?
@key y
-----END SCRIPT-----
-----BEGIN SUCCESS "Firmware Download"-----
Image installed successfully
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Firmware Download"-----
Downloading to Switchexit=The device was unable to contact the tftp server. Verify the TFTP server is running and connectivity is okay.
tftp: sendto: Network is unreachable=The device was unable to download the image.  Check that the correct VR is being used.
tftp: server error: (2) cannot access file=The device cannot access the image file.  Please check the permissions of the file.
is not an Extreme Networks image=The file selected to be downloaded to the device is NOT an Extreme Netowrks image.  Please select an appropriate image file.
Error: File could not be unwrapped=The image file selected is corrupt and cannot be downloaded.
Error: File is not properly formatted=The image file selected is not properly formatted.
Error: Illegal filename=The image filename is illegal.  Verify that the correct image file is being used.
Error: Failed to install image - version mismatch between XOS and xmod=The selected partition does not have the same firmware version as the .xmod image file.
Error: Failed to install image - Package exists, please uninstall existing package first=Package exists, please uninstall existing package first
active partitions must be the same across the stack=All devices in the stack must be using the same active partition.  Correct and repeat firmware download.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "BootPROM Download"-----
download bootrom %TFTP_IP% %RELATIVE_TARGET_FILE_PATH% vr "%VR_VAR%"
@key y
@COMMANDDONE 30
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "BootPROM Download"-----
Bootrom installed successfully
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "BootPROM Download"-----
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Reset"-----
reboot
y
-----END SCRIPT-----
-----BEGIN SCRIPT "Timed Reset"-----
disable clipaging
reboot time %TIMED_RESET_ABSOLUTE_TIME%
y
show switch
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Timed Reset"-----
^Next Reboot:(?!.*None scheduled)
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Timed Reset"-----
Error: Scheduled reboot time is in the past=Scheduled reboot time must be in the future.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Timed Reset Abort"-----
disable clipaging
reboot cancel
show switch
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Timed Reset Abort"-----
Next Reboot:\s*None scheduled
-----END SUCCESS-----
-----BEGIN USER-DEFINED VARIABLES -----
VR_VAR.Default=VR-Mgmt
PUT_FILE_CMD.Default=tftp %TFTP_IP% -v "%VR_VAR%" -p -l %LOCAL_FILE_NAME% -r %REMOTE_FILE_NAME%
GET_FILE_CMD.Default=tftp %TFTP_IP% -v "%VR_VAR%" -g -l %LOCAL_FILE_NAME% -r %REMOTE_FILE_NAME%
RESTORE_PRIMARY_CMD.Default=tftp get %TFTP_IP% vr "%VR_VAR%" %RELATIVE_TARGET_FILE_PATH% primary.cfg force-overwrite
-----END USER-DEFINED VARIABLES -----
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb

I already appear in the events Syslog alarms, but does not appear in the Traps and Alarms also in the Console do not appear, but I falata to tune?

Acting aveidencias events in the Log Switch but do not appear in the console alarms NetSight
Photo of Tony Thornton

Tony Thornton, Extreme Alumnus

  • 1,412 Points 1k badge 2x thumb
Would you confirm if the SNMP community information on the switch match the community credentials you are using in NetSight to communicate with the switch?

In the Trap Receiver Configuration window, there is an error in the Status field.  I cannot read all of it.  It says "Error 100 - All..."  Would you let me know what the complete error message is?

Also, In the Trap Receiver Configuration window can you click on the SNMPtrapd tab and verify that the "engine id" value matches what is configured on the switch?  To get the engine id value on the switch enter the command "show snmpv3 engine-info".  If there is no engine id in NetSight, you can click the 'Get EngineID' button.
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb
This is the configuration over Switch Extreme

Photo of Tony Thornton

Tony Thornton, Extreme Alumnus

  • 1,412 Points 1k badge 2x thumb
It looks like the engine id matches. Does the SNMP community and user information configured on the switch match the SNMP Device Access Profile used in NetSight?

Go to Console > Tools > Authorization/Device Access > click on Profiles/Credentials tab 



Do the Access Profile credentials (Read /  Write) in NetSight you are using to communicate with the switch match the SNMP credentials configured on the switch?  You can double click on a profile to view or edit the read / write credentials including passwords.
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb
Shared the configuration!!
Photo of Tony Thornton

Tony Thornton, Extreme Alumnus

  • 1,412 Points 1k badge 2x thumb
There may be some misunderstanding.  At this point since adding the switch as a trap receiver did not work, I am looking to confirm the SNMP settings, which is done in Console > Tools > Authorization / Device Access, not the trap receiver settings as shown in your latest screenshot. 
Photo of Jairo Rojas Herrera

Jairo Rojas Herrera

  • 1,452 Points 1k badge 2x thumb