Chapter 2 Using the Command Line Interface

Similar documents
Chapter 2 Using the Command Line Interface

Chapter 3 Command List

Chapter 5 Privileged EXEC Commands

Appendix B Command Line Interface Commands

hp procurve command line interface reference

Chapter 32 VSRP Commands

Release Notes for Version of the HP ProCurve Routing Switch 9304M, 9308M,

Chapter 6 Configuring Basic Features

Appendix B Policies and Filters

Chapter 13 RIP Commands

Chapter 16 OSPF Version 3 Commands

Chapter 17 BGP4 Commands

Chapter 7 Interface Commands

Chapter 5 Software Overview

Index. B Boot software 5-2 Bridging architecture 7-6 Broadcast filter 8-55 limiting 8-22 Buffer port 7-9 Syslog 8-17, 8-20

Chapter 6 Software Overview

Chapter 13 Configuring BGP4

Chapter 4 Software-Based IP Access Control Lists (ACLs)

Read Me First for the ProCurve Routing Switch 9408sl

Chapter 8 Configuring Basic Software Features

Chapter 15 OSPF Commands

ProCurve Routing Switches

Chapter 6 Global CONFIG Commands

Chapter 9 RIP Commands

Chapter 6 Global CONFIG Commands

Release Notes. Software Version c for the HP ProCurve 9408sl Routing Switch June 2005

Chapter 20 IPv6 BGP Unicast Address Family Commands

HP Switch Software. Basic Operation Guide. Abstract

CCNA 1 Chapter 2 v5.0 Exam Answers 2013

Using the Command-Line Interface

Chapter 10 IP Access Lists: Standard

Chapter 1 Getting Started

CCNA 1 Chapter 2 v5.0 Exam Answers %

Brocade Command Line Interface

Configuring VRF-lite CHAPTER

Configuring Interface Characteristics

Lab Configuring and Verifying Standard IPv4 ACLs Topology

HP Switch Software. Basic Operation Guide

Lab Configuring and Verifying Standard IPv4 ACLs (Instructor Version Optional Lab)

Chapter 24 PIM Commands

Chapter 8 Configuring Basic Features

Laboration 1 Examine the Topology and Basic Troubleshooting Commands

Using the Command-Line Interface

Command-Line Interfaces

CG-MSW2402TXR CG-MSW1601TXR コマンドリファレンス

Lab Configuring and Verifying Standard ACLs Topology

HP Certified Professional ProCurve Routing Switch Essentials v5.21 Exam (HP0-790) Exam Preparation Guide

Skills Assessment Student Training

Lab Configuring and Verifying Extended ACLs Topology

Cisco Press CCIE Practical Studies CCIE Practice Lab: Enchilada Solutions

Chapter 17 Configuring IPX (9300 Series Only)

Lab Configuring 802.1Q Trunk-Based Inter-VLAN Routing (Instructor Version Optional Lab)

Laboration 2 Troubleshooting Switching and First-Hop Redundancy

Catalyst 2960-X Switch Routing Configuration Guide, Cisco IOS Release 15.0(2)EX

Chapter 6 Using a Redundant Management Module

NOTES: Software Update Notice: Mini-GBIC ports: Flash Images: SNMP: Devices Without Redundant Management:

Skills Assessment (OSPF) Student Training Exam

Troubleshooting. Testing Your Configuration CHAPTER

Book Heading. 2 Configurating Static Routing. 7 Router Security VLAN Network Router Security Network Infrastructure Design

Chapter 14 Configuring SRP

Using Cisco IOS Software

Skills Assessment (OSPF) Student Training Exam

CHAPTER 2 ACTIVITY

Configuring InterVLAN Routing

Layer 2 Ethernet Switch Allied Telesyn AT-8000S

itexamdump 최고이자최신인 IT 인증시험덤프 일년무료업데이트서비스제공

Command-Line Interfaces

Index. Numerics. Index 1

Using the Command Line Interface (CLI)

Routing Configuration Guide, Cisco IOS XE Release 3SE (3850/3650)

Lab Troubleshooting Basic PPP with Authentication Topology

Lab Configuring Per-Interface Inter-VLAN Routing (Solution)

Cisco Cookbook. Kevin Dooley and IanJ. Brown. O'REILLY 4 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

