Is it possible to execute a command automatically on reboot ?

Post Reply
2502chakir2023_
Member
Posts: 3
Joined: 19 Apr 2024 04:11

Is it possible to execute a command automatically on reboot ?

Post by 2502chakir2023_ »

Hi Everyone,

I'm trying to ensure that each time the OS6360 switch reboots, it automatically executes two CLI commands:

aaa radius-server RadiusServerName1 health-check polling-interval 300 username "test" password test failover
aaa radius-server RadiusServerName2 health-check polling-interval 300 username "test" password test failover

Currently, after each reboot, the RADIUS server logs a reject, even though all settings appear to be correct on the switch. However, as soon as I manually re-enter the above command on the switch, everything works as expected and the RADIUS server logs an accept.

Therefore, I'm looking for a way to automatically trigger these commands upon reboot, to ensure proper RADIUS health-check functionality without requiring manual intervention.

Thanks in advance,
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 2087
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Is it possible to execute a command automatically on reboot ?

Post by silvio »

I think this should be possible - but I don't know an easy way for this.
The commands should fist executed if all network ports are up.
You can create a python script with the commands. But you need a trap that will be trigger the script. You have to test if the switch is sending one or more traps after comming up. F.e. if you have a linkagg to your neigbor switch there should be a trap that the linkagg is up now.
BR Silvio
2502chakir2023_
Member
Posts: 3
Joined: 19 Apr 2024 04:11

Re: Is it possible to execute a command automatically on reboot ?

Post by 2502chakir2023_ »

That’s exactly how I solved it as well—thanks!
I enabled traps on the uplink, so once the switch reboots and the uplink enters the “UP” state, the “linkUp” trap is triggered. I then used the “event-action” feature to link a Python script to that event.
Post Reply

Return to “OmniSwitch 6360”