Caveats

Top  Previous  Next

Caveats

service prompt config:  By default Cisco IOS contains a “configuration prompt” when the user is in configuration mode.  However, this was not always the case.  For old versions of IOS a configuration prompt was not returned after the user entered a configuration command.  After the user entered “return”, if nothing came back to the screen the command was considered successful.  Cisco changed this in later versions of IOS but for backward compatibility they gave the user the option to turn off the configuration prompt.  Turning off the configuration prompt (no service prompt config) causes a problem for any of the scripts that enter commands in configuration mode.   Running any of the scripts below with the configuration prompt off will result in errors.  Do Not Run Them until the service prompt config command has been entered on the router. 

 

Current scripts that are affected are:

 

config_devices
cisco_passwd_change
cisco_send_cmds (Only if sending config commands with this script)

 

Below shows a sample output in configuration mode when a configuration prompt is present:

 

rtr-1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
rtr-1 (config)#ip host test 1.1.1.1
rtr-1 (config)#ip host test2 2.2.2.2
rtr-1 (config)#end
rtr-1#conf t

 

Below shows a sample output in configuration mode when there is not a prompt in config mode:

 

rtr-1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ip host test 1.1.1.1
ip host test2 2.2.2.2
end
rtr-1#conf t

 

 

Workaround:  Enter the configuration command “service prompt config” manually on all routers or use the config_devices script to do this.   With the config_devices script, enter the command “service prompt config” in the command file.  Each router the script is run against will report an error after entering the “config terminal” command.  This error can be ignored when reviewing the “summary.log” file.