Skills Assessment Student Training Exam

Getting Started. Contents

Lab - Troubleshooting Standard IPv4 ACL Configuration and Placement Topology

Advanced IPv6 Training Course. Lab Manual. v1.3 Page 1

Chapter 8 Configuring OSPF

NOTES: Software Update Notice: Mini-GBIC ports: Flash Images: SNMP: Devices Without Redundant Management:

Information about Network Security with ACLs

Lab Configuring Per-Interface Inter-VLAN Routing (Instructor Version)

QUESTION: 1 When limit-learning is configured on a port and the limit is reached the following traffic still flows to the port.

Configuring VLANs. Understanding VLANs CHAPTER

Cisco Press CCIE Practical Studies CCIE Practice Lab: Darth Reid Solutions

Overview of the Cisco NCS Command-Line Interface

Lab 7 Configuring Basic Router Settings with IOS CLI

Using the Command-Line Interface (CLI)

Chapter 8 Configuring Basic Features

CCNA Semester 2 labs. Labs for chapters 2 10

Lab Using the CLI to Gather Network Device Information Topology

STCS3526 Series Routing Switches Configuration Guide Manual

Getting Started. Contents

Lab Configuring HSRP and GLBP Topology

Cisco WAAS Software Command Summary

Basic Router Configuration

security guide hp procurve routing switches 9304m, 9308m, and 9315m (software release or greater)

Appendix C Software Specifications

Using Cisco IOS XE Software

Configuring VLANs. Understanding VLANs CHAPTER

Lab - Troubleshooting ACL Configuration and Placement Topology

Transcription:

Chapter 2 Using the Command Line Interface The CLI is a text-based interface for configuring and monitoring ProCurve Routing Switches. You can access the CLI through either a direct serial connection to the device or through a Telnet session. The commands in the CLI are organized into the following levels: User EXEC Lets you display information and perform basic tasks such as pings and trace routes. Privileged EXEC Lets you use the same commands as those at the User EXEC level plus configuration commands that do not require saving the changes to the system-config file. CONFIG Lets you make configuration changes to the device. To save the changes across reboots, you need to save them to the system-config file. The CONFIG level contains sub-levels for individual ports, for VLANs, for routing protocols, and other configuration areas. NOTE: By default, any user who can open a serial or Telnet connection to the HP device can access all these CLI levels. To secure access, you can configure Enable passwords or local user accounts, or you can configure the device to use Access Control Lists (ACLs), a RADIUS server, or a TACACS/TACACS+ server for authentication. See the Security Guide for ProCurve 9300/9400 Series Routing Switches. To display a list of available commands or command options, enter? or press Tab. If you have not entered part of a command at the command prompt, all the commands supported at the current CLI level are listed. If you enter part of a command, then enter? or press Tab, the CLI lists the options you can enter at the point in the command string. The CLI supports command completion, so you do not need to enter the entire name of a command or option. As long as you enter enough characters of the command or option name to avoid ambiguity with other commands or options, the CLI understands what you are typing. The CLI supports the following line editing commands. To enter a line-editing command, use the CTRL-key combination for the command by pressing and holding the CTRL key, then pressing the letter associated with the command. Table 2.1: CLI Line-Editing Commands Ctrl-Key Combination Ctrl-A Ctrl-B Description Moves to the first character on the command line. Moves the cursor back one character. June 2005 2-1

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches Table 2.1: CLI Line-Editing Commands (Continued) Ctrl-Key Combination Ctrl-C Ctrl-D Ctrl-E Ctrl-F Ctrl-K Ctrl-L; Ctrl-R Ctrl-N Ctrl-P Ctrl-U; Ctrl-X Ctrl-W Ctrl-Z Description Escapes and terminates command prompts and ongoing tasks (such as lengthy displays), and displays a fresh command prompt. Deletes the character at the cursor. Moves to the end of the current command line. Moves the cursor forward one character. Deletes all characters from the cursor to the end of the command line. Repeats the current command line on a new line. Enters the next command line in the history buffer. Enters the previous command line in the history buffer. Deletes all characters from the cursor to the beginning of the command line. Deletes the last word you typed. Moves from any CONFIG level of the CLI to the Privileged EXEC level; at the Privileged EXEC level, moves to the User EXEC level. EXEC Commands There are two different levels of EXEC commands, the User Level and the Privileged Level. The User level commands are at the top of the CLI hierarchy. These are the first commands that you have access to when connected to the device through the CLI. At this level, you can view basic system information and verify connectivity but cannot make any changes to the device configuration. To make changes to the configuration, you must move to other levels of the CLI hierarchy. This is accomplished by the User EXEC level command enable at initial log-on. This command takes you to the Privileged EXEC level, from which you can reach the configuration command levels. Privileged Level The Privileged EXEC level commands primarily enable you to transfer and store software images and configuration files between the network and the system, and review the configuration. You reach this level by entering enable [<password>] or enable <username> <password> at the User EXEC level. CONFIG Commands CONFIG commands modify the configuration of a Procurve Routing Switch. This reference describes the following CONFIG CLI levels. Global Level The global CONFIG level allows you to globally apply or modify parameters for ports on the device. You reach this level by entering configure terminal at the privileged EXEC level. 2-2 June 2005

