O'Reilly logo

TcL Scripting for Cisco IOS by - CCIE No. 7016 Arvind Durai, - CCIE No. 7050 Raymond Blair, John Lautmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required