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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.