Using the Command Line Interface Redundancy Level This redundancy level allows you to configure redundancy parameters for redundant management modules. You reach this level by entering the redundancy command at the global CONFIG level. Interface Level The interface level allows you to assign or modify specific port parameters on a port-by-port basis. You reach this level by entering interface ethernet <portnum>, interface loopback <num>, or interface ve <num> at the global CONFIG level. Trunk Level The trunk level allows you to change parameters for statically-configured trunk groups. You reach this level by entering a trunk command with the appropriate port parameters. IPV6 Access List Level The IPv6 access list level allows you to configure standard and extended ACLs for IPv6. You reach this level by entering the ipv6 access-list command at the global CONFIG level. Router RIP Level The RIP level allows you to configure parameters for the RIP routing protocol. You reach this level by entering the router rip command at the global CONFIG level. IPv6 RIP Level(HP devices that support IPv6 only) The IPv6 RIP level allows you to configure parameters for the IPv6 RIP routing protocol. You reach this level by entering the ipv6 router rip command at the RIP level. Router OSPF Level The OSPF level allows you to configure parameters for the OSPF routing protocol. You reach this level by entering the router ospf command at the global CONFIG level. OSPF Version 3 Level (HP devices that support IPv6 only) The OSPF version 3 level allows you to configure parameters for the OSPF version 3 routing protocol. You reach this level by entering the ipv6 router ospf command at the OSPF level. BGP Level The BGP level allows you to configure Routing Switches for Border Gateway Protocol version 4 (BGP4). You reach this level by entering the router bgp command at the global CONFIG level. Global BGP and BGP4 Unicast Address Family Level The global BGP and BGP4 unicast address family levels are present only on HP devices that support IPv6. The global BGP level allows you to configure the BGP routing protocol. The BGP4 unicast address family level allows you to configure a BGP4 unicast route. For backward compatibility, you can currently access BGP4 unicast address family commands at both global BGP configuration and BGP4 unicast address family configuration levels. Therefore, the global BGP and BGP4 unicast address family commands are documented together. You reach the global BGP level by entering the router bgp command at the global CONFIG level. You reach the BGP4 unicast address family level by entering the address-family ipv4 unicast command at the global BGP level. June 2005 2-3

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches BGP4 Multicast Address Family Level (HP devices that support IPv6 only) The BGP4 multicast address family level allows you to configure BGP4 multicast routes. You reach this level by entering the address-family ipv4 multicast command at the global BGP, BGP4 unicast address family, or IPv6 BGP unicast address family levels. IPv6 BGP Unicast Address Family Level (HP devices that support IPv6 only) The IPv6 BGP unicast address family level allows you to configure IPv6 BGP unicast routes. You reach this level by entering the address-family ipv6 unicast command at the global BGP, BGP4 unicast address family, or BGP4 multicast address family levels. IP Tunnel Level The IP tunnel level allows you to define parameters for IP-in-IP tunnels to pass data through non-dvmrp and non- PIM IP multicast routers. You reach this level by entering the ip tunnel command at the interface CONFIG level. Router MSDP Level The MSDP level allows you to configure details for the Multicast Source Discovery Protocol (MSDP). You reach this level by entering the router msdp command at the global CONFIG level. Router DVMRP Level The DVMRP level allows you to configure details for the DVMRP multicast protocol. You reach this level by entering the router dvmrp command at the global CONFIG level. Router PIM Level The PIM level allows you to configure parameters for the Protocol Independent Multicast (PIM) routing protocol. You reach this level by entering the router pim command at the global CONFIG level. IPv6 Router PIM Level (HP devices that support IPv6 only) The IPv6 Router PIM level allows you to configure parameters for the Protocol Independent Multicast (PIM) routing protocol in IPv6. You reach this level by entering the ipv6 router pim command at the global CONFIG level. Broadcast Filter Level The broadcast filter level allows you to assign broadcast filters to specific ports. You reach this level by entering broadcast filter... at the global CONFIG level. Multicast Filter Level The multicast filter level allows you to assign multicast filters to specific ports. You reach this level by entering multicast filter... at the global CONFIG level. Route Map Level The Route Map level allows you to configure parameters for a BGP4 route map. You reach this level by entering the route-map <name> command at the global CONFIG level. Router VRRP Level The VRRP level allows you to configure parameters for the Virtual Router Redundancy Protocol (VRRP). You reach this level by entering the router vrrp command at the global CONFIG level, then entering the ip vrrp vrid <num> command at the interface configuration level. 2-4 June 2005

