Display | By-Linenum - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

Usage guidelines
Use the | { begin | exclude | include } regular-expression option with a display command to filter
the command output. For more information about regular expressions, see Fundamentals
Configuration Guide.
Examples
# Display the lines that contain vlan in the running configuration.
<Sysname> display current-configuration | include vlan
vlan 1
vlan 999
port access vlan 999

display | by-linenum

Use display | by-linenum to number each output line for a display command.
Syntax
display command | by-linenum
Views
Any view
Predefined user roles
network-admin
Parameters
command: Specifies the keywords and arguments of a display command. To display available
keywords and arguments, enter display ?.
Usage guidelines
By numbering each output line from a display command, you can easily identify the lines of interest.
Each line number is displayed as a 5-character string and might be followed by a colon (:) or hyphen
(-). If you specify both | by-linenum and | begin regular-expression for a display command, a
hyphen is displayed for all lines that do not match the regular expression.
Examples
# Display CPU usage information, with each output line identified by a number.
<Sysname> display cpu-usage | by-linenum
1:
Slot 1 CPU 0 CPU usage:
2:
3:
4:
# Display the first line that begins with user-group in the running configuration and all of the following
lines.
<Sysname> display current-configuration | by-linenum begin user-group
114:
user-group system
115-
#
116-
return
14% in last 5 seconds
14% in last 1 minute
13% in last 5 minutes
3

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents