Remote UNIX server shutdown with SecurityProbe

August 11, 2009 by
Filed under: Data Center, SensorProbes 

Today, I thought I would take the time to highlight one of the features that makes the SecurityProbe environmental and security monitoring system so special. Where the BitSight line of probes are great entry level systems, the SecurityProbe line has many additional features that really set it apart; as well as support for the thermocouple sensor and the power monitor.

So what feature am I detailing then? Let’s talk about the server shutdown feature. Basically, the SecurityProbe can be configured to automatically shutdown a server when an event occurs. An example might be that you want to shutdown a cluster of servers based on the status of an AC voltage sensor. When you get an alert that the power went out and you are running on battery backup, this could keep your non-essential equipment from sucking up all the remaining juice.

Wondering how you configure this on your SecurityProbe? You are in luck! Just follow the instructions below.

Setup of UNIX shutdown action and notification

securityprobe unix shutdown

1. Create new Action

  • Select the “Notifications” page, then “Add Action” from the left panel.
  • You can rename the action in the “Action Name” box.

securityprobe unix shutdown

2. Select “Shutdown” from the “Action” drop down menu.
3. Select “UNIX (SSH)” from the “OS Platform” drop down menu.
4. Input your servers IP address into the “Remote Server IP” box.
5. Input your log in username into the “Remote Server Login Name” box.

securityprobe unix shutdown

6. Click on “Add Server”. Add additional IP’s if needed. Click “Next”.

securityprobe unix shutdown

7. Click “Reset Public Key” (If you already have a Public Key, skip this step and proceed to step number 11 below).

secp unix shutdown

8. After clicking “Reset Public Key” a new Window will then pop up, press “Generate”.
9. The unit will now generate a new public key. It will normally take approximately 1 to 3 minutes for the system to generate the new public key, so please be patient.
10. After the public key has been generated, press “Use This Public Key”.

securityprobe unix shutdown

11. Open a Telnet or SSH session to the unit.

cd ~/.ssh
ls
rm known_hosts

12. Make sure to delete the know_hosts file to ensure generating a new list of hosts when using this command shown above.

ssh @
When
is User name in server
is IP address of server

13. Then connect to the server by using this command shown above.

securityprobe unix shutdown

cd ~/.ssh
cat > authorized_keys
#copy public key from web interface and press (for putty can press by right click)
#press Enter button and press Ctrl + c for exit cat command

14. After connecting to the server, create an authorized_keys file by using this command shown above
15. Then disconnect from the server and connect to the unit.

securityprobe unix shutdown

ssh –I /flash1/user/shutdown_notify/dsskey.db @
When
is User name in server
is IP address of server

16. Now test the public key by using this command shown above.

securityprobe unix shutdown

17. Return to the units web interface and click “Next”.

securityprobe unix shutdown

18. You can now set the other settings in the Shutdown action and click “Next”.

securityprobe unix shutdown

19. You can also enable a shutdown message to be sent by first choosing “Enabled”, then entering your message in the “Shutdown Message” box, then clicking “Finish”.

That’s all there is to it. Stay tuned for more SecurityProbe exclusive feature spotlights.

~ Jon Mills
Follow me on Twitter

Related posts:

  1. Dry contact monitoring with Ravica SecurityProbe-x20/60
  2. Server room temperature alerts via Skype
  3. SNMP support for the SecurityProbe allows secure data center monitoring
  4. Humidity Monitoring – Unforseen danger in your server room
  5. Recommended Server Room Temperature and your Ravica SensorProbes

Comments