Using the Command Line Interface Router VRRPE Level The VRRPE level allows you to configure parameters for VRRP Extended. You reach this level by entering the router vrrp-extended command at the global CONFIG level, then entering the ip vrrp-extended vrid <num> command at the interface configuration level. VLAN Level Policy-based VLANs allow you to assign VLANs on a protocol (IP, IPX, Decnet, AppleTalk, NetBIOS, Others), subnet (IP sub-net and IPX network), AppleTalk cable, port, or 802.1q tagged basis. You reach this level by entering the vlan <vlan-id> by port command at the Global CONFIG Level. Metro Ring Level Metro rings provide Layer 2 connectivity and fast failover in ring topologies. You reach this level by entering the metro-ring <ring-id> command at the Global CONFIG Level. VSRP Level The VSRP level allows you to configure parameters for the Virtual Switch Redundancy Protocol (VSRP). You reach this level by entering the vsrp vrid <num> command at the VLAN configuration level, then entering the vsrp vrid <num> command at the VLAN configuration level. Topology Group Level A topology group enables you to control the Layer 2 protocol configuration and Layer 2 state of a set of ports in multiple VLANs based on the configuration and states of those ports in a single master VLAN. One instance of the Layer 2 protocol controls all the VLANs. You reach this level by entering the topology-group <group-id> command at the Global CONFIG Level. STP Group Level STP groups enable you to manage multiple port-based VLANs using the same spanning tree. You reach this level by entering the stp-group <num> command at the Global CONFIG Level. GVRP Level GARP VLAN Registration Protocol (GVRP) is a Generic Attribute Registration Protocol (GARP) application that provides VLAN registration service by means of dynamic configuration (registration) and distribution of VLAN membership information. You reach the GVRP level by entering the gvrp-enable command at the Global CONFIG Level. Real Server Level The Real Server level allows you to configure router-based health check parameters for a Routing Switch to assist with Globally-distributed Server Load Balancing (SLB). See the Route Health Injection chapter of the Advanced Configuration and Management Guide for ProCurve 9300/9400 Series Routing Switches. You reach this level by entering the server real... command at the global CONFIG level. Application Port Level The Application Port level allows you to configure health check parameters for a TCP HTTP port. The commands at this level apply only when you are configuring a Routing Switch to assist third-party SLBs or Web servers with globally-distributed SLB. See the Route Health Injection chapter of the Advanced Configuration and Management Guide for ProCurve 9300/9400 Series Routing Switches. You reach this level by entering the server port http <tcp/udp-portnum> command at the global CONFIG level. June 2005 2-5

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches NOTE: If you enter server port?, numerous well-known port names are listed. The current software release supports only HTTP ports. Accessing the CLI The CLI can be accessed through both serial and Telnet connections. For initial log on, you must use a serial connection. Once an IP address is assigned, you can access the CLI through Telnet. NOTE: When accessing the CLI through Telnet, you are prompted for a password. By default, the password required is the password you enter for general access at initial setup. You also have the option of assigning a separate password for Telnet access with the enable telnet password <password> command, found at the Global Level. NOTE: At initial log on, all you need to do is type enable at the prompt, then press Return. You only need to enter a password after a permanent password is entered at the Global CONFIG Level of the CLI. Once connectivity to the device is established, you will see the prompt: ProCurveRS> At this prompt ( > ), you are at the user EXEC level of the CLI command structure. To reach the Global CONFIG Level, the uppermost level of the CONFIG commands, enter the following commands: ProCurveRS> enable User Level-EXEC commands ProCurveRS# configure terminalprivileged Level-EXEC commands ProCurveRS(config)# Global Level-CONFIG commands You can then reach all other levels of the CONFIG command structure from this point. 2-6 June 2005

