NetPing server room environmental monitoring solutions and IP power distribution units.
Copyright © NetPing east Co., Ltd / E-mail:
/ Phone: +886-2-23121582
[email protected] www.netpingdevice.com
[ENG] 12.11. [DKSF 48.5 IU] How to Send Arbitrary SMS?
SENDING SMS MESSAGES USING AN SNMP PROTOCOL
To send SMS using an SNMP protocol, there is a need to use a variable «
», where a destination number and a text of an SMS
npGsmSendSms
message is written. To do this, see a MIB file, which can be downloaded at the page for describing a device, the tab «
».
Files
OID
Name
Type
Access
.1.3.6.1.4.1.25728.3800.1.3.0
npGsmSendSMS
DisplayString
READ/WRITE
A format of random SMS message:
where:
phone_number – is a destination number in square brackets.
Message – is a text of a message (is separated by a space character from a destination number).
It is possible to send SMS to several destination numbers, having indicated them in square brackets separated by a comma without spaces. If
there are no destination numbers chosen, an SMS will go to numbers programmed in settings of SMS notifications.
Example of Sequence of Commands for Sending a Random SMS through SNMP Using NET-SNMP Package
1. To send a random SMS, it is possible to use a specific package
. To do this, there is a need to download a distributive package
from the section Download of the website:
http://net-snmp.sourceforge.net/download.html
2. After installing the package
, run the utility
from a command line. To run a command line, use a key combination «
snmpset.exe
Win
». After a window
dows+L
«Execute»
is opened, enter a command «cmd» and click the button «Enter». Then go to the installing directory of the
utility
:
snmpset.exe in a command line
3. Run the utility
with the following parameters of a command line:
snmpset.exe
where:
COMMUNITY is a specific password, which is set at the page
of a device web interface. In NetPing devices, it is
–
«SETUP»
community=SWITCH on default;
IP is an IP address of a NetPing device, through which a random SMS message will be sent;
–
OID is an SNMP identifier of a variable
;
–
«npGsmSendSms», which is used to send a random SMS message
TYPE is a type of written value of an SNMP identifier of a variable. Symbols of types are represented in the picture
–
:
VALUE is a written value, i.e. a text of an SMS message
–
Based on the above description, a command for sending a random SMS using the utility
is:
snmpset.exe
A maximum length of random SMS messages cannot exceed 140 characters for Latin letters and 70 characters for Cyrillic ones. If there
are both Latin and Cyrillic letters in the text of SMS, then the length of such SMS message cannot exceed 70 characters.
[phone_number,phone_number,...] Message
snmpset.exe -v 1 -c COMMUNITY
IP
OID
TYPE
VALUE