cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

python exception socket.error: [Errno 128] Network is unreachable

python exception socket.error: [Errno 128] Network is unreachable

Vladimir_Shenco
New Contributor
Colleagues, hello.
There was a need of sending mail on an event from the switch.
I was will find here such absolutely remarkable script of https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/Email_event/email.py

Everything is good only if to launch through cli: run script email.py I receive socket.error: [Errno 128] of Network is unreachable if through UPM Profile just silence, it is natural that the email server from the switch is available, as far as I understand problem in vr vr-default, but as to launch it having specified vr vr-default it isn't told anywhere. Prompt please how to resolve an issue with it python exception.

7 REPLIES 7

OscarK
Extreme Employee
I updated the code to be VR-Aware. Get the new python script from github, change myVirtualRouter to the VR you want (by default it is in vr-default now so no change needed for you).

Vladimir_Shenco
New Contributor
Hi Brandon ,
The email server is available from VR-Default.Maybe you know how to change such behavior of a script?

BrandonC
Extreme Employee
Hi Vladimir,

Is you mail server reachable through VR-Default or VR-Mgmt?

After a quick glance that the script, I believe this script requires reachability to the mail server via VR-Mgmt.

-Brandon
GTM-P2G8KFN