Hi Marc,
i usually embed this type of config in a small inline self-destructing EEM script.
here is one for "aaa",
Network Automation with Plug and Play (PnP) – Part 7
but you could do a simpler version for your serial config. Put something like this at the end of the configuration file that gets downloaded.
- Strip out the serial config commands into this section
- Change the timeout to 180sec or what ever is safe
- debug event manager action cli is a useful command to run when testing to make sure the script is running properly.
- This script will only run once, then remove itself. You need to do a "wr me" at the end to save the new config (including removing the EEM script)
event manager applet POST_PNP
! time in seconds
event timer countdown time 10
action 0.1 cli command "enable"
action 0.2 cli command "config t"
! what ever commands you want in here
action 1.0 cli command "int g3"
action 1.1 cli command "no shut"
action 2.0 syslog msg "PNP serial config by EEM "
action 3.0 cli command "no event manager applet POST_PNP"
action 3.1 cli command "end"
action 3.2 cli command "wr mem"
end