Chapter 5 CLI Tips, Techniques, and Shortcuts

Wildcards, Templates, and Aliases

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

hostname test end

In the next example, a template with one parameter is applied and the show configuration command displays the result:

RP/0/RSP0/CPU0:router# configure

RP/0/RSP0/CPU0:router(config)# apply-template test2 (router)

RP/0/RSP0/CPU0:router(config)# show configuration

Building configuration...

hostname router end

Aliases

Cisco IOS XR software lets you define command line aliases for any physical or logical entity in a router. After you define the alias, it can be used in the CLI to reference the real entity.

To create a command alias, type the alias command in global configuration or administration configuration mode:

alias alias-name [(parameter1 parameter2...)] command-syntax [$parameter1] [command-syntax [$parameter2]}

Table 5-5defines the alias command syntax.

Table 5-5 alias Command Syntax

Syntax

Specifies that the Alias Is Created for

 

 

alias-name

Name of the command alias. An alias name can be a single word or

 

multiple words joined by a dash (–).

 

 

command-syntax

Original command syntax. Valid abbreviations of the original

 

command syntax can be entered for the command-syntaxargument.

 

 

(parameterx)

Argument or keyword that belongs to the command you specified for

 

the command-syntaxargument. When the parameter is entered in

 

parenthesis after the alias name, the alias requires a parameter name.

 

To associate the parameter with a command within the alias, type the

 

$ character preceding the parameter name.

 

 

Multiple commands can be supported under a single command alias, and multiple variables can be supported for each command. If multiple commands are specified under a single alias, then each command is executed in the order in which it is listed in the alias command.

In the following example, an alias named my-cookieis created for the Management Ethernet interface, and then the new alias is specified to enter interface configuration mode:

RP/0/RSP0/CPU0:router(config)# alias my-cookie mgmtEth 0/0/CPU0/0

RP/0/RSP0/CPU0:router(config)# interface my-cookie

RP/0/RSP0/CPU0:router(config)# interface mgmtEth 0/0/CPU0/0

RP/0/RSP0/CPU0:router(config-if)#

After you enter a command with an alias, the router displays the command you entered with the alias value so that you can verify that alias value.

 

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

5-16

OL-17502-01

Page 118
Image 118
Cisco Systems A9K24X10GETR, ASR 9000, A9KMOD80TR manual Aliases, 5defines the alias command syntax

A9KMOD80TR, A9K24X10GETR, ASR 9000 specifications

Cisco Systems has long been a leader in networking technology, providing cutting-edge solutions for service providers and enterprise organizations alike. Among their standout products is the Cisco ASR 9000 Series Aggregation Services Routers, notably the A9K24X10GETR and the A9KMOD80TR models. These routers are engineered to deliver unmatched performance, scalability, and versatility for networks that require high bandwidth and low latency.

The Cisco ASR 9000 Series is built for the needs of today's complex service provider and enterprise networks. A significant feature of the A9K24X10GETR is its 24-port 10-Gigabit Ethernet module. This functionality allows for high-density connectivity, making it ideal for aggregating numerous connections to different parts of a network while maintaining optimal performance. Whether used for Internet service providers delivering high-speed connectivity or for enterprises looking to connect multiple branches, the A9K24X10GETR provides robust and reliable data transmission.

Further enhancing the capabilities of the ASR 9000 is the A9KMOD80TR module, which supports an extensive range of services. This module is designed to run a variety of technologies, including Layer 2 and Layer 3 services, MPLS (Multiprotocol Label Switching), and IPv6. Its ability to integrate seamlessly into existing infrastructures while providing the advanced features customers demand makes it an invaluable asset for network engineering teams.

Another cutting-edge technology present in the ASR 9000 Series is its support for eBGP (External Border Gateway Protocol), which plays a critical role in managing traffic across multiple networks. The routers are equipped with advanced telemetry features, empowering operators with real-time insights into network performance and health. Additionally, they come with integrated security features that protect against DDoS threats and other vulnerabilities.

In summary, Cisco's ASR 9000 Series, particularly the A9K24X10GETR and A9KMOD80TR, combines high-density connections, extensive service support, and advanced security and telemetry capabilities. These routers are perfect for demanding environments where reliable performance and adaptability are crucial. With their focus on innovation and performance, Cisco continues to shape the future of networking technology.