SMSPDU

From ServersCheck Wiki

Jump to: navigation, search

As part of the BTS Monitoring Appliance and the special version of the Monitoring Software running on it, users can use the feature which enables them to perform cold reboots (power off - power on sequence) via secure SMS messaging. Requires a special license file to be installed (reboot.lic)

This feature requires the ServersCheck PDU to operate.

Contents

Defining PDU

To start using this feature, first go to the web interface of the software and then click on Configuration > General Settings > Power Distribution Units (PDU) Follow window will open

Smspdu1.jpg

To add a new PDU simply change the number of PDU's in the drop down box and click on CHANGE Based upon the number of PDU's defined, the same number of PDU's will appear.

For each PDU you need to provide its IP address, username and password Default username and password are: snmp and 1234

Once you have defined the PDU's to be used, click on SAVE SETTINGS


Defining Modem listening for incoming SMS

Now we need to define the 3G modem attached to the BTS Monitoring Appliance having a SIM card of a competing network. Make sure that you know the COM port of the modem. Best is in this step to only have this modem plugged in so that no mistake can be made when configuring.

Go to Configuration > General Settings > SMS (Cell Phone Text Message) Settings

A similar window as the one below will open

Smspdu2.jpg


1) First select the option 3G & GSM Modem 2) Select the correct COM port for the modem attached which runs the SIM card of the competitor network 3) Make sure to enter here the correct SMS Centre Number for the network of your competitor's mobile network 4) In the list of Authorized numbers enter here the numbers or part of it (to allow multiple numbers of a same range) that are allowed to use this feature. If the list is left blank or the calling number is not part of the list, then the message will be ignored BUT logged.

When done, click on SAVE SETTINGS


Reboot Message Structure

The SMS sent to the number of the SIM card has to have following structure:

reboot pduX portY sleepZ

- where X is the pdu number as shown in the interface. In above example this would be 0

- where Y is the port number of the PDU for which a power off - power on sequence should be performed. This can be any number between 1 and 16

- where Z is the time in seconds that the system waits before performing the power on after a power off. This setting is optional and by default it will wait 3 seconds


Example: to reboot port 7 on pdu 0 and wait 10 seconds you need to send following SMS

reboot pdu0 port7 sleep10


Demo

We are going to reuse for this demo the above example: reboot port 7 on pdu 0 and wait 10 seconds you need to send following SMS

reboot pdu0 port7 sleep10

Following screens show step per step what has to be sent and how the system responds

First we are sending the SMS

Picture 006.png


The system replies with a unique ID code that we need to send back. This is to make sure that the command we just sent was actually sent by the sender (to avoid SMS number spoofing)

Picture 001.png


Now we need to reply the exact message to confirm the reboot command

Picture 002.png Picture 005.png


The system now processes the message and sends us back the confirmation that the action has been performed.

Picture 007.png

Personal tools