Hello, I am tasked with writing a config template for the initial configuration of a Cisco809 device as per my companies standards.
I have attached the config script below
/*
.CHANGE_TEMPLATE_DESCRIPTION
Change Login Banner on Cisco IOS devices
.CHANGE_TEMPLATE_TAGS
Cisco
.PLATFORM_DESCRIPTION
Cisco IOS
.PARAMETER_LABEL @ContextNode
NCM Node
.PARAMETER_DESCRIPTION @ContextNode
The node the template will operate on. All templates require this by default. The target node is selected during the first part of the wizard so it will not be available for selection when defining values of variables.
.PARAMETER_LABEL @SiteCode
Site Code
.PARAMETER_DESCRIPTION @SiteCode
Enter site code for 809 router E
*/
script ChangeLoginBannerCiscoIOS (
NCM.Nodes @ContextNode,
string @SiteCode )
{
CLI
{
! General Configurations
conf t
hostname @SiteCode
ip domain name cz.testca
boot system flash:/ir800-universalk9-mz.SPA.155-3.M4a
no boot network
no boot host
exit
! Cellular Configurations
cellular 0 lte profile create 1 test.ca none ipv4
y
conf t
controller Cellular 0
lte sim data-profile 1 attach-profile 1 slot 0
exit
interface Cellular 0
ip address negotiated
no ip proxy-arp
no ip redirects
no ip mask-reply
ip virtual-reassembly in
load-interval 30
dialer in-band
dialer idle-timeout 0
dialer enable-timeout 6
dialer watch-group 1
dialer string lte
dialer-group 1
no peer default ip address
async mode interactive
routing dynamic
no shutdown
exit
interface Dialer1
no ip address
exit
dialer watch-list 1 ip 5.6.7.8 0.0.0.0
dialer watch-list 1 delay route-check initial 60
dialer watch-list 1 delay connect 1
dialer-list 1 protocol ip permit
line 3
script dialer lte
modem InOut
no exec
transport preferred none
transport input all
transport output all
exit
!License Configuration!
license accept end user agreement
license boot module ir800 technology-package securityk9
license boot module ir800 technology-package datak9
exit
write mem
reload
}
}
I am using the reload command which exits the cmd line window. Is there anyway to use the reload command and continue writing more? Or does the script end due to the window automatically closing after a reload command.
This is my first time using a NMS software and this is my first script. Thanks