How to reset cumulus mellanox switch running with 4.4.3

We have transfered the switch to another location and need to configure newly, want to reset the switch to factory default, is there any way to do the same

#net del all → does not helped me

Did you do a “net commit” afterwards? If so, could you elaborate in more detail on what happened?

I did it, but it says .frr file cant be deleted and changes remain in pending.

Assuming that you no longer need anything else on the switch either, the easiest way would be to load a new image on the box. That also allows you to go to 5.2 as well, but if you don’t want to go through that:

  • sudo su -
  • rm /etc/frr/frr.conf
  • touch /etc/frr/frr.conf
  • exit

Then try it again

1 Like

By the way, thanks so much for your response,

I want to keep the same version.

So this well remove all? do i need to reboot after applying it?

This will just delete the frr config. Do a net del all again after.

Let me try and update, waiting for console… :)

Its giving me below error now

net add/del commands since the last “net commit”

User Timestamp Command


root 2019-02-14 12:47:21.688524 net del all

“/bin/systemctl disable hostapd.service” failed: Command ‘[’/bin/systemctl’, ‘disable’, ‘hostapd.service’]’ returned non-zero exit status 1
‘/bin/systemctl reload frr’ failed. See /var/log/netd.log for details.
“net commit” failed for frr. All changes will remain in “net pending”.

Clearly there is an issue between nclue and the underlying files. Might be possible to solve, but I would suggest to just load the image again. Much faster solution.

1 Like