Identify and close iDRAC sessions via SSH

An iDRAC can run out of available sessions and hence refuse any new connections over the web interface. This happens if the admin logs on multiple times and doesn’t log out (just closing the window). Luckily this is easy to remedy:

SSH to iDRAC of server:
ssh root@10.6.26.222

Get session list:
racadm getssninfo
SSNID Type User IP Address Login Date/Time
—————————————————————————
6 GUI root 10.3.2.147 12/06/2013 09:34:49
7 GUI root 10.3.2.147 12/06/2013 09:35:25
11 GUI root 10.3.2.147 12/06/2013 10:43:57
12 SSH root 10.3.2.155 12/16/2013 12:46:31

Kill the session we want to get rid of:
racadm closessn -i 6
Session 6 closed successfully.

Leave a Reply