Copyright © NetPing east Co., Ltd E-mail:
Phone:+886-2-23121582
[ENG] 12.11. [DKSF 48.4 IU] How to Send Random 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 message
npGsmSendSms
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
NET-SNMP
NET-SN
from the section Download of the website:
MP
http://net-snmp.sourceforge.net/download.html
2. After installing the package
, run the utility
NET-SNMP
from a command line. To run a command line, use a key combination «
snmpset.exe
Window
». After a window
s+L
«Execute»
is opened, enter a command «cmd» and click the button «Enter». Then go to the installing directory of the utility snm
:
pset.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 community=SWITCH on
–
«SETUP»
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
–
:
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