cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
765
Views
0
Helpful
2
Replies

Cellular configuration via EEM

Sumit Sharma
Level 1
Level 1

Hello, am looking to configure the Cellular profile on a Cisco 897 router via EEM though i need "enter" equivalent command to put in the script below. 

 

event timer countdown time 30
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "int cellular 0"

action 1.3 cli command "shut"
action 1.4 cli command "no dialer in-band"
action 1.5 cli command "int cellular 1"
action 1.6 cli command "shut"
action 1.7 cli command "int di4"
action 1.8 cli command "shut"
action 1.9 cli command "do cellular 0 lte profile create 1 cb-bu chap username@serviceprovider.net XXXXX ipv4"
action 1.10 cli command "command required instead of physically pressing enter key"

action 1.11 cli command pattern "yes/no"

action 1.12 cli "yes"

action 1.13 cli command "int cellular 0"
action 1.14 cli command "dialer in-band"

action 1.15 cli command "no shut"
action 1.16 cli command "int cellular 1"
action 1.17 cli command "no shut"
action 1.18 cli command "int di4"
action 1.19 cli command "no shut"

 

appreciate if any one has the "enter" equivalent command or any other way.

 

thanks and regards

2 Replies 2

Hello,

 

try and add the words marked in bold:

 

action 1.9 cli command "do cellular 0 lte profile create 1 cb-bu chap username@serviceprovider.net XXXXX ipv4" pattern "confirm"
action 1.10 cli command "y"

Thank you for your kind assistance, I will try and update you soon though as far as i recall the message after executing the command is to press enter to continue or any other key to discard. 

Review Cisco Networking for a $25 gift card