Using the Command Line Interface NOTE: The CLI prompt will change at each level of the CONFIG command structure, to easily identify the current level: ProCurveRS> User Level EXEC Command ProCurveRS# Privileged Level EXEC Command ProCurveRS(config)#Global Level CONFIG Command ProCurveRS(config-if-5/1)#Interface Level CONFIG Command ProCurveRS(config-lbif-1)#Loopback Interface CONFIG Command ProCurveRS(config-ve-1)#Virtual Interface CONFIG Command ProCurveRS(config-trunk-4/1-4/8)#Trunk group CONFIG Command ProCurveRS(config-if-tunnel)#IP Tunnel Level CONFIG Command ProCurveRS(config-bcast-filter-id-1)#Broadcast Filter Level CONFIG Command ProCurveRS(config-mcast-filter-id-1)#Multicast Filter Level CONFIG Command ProCurveRS(config-bgp-router)#BGP Level CONFIG Command ProCurveRS(config-dvmrp-router)#DVMRP Level CONFIG Command ProCurveRS(config-ospf-router)#OSPF Level CONFIG Command ProCurveRS(config-pim-router)#PIM Level CONFIG Command ProCurveRS(config-msdp-router)#MSDP Level CONFIG Command ProCurveRS(config-redundancy)#Redundant Management Module CONFIG Command ProCurveRS(config-rip-router)#RIP Level CONFIG Command ProCurveRS(config-rs-realservername)#Real Server Level CONFIG Command ProCurveRS(config-port-80)#Application Port CONFIG Command ProCurveRS(config-bgp-routemap Map_Name)#Route Map Level CONFIG Command ProCurveRS(config-vlan-1)#VLAN Port-based Level CONFIG Command ProCurveRS(config-vlan-atalk-proto)#VLAN Protocol Level CONFIG Command ProCurveRS(config-stp-group-1)#STP Group CONFIG Command ProCurveRS(config-gvrp)#GVRP CONFIG Command ProCurveRS(config-cpu-protection)#Control Plane Security CONFIG Command NOTE: The CLI prompt at the interface level includes the port speed. The speed is one of the following: e100 The interface is a 10/100 port. e1000 The interface is a Gigabit port. For simplicity, the port speeds sometimes are not shown in example Interface level prompts in this manual. Navigating Among Command Levels To reach other CLI command levels, you need to enter certain commands. At each level there is a launch command that allows you to move either up or down to the next level. June 2005 2-7

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches CLI Command Structure Many CLI commands may require textual or numeral input as part of the command. These fields are either required or optional depending on how the information is bracketed. For clarity, a few CLI command examples are explained below. EXAMPLE: Syntax: deny redistribute <value> all bgp rip static address <ip-addr> <ip-mask> [match-metric <value> set-metric <value>] When an item is bracketed with < > symbols, the information requested is a variable and required. When an item is not enclosed by < > or [ ] symbols, the item is a required keyword. When an item is bracketed with [ ] symbols, the information requested is optional. When two or more options are separated by a vertical bar,, you must enter one of the options as part of the command. EXAMPLE: Syntax: priority normal high means enter either priority normal or priority high For example, the command syntax above requires that either normal or high be entered as part of the command. To get a quick display of available options at a CLI level or for the next option in a command string, enter a question mark (?) at the prompt or press TAB. EXAMPLE: To view all available commands at the user EXEC level, enter the following or press TAB at the User EXEC CLI level: ProCurveRS>? <return> enable exit fastboot ping show stop-trace-route traceroute You also can use the question mark (?) with an individual command, to see all available options or to check context. EXAMPLE: To view possible copy command options, enter the following: ProCurveRS# copy? flash running-config startup-config tftp ProCurveRS# copy flash? tftp Searching and Filtering Output You can filter CLI output from show commands and at the --More-- prompt. You can search for individual characters, strings, or construct complex regular expressions to filter the output. Searching and Filtering Output from show commands You can filter output from show commands to display lines containing a specified string, lines that do not contain a specified string, or output starting with a line containing a specified string. The search string is a regular expression consisting of a single character or string of characters. You can use special characters to construct 2-8 June 2005

