python exception socket.error: [Errno 128] Network is unreachable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2016 03:20 AM
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.
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-15-2016 05:05 AM
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).
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2016 04:16 PM
Hi Brandon ,
The email server is available from VR-Default.Maybe you know how to change such behavior of a script?
The email server is available from VR-Default.Maybe you know how to change such behavior of a script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2016 03:43 PM
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
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
