Community discussions

MUM Europe 2020
 
jc179
just joined
Topic Author
Posts: 6
Joined: Fri Nov 15, 2019 7:08 am

Mikrotik switch SFP+ port issue on COLD restart

Mon Feb 10, 2020 12:23 am

Hi All,

I have a crs226-24g-s2+rm running v6.42.11 (long-term), which has an odd issue with SFP+ port not coming back up after AC/DC loss.

This issue only happens if the switch loses AC/DC power and has an unexpected shutdown, a software reboot this does not happen.

Issue is the SFP+ will not come back up, shows under interfaces " no link, not running, slave"

To get the SFP+ to come back up, I need to
- goto interfaces, uncheck "Enabled", press Apply, wait 5 seconds
- check off Enabled, and press Apply again

All resumes working, and life is good again until power is lost.

Is there anyway to script something to do this automatically upon boot everytime (shutdown sfpplus1, wait , restart it) ?

I am so desperate I would even settle for something as crude as
curl something http://switchipaddress/settings.cgi?sfp ... ntevencare
curl something http://switchipaddress/settings.cgi?sfp ... ntevencare
(can I toggle this via a script on a remote box, or even switch crontab /startup rc.local ? )

Also, this issue does not happen in my crs125-24g-1s-rm, the single SFP resumes automatically when power is cut and comes back.

SFP is a HUAWEI MA5671A which works perfect otherwise...

Edit: It only behaves like this using this SFP - other SFP are OK , and yes I understand this might be due to an incompatibility... but if I can work around this I am very happy!

Any ideas?

thanks
Jonathan
 
Zacharias
Forum Guru
Forum Guru
Posts: 1437
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Mikrotik switch SFP+ port issue on COLD restart

Mon Feb 10, 2020 6:38 pm

Why don't you start with updating the ROS and see if the problem continues ?
 
mkx
Forum Guru
Forum Guru
Posts: 3745
Joined: Thu Mar 03, 2016 10:23 pm

Re: Mikrotik switch SFP+ port issue on COLD restart

Mon Feb 10, 2020 7:24 pm

Why don't you start with updating the ROS ...

... including routerboot.
BR,
Metod
 
jc179
just joined
Topic Author
Posts: 6
Joined: Fri Nov 15, 2019 7:08 am

Re: Mikrotik switch SFP+ port issue on COLD restart

Tue Feb 11, 2020 5:57 am

Hey,

Good idea! - Upgraded firmware to v6.46.3 (stable), and routerboard to Current Firmware 6.46.3 …. and No change :(

Is there anyway to just get to a shell, and ifconfig this sucker up and down and see if that works upon boot?

Any other ideas?

Jonathan
 
jc179
just joined
Topic Author
Posts: 6
Joined: Fri Nov 15, 2019 7:08 am

Re: Mikrotik switch SFP+ port issue on COLD restart

Tue Feb 11, 2020 8:04 am

Trying to add a work around while getting this worked out...

added a start up script that seems to kinda work (3/5 tries) - I wonder if interface set sfp-sfpplus1 disabled= yes/no is equivalent to the GUI's "Enabled" checkbox. No idea how to get to a shell prompt yet.
interface set sfp-sfpplus1 disabled=yes
delay 5
interface set sfp-sfpplus1 disabled=no
[admin@MikroTik] /system> script print
Flags: I - invalid
 0   ;;; reset sfp1 port to fix glitch with sfp
     name="startup-script" owner="admin" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon
     dont-require-permissions=no run-count=0 source=
       interface set sfp-sfpplus1 disabled=yes
       delay 5
       interface set sfp-sfpplus1 disabled=no
[admin@MikroTik] /system> schedule
[admin@MikroTik] /system scheduler>

.. -- go up to system
add -- Create a new item
comment -- Set comment for items
disable -- Disable items
edit --
enable -- Enable items
export -- Print or save an export script that can be used to restore configuration
find -- Find items by value
get -- Gets value of item's property
print -- Print values of item properties
remove -- Remove item
set -- Change item properties


[admin@MikroTik] /system scheduler> print
Flags: X - disabled
 #   NAME                  START-DATE  START-TIME                INTERVAL             ON-EVENT                 RUN-COUNT
 0   startup-script                    startup                   0s                   startup startup-script           0
[admin@MikroTik] /system scheduler> ..
[admin@MikroTik] /system> ..
I am not 100% certain if "ON-EVENT" should be the name of the script, or the keyword "startup" so I put both.

Jonathan

Who is online

Users browsing this forum: Labriks, mbovenka and 28 guests