Using the Command Line Interface complex regular expressions. See Using Special Characters in Regular Expressions on page 2-11 for information on special characters used with regular expressions. Displaying Lines Containing a Specified String The following command filters the output of the show interface command for port 3/11 so it displays only lines containing the word Internet. This command can be used to display the IP address of the interface. ProCurveRS# show interface e 3/11 include Internet Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet Syntax: <show-command> include <regular-expression> NOTE: The vertical bar ( ) is part of the command. Note that the regular expression specified as the search string is case sensitive. In the example above, a search string of Internet would match the line containing the IP address, but a search string of internet would not. Displaying Lines That Do Not Contain a Specified String The following command filters the output of the show who command so it displays only lines that do not contain the word closed. This command can be used to display open connections to the HP device. ProCurveRS# show who exclude closed Console connections: established you are connecting to this session 2 seconds in idle Telnet connections (inbound): 1 established, client ip address 192.168.9.37 27 seconds in idle Telnet connection (outbound): SSH connections: Syntax: <show-command> exclude <regular-expression> Displaying Lines Starting with a Specified String The following command filters the output of the show who command so it displays output starting with the first line that contains the word SSH. This command can be used to display information about SSH connections to the HP device. ProCurveRS# show who begin SSH SSH connections: 1 established, client ip address 192.168.9.210 7 seconds in idle 2 closed 3 closed 4 closed 5 closed Syntax: <show-command> begin <regular-expression> June 2005 2-9

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches Searching and Filtering Output at the --More-- Prompt The --More-- prompt is displayed when output extends beyond a single page. From this prompt, you can press the Space bar to display the next page, the Return or Enter key to display the next line, or Ctrl-C or Q to cancel the display. You can also search and filter output from this prompt. For example: ProCurveRS#? appletalk-ping Ping AppleTalk node boot Boot system from bootp/tftp server/flash image cd Change flash card working slot or current directory chdir Change flash card working slot or current directory clear Clear table/statistics/keys configure Enter configuration mode copy Copy between flash, flash card, tftp, config/code debug Enable debugging functions (see also 'undebug') dir List flash card files disable Disable a module before removing it enable Enable a disabled module erase Erase image/configuration from flash exit Exit Privileged mode fastboot Select fast-reload option format Format flash card gignpa Gigabit processor commands kill Kill active CLI session --More--, next page: Space, next line: Return key, quit: Control-c At the --More-- prompt, you can press the forward slash key ( / ) and then enter a search string. The HP device displays output starting from the first line that contains the search string, similar to the begin option for show commands. For example: --More--, next page: Space, next line: Return key, quit: Control-c /telnet The results of the search are displayed: searching... telnet temperature terminal traceroute undebug undelete whois write Telnet by name or IP address temperature sensor commands display syslog TraceRoute to IP node Disable debugging functions (see also 'debug') Undelete flash card files WHOIS lookup Write running configuration to flash or terminal 2-10 June 2005

