10-23-2019 09:15 PM
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
10-24-2019 01:19 AM
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"
10-27-2019 03:57 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide