04-16-2024 01:14 AM
Hi Team,
Can anyone please help me in powering off the cisco Leaf and spine switches?
Thanks
Rajan
Solved! Go to Solution.
04-17-2024 02:22 AM
Hi @rajangahlout ,
my requirement is to power-off/shutdown the switches remotely.
Then the best option is to buy a managed power rail. There is no user accessible command to shutdown a switch. If indeed the /sbin/shutdown
command works, you'll need to raise a TAC case to log into the switch as root and issue the command.
Hope this is clear now.
04-16-2024 02:50 AM
Below error I am getting :
achi25-25g-leaf1# shutdown
bash: /sbin/shutdown: Permission denied
04-16-2024 12:52 PM
Hi @rajangahlout ,
There is no command to shutdown a switch. In the lab I work with, we use managed power rails that can remove the power from individual leaf/spine switches which we do often - once or twice a month, to conserve power usage.
If you want to completely remove a switch, decommission it from the APIC. (Fabric > Inventory > Pod1 > switchid >+ Decommission - note there are other options in the same menu that may be relevant - i.e. Maintenance (GIR) and Remove From Controller)
If you want to remove the configuration from a switch, the command is
Leaf1201# setup-clean-config.sh
If you want to completely clear tha whole ACI fabric, use the method I described in this answer
04-16-2024 10:25 PM
Thanks for the reply, but my requirement is to power-off/shutdown the switches remotely.
04-17-2024 02:22 AM
Hi @rajangahlout ,
my requirement is to power-off/shutdown the switches remotely.
Then the best option is to buy a managed power rail. There is no user accessible command to shutdown a switch. If indeed the /sbin/shutdown
command works, you'll need to raise a TAC case to log into the switch as root and issue the command.
Hope this is clear now.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide