Appendix A. Cisco IOS Tcl Commands Quick Reference
This appendix includes only those Tcl commands specific to Cisco IOS. If a command is not mentioned, it indicates the command acts identically in Cisco IOS Tcl as Tcl running on other operating systems.
Tcl Cisco IOS Commands
The sections that follow describe the parameters, output, usage, and examples of Tcl Cisco IOS commands.
hostname Command
Required parameters: None
Optional parameters: None
Returns: A string
Usage: Returns a string with the current Cisco IOS device hostname
Example:
Router(tcl)#hostnameRouter
Note
The hostname can only be retrieved, but not changed using hostname command. Use the ios_config command to change the hostname.
ios_config Command
Required parameters
Get TcL Scripting for Cisco IOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.