Using the Command Line Interface To display lines containing only a specified search string (similar to the include option for show commands) press the plus sign key ( + ) at the --More-- prompt and then enter the search string. --More--, next page: Space, next line: Return key, quit: Control-c +telnet The filtered results are displayed: filtering... telnet Telnet by name or IP address To display lines that do not contain a specified search string (similar to the exclude option for show commands) press the minus sign key ( - ) at the --More-- prompt and then enter the search string. --More--, next page: Space, next line: Return key, quit: Control-c -telnet The filtered results are displayed: filtering... sync-standby temperature terminal traceroute undebug undelete whois write Synchronize active and standby module temperature sensor commands display syslog TraceRoute to IP node Disable debugging functions (see also 'debug') Undelete flash card files WHOIS lookup Write running configuration to flash or terminal As with the commands for filtering output from show commands, the search string is a regular expression consisting of a single character or string of characters. You can use special characters to construct complex regular expressions. See the next section for information on special characters used with regular expressions. Using Special Characters in Regular Expressions You use a regular expression to specify a single character or multiple characters as a search string. In addition, you can include special characters that influence the way the software matches the output against the search string. These special characters are listed in the following table. Table 2.2: Special Characters for Regular Expressions Character. * Operation The period matches on any single character, including a blank space. For example, the following regular expression matches aaz, abz, acz, and so on, but not just az : a.z The asterisk matches on zero or more sequential instances of a pattern. For example, the following regular expression matches output that contains the string abc, followed by zero or more Xs: abcx* June 2005 2-11

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches Table 2.2: Special Characters for Regular Expressions (Continued) Character Operation + The plus sign matches on one or more sequential instances of a pattern. For example, the following regular expression matches output that contains "de", followed by a sequence of g s, such as deg, degg, deggg, and so on: deg+? The question mark matches on zero occurrences or one occurrence of a pattern. For example, the following regular expression matches output that contains "dg" or "deg": de?g Note: Normally when you type a question mark, the CLI lists the commands or options at that CLI level that begin with the character or string you entered. However, if you enter Ctrl- V and then type a question mark, the question mark is inserted into the command line, allowing you to use it as part of a regular expression. ^ A caret (when not used within brackets) matches on the beginning of an input string. For example, the following regular expression matches output that begins with deg : ^deg $ A dollar sign matches on the end of an input string. For example, the following regular expression matches output that ends with deg : deg$ _ An underscore matches on one or more of the following:, (comma) { (left curly brace) } (right curly brace) ( (left parenthesis) ) (right parenthesis) The beginning of the input string The end of the input string A blank space For example, the following regular expression matches on 100 but not on 1002, 2100, and so on. _100_ 2-12 June 2005

Using the Command Line Interface Table 2.2: Special Characters for Regular Expressions (Continued) Character Operation [ ] Square brackets enclose a range of single-character patterns. For example, the following regular expression matches output that contains 1, 2, 3, 4, or 5 : [1-5] You can use the following expression symbols within the brackets. These symbols are allowed only inside the brackets. ^ The caret matches on any characters except the ones in the brackets. For example, the following regular expression matches output that does not contain 1, 2, 3, 4, or 5 : [^1-5] - The hyphen separates the beginning and ending of a range of characters. A match occurs if any of the characters within the range is present. See the example above. A vertical bar separates two alternative values or sets of values. The output can match one or the other value. For example, the following regular expression matches output that contains either abc or defg : abc defg ( ) Parentheses allow you to create complex expressions. For example, the following complex expression matches on abc, abcabc, or defg, but not on abcdefgdefg : ((abc)+) ((defg)?) If you want to filter for a special character instead of using the special character as described in the table above, enter \ (backslash) in front of the character. For example, to filter on output containing an asterisk, enter the asterisk portion of the regular expression as \*. ProCurveRS# show ip route bgp include \* Syntax Shortcuts A command or parameter can be abbreviated as long as enough text is entered to distinguish it from other commands at that level. For example, given the possible commands copy tftp and config tftp, possible shortcuts are cop tftp and con tftp respectively. In this case, co does not properly distinguish the two commands. Saving Configuration Changes You can make configuration changes while the device is running. The type of configuration change determines whether or not it becomes effective immediately or requires a save to flash (write memory) and reset of the system (reload), before it becomes active. This approach in adopting configuration changes: Allows you to make configuration changes to the operating or running configuration of the device to address a short-term requirement or validate a configuration without overwriting the permanent configuration file, the startup configuration, that is saved in the system flash, and; Ensures that dependent or related configuration changes are all cut in at the same time. June 2005 2-13

Command Line Interface Reference for ProCurve 9300/9400 Series Routing Switches In all cases, if you want to make the changes permanent, you need to save the changes to flash using the write memory command. When you save the configuration changes to flash, this will become the configuration that is initiated and run at system boot. NOTE: Most configuration changes are dynamic and thus do not require a software reload. If a command requires a software reload to take effect, the documentation states this. 2-14 June 2005