10 Posts
0
687
January 17th, 2023 04:00
S4048 EEM style scripting
Hi guys
Is there anything similar to Cisco EEM on a Dell S4048-ON running 9.14(2.17) ?
Im trying to run a script when a certain syslog message is received (ospf neighbour lost so network removed from ospf area)
Ideally want this to happen like the Cisco EEM but am struggling to find a way.
thanks
No Events found!
networks
10 Posts
0
January 18th, 2023 08:00
thanks - got it all working now - too long looking at the wrong modes- doh!!!!
here is how I have managed to get the same functionality as Cisco EEM to run a few commands to remove a network from OSPF if an interface starts flapping! hopefully will help others out!
=====install smart scripts========
pack install tftp://xxx.xxx.xxx.xxx/SMARTSCRIPTS-I-9.14.2.0.tar.gz
reload
=====install scripts ========
script get tftp://xxx.xxx.xxx.xxx/~~~~scriptname~~~~~~~
=====create event to trigger on syslog event ==============
script trigger-event ##name of event### log-event tag tag-regex ~~~~ASTATE.*up~~~~
======== link the event to the script=========
script event-handler ~name~
execute dellsh args /usr/pkg/ss-scripts/~~~~scriptname~~~~~~~
triggered-by ##name of event###
no disable
DELL-Marco B
Moderator
•
3.8K Posts
0
January 17th, 2023 12:00
Hello,
I'm afraid nothing similar, the only script you can launch is based on CLI using SSH connection, like here
https://dell.to/3w6pG3D
Thanks
networks
10 Posts
0
January 17th, 2023 23:00
so a little bit of further investigation and we have used smartscripts and have been able to create scripts that can be executed. according to the manuals (Dell EMC Networking Open Automation Guide 9.14.2.1 June 2019) it is possible to execute these scripts based upon a syslog event, but it seems the commands do not exist in the firmware. I'm looking for the script trigger-event commands but not sure if this is something that can be done a different way?
networks
10 Posts
0
January 18th, 2023 01:00
im using S4048-on with firmware 9.14(2.17) and smart scripts version 9.14.2.0
DELL-Marco B
Moderator
•
3.8K Posts
0
January 18th, 2023 01:00
his command should be introduced from 9.8 version. Let see if other customer has the same issue
networks
10 Posts
0
January 18th, 2023 02:00
so im looking for the script trigger-event command, but there is no such command
here is the available commands
#script ?
clear - Clear Watch Script Execution Timeout
execute - Schedule a script for execution
get - Download a script
kill - Terminate the script execution
remove - Delete the script file
resume - Resume the script execution
stop - Stop the script execution
unschedule - Unschedule a script
DELL-Marco B
Moderator
•
3.8K Posts
0
January 18th, 2023 02:00
Are you in configuration mode?
Here how to enter in configuration mode
DELL-Marco B
Moderator
•
3.8K Posts
0
January 18th, 2023 02:00
Yes I know but the documentation says that this command is present.
Which error you have, and how do you use this command?
DELL-Marco B
Moderator
•
3.8K Posts
0
January 18th, 2023 06:00
Dell Command Line Reference Guide for the S4048–ON System 9.14.2.5 | Dell US