Cisco Cisco 3G Wireless WAN (GPRS EDGE UMTS HSDPA HSUPA) Interface Card
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
© 2014 Cisco and/or its affiliates All rights reserved. This document is Cisco Public Information. Page 15 of 15
ISR Out-of-Band Management via SMS
Feb 13 17:15:27: %SYS-5-CONFIG_I: Configured from console by cpe on console
C819H2#
C819H2#
sh run | i event man
sh run | i event man
sh run | i event man
sh run | i event man
event manager environment _dom 12
event manager environment whitelist (8885550999
event manager environment whitelist (8885550999
8885550999
8885550999
8885550999)
event manager directory user policy "flash:/"
event manager policy commandoversms.tcl type user
C819H2#
event manager policy commandoversms.tcl type user
C819H2#
Send the same message again from the same SMS device, which is no longer authorized.
The message is received but ignored.
C819H2#
Feb 13 17:16:13.397: Cellular0: New SMS received on index 0. Please issue a view command to
see it
Feb 13 17:16:14.185: %HA_EM-6-LOG: commandoversms.tcl: received SMS from 215
215
215
2155550111
5550111
5550111
5550111 : Survey
Survey
Survey
Survey
says
says
says
says
Feb 13 17:16:14.749: %HA_EM-6-LOG: commandoversms.tcl: Successfully deleted SMS message 0 from
SIM
Feb 13 17:16:14.749: %HA_EM-6-LOG: commandoversms.tcl: Successfully deleted SMS message 0 from
SIM
ISR SMS Authorization (White List): Regular Expression Examples
The commandsoversms applet offers optional security by limiting who can execute
commands via text message on the ISR. The feature is enabled by defining an EEM variable
called “whitelist”. The variable’s value is a regular expression that can represent one or
more phone numbers, either by defining multiple numbers, or patterns for numbers. Below
are a few examples.
Match single phone number:
commands via text message on the ISR. The feature is enabled by defining an EEM variable
called “whitelist”. The variable’s value is a regular expression that can represent one or
more phone numbers, either by defining multiple numbers, or patterns for numbers. Below
are a few examples.
Match single phone number:
event manager environment whitelist 2125550101
Match any three phone numbers:
event manager environment whitelist (2195550202|5495550168|6195556035)
Match 3 area codes followed by any number:
event manager environment whitelist (212|540|610)[0-9]+
Match 2 area codes associated with specific prefixes followed by any number:
event manager environment whitelist (212555|540555)[0-9]+
For more information on regular expressions, see
www.cisco.com/c/en/us/td/docs/ios/termserv/configuration/guide/15-mt/tsv-15-MT-book/tsv_reg_express.html