I've tried to implement this script on my router but came across the following error when the router tried sending the email:
021948: Dec 13 20:45:16.898: %HA_EM-6-LOG: sendmail.tcl: smtp_send_email: error connecting to mail server:
can't read "reply_code_str(220-gateway.firewall.cx)": no such element in array
Obviously the code in the parenthesis (220-gateway.firewall.cx) is what my email server is returning to the router when it tries to connect.
Can someone advise on how I can overcome this issue or declare the system message the email server will send to the router when it tries to connect. Here is an example of what the router gets when trying to connect:
Can you change the SMTP server to use a space instead of a '-' after the response code? As you noted, your current banner is not supported by EEM. The workaround would be to take the library code at tmpsys:/lib/tcl/smtp_lib.tcl, modify it to work with your SMTP server, modify the namespace from ::cisco::lib to something like ::customer::lib, change your code to use ::customer::lib::smtp_*, and then copy the modified smtp_lib.tcl back to your device as a user library file.
If you have more questions about this, please start a new thread.
I have opened a new thread as per request and kindly ask if you can help clarify a few questions, keeping in mind that I do not have a heavy programming background, and try to figure my way around using simple logic
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.