CLI command comes back even after deletion

CLI command comes back even after deletion

CLI command comes back even after deletion
CLI command comes back even after deletion
2026-09-19 12:38:00 - last edited 2026-10-08 03:30:17
Model: SG2218P  
Hardware Version: V1
Firmware Version: newest

Hi.

I have the problem, that I once applied port security rules (MAC binding number allowed 1) to several port of my switch via omada cli command.

It worked great, but now the setup changed, so I removed the cli commands and also removed the config from the switch (with no command) and checked it via show running config.

But now after some time the rules automatically get reapplied on the switch although the rules are not defined on the controller anymore..

 

How can I debug and remove the rules? Where are the zombies stored?

 

Thank you and br

 

Sebastian 

  0      
0
#1
Options
1 Accepted Solution
Re:CLI command comes back even after deletion-Solution
2026-10-06 10:31:20 - last edited 2026-10-08 03:30:17

  @Nathan-TP 

I resetted the Switch to factory defaults and readopted it to the system. After sync it now is stable since several days... 
Lets hope it stays like this. 

 


For documentary:

I once had the following CLI-config in place on the controller for the switch. It was there 4 times for interfaces  1/0/6 - 1/0/9
 

interface gigabitEthernet 1/0/6
mac address-table max-mac-count max-number 1
mac address-table max-mac-count exceed-max-learned enable
mac address-table max-mac-count mode permanent
mac address-table max-mac-count status drop

 

 After some while I didn't need the config for interface 1/0/6 anymore. So I removed this interface from the config and in addition I applied a second CLI script one time which removed the config for this interface.   no mac adress [...]

I checked the running config and all was good. 

But after some while the interface 1/0/6 stopped working and be checking the running config I could see, that the mac rules were there again for 1/0/6
Even if the definition of the CLI config was not including this interface anymore....

Recommended Solution
  1  
1
#5
Options
5 Reply
Re:CLI command comes back even after deletion
2026-09-20 07:35:19

  @SebastianH 
 

Hi,

Thank you for posting in the Business Networking Forum.

 

Could you please let us know if the same issue occurs when the switch is in standalone mode? If possible, please try removing the switch from the Controller and test it in standalone mode. Additionally, please provide your Controller type and version. Also, please provide the Switch's firmware version. Thank you for your cooperation.

  0  
0
#2
Options
Re:CLI command comes back even after deletion
2026-09-20 14:05:36

  @Nathan-TP 

 

Thank you for your reply.

I never used the switch in standalone mode and can not easily remove it from the config as it is production environment.. 

I can deliver more details and debugging information until end of the week/ beginning of next week.

As I am on vacation right now.

 

Controller is the OC300 hardware controller with the newest stable firmware. And also the switch is on the stable release.

 

Even after resetting the controller and reapplying a backup config the behaviour came back. But only after some time. Not directly after adopting or restart.

Can I somehow export and analyse the complete config of the devices from the controller?

And maybe modify it before reapplying?

 

Thx 

  0  
0
#3
Options
Re:CLI command comes back even after deletion
2026-09-22 03:53:42

  @SebastianH 
 

Hi,

Thank you for providing the relevant information.

 

We are able to successfully apply and remove configurations on the local device.

 

We would like to confirm which commands you used for the configuration. When a switch reconnects to the controller, the controller synchronizes its CLI to the device. However, simply deleting the CLI command does not remove the configuration; you need to separately configure a “no” command to remove it. Please check whether the command records still exist in the device CLI.

 

 

  0  
0
#4
Options
Re:CLI command comes back even after deletion-Solution
2026-10-06 10:31:20 - last edited 2026-10-08 03:30:17

  @Nathan-TP 

I resetted the Switch to factory defaults and readopted it to the system. After sync it now is stable since several days... 
Lets hope it stays like this. 

 


For documentary:

I once had the following CLI-config in place on the controller for the switch. It was there 4 times for interfaces  1/0/6 - 1/0/9
 

interface gigabitEthernet 1/0/6
mac address-table max-mac-count max-number 1
mac address-table max-mac-count exceed-max-learned enable
mac address-table max-mac-count mode permanent
mac address-table max-mac-count status drop

 

 After some while I didn't need the config for interface 1/0/6 anymore. So I removed this interface from the config and in addition I applied a second CLI script one time which removed the config for this interface.   no mac adress [...]

I checked the running config and all was good. 

But after some while the interface 1/0/6 stopped working and be checking the running config I could see, that the mac rules were there again for 1/0/6
Even if the definition of the CLI config was not including this interface anymore....

Recommended Solution
  1  
1
#5
Options
Re:CLI command comes back even after deletion
2026-10-08 03:30:09

Hi,  @SebastianH 

Thank you for providing the relevant information.

 

If the switch is still experiencing any related issues, please feel free to leave a post here at any time. We would be happy to investigate further.

  0  
0
#6
Options