Displaying Lines Starting With A Specified String; Searching And Filtering Output At The -More-Prompt - IBM 4002-C2A Installation And User Manual

Table of Contents

Advertisement

NetIron # show who | exclude closed
Console connections:
Telnet connections (inbound):
1
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 switch.
NetIron # show who | begin SSH
SSH connections:
1
2
3
4
5
Syntax: <show-command> | begin <regular-expression>
Searching and filtering output at the —More—prompt
The —More— prompt displays 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 to cancel the display. In addition, you can
search and filter output from this prompt. For example:
NetIron # ?
--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 device displays output starting from the first line that contains
the search string, similar to the begin option for show commands. For example:
34
IBM Ethernet Switch c-series Installation and User Guide
established
you are connecting to this session
2 seconds in idle
established, client ip address 192.168.9.37
27 seconds in idle
established, client ip address 192.168.9.210
7 seconds in idle
closed
closed
closed
closed
append
Append one file to another
attrib
Change file attribute
boot
Boot system from bootp/tftp server/flash image
cd
Change current working directory
chdir
Change current working directory
clear
Clear table/statistics/keys
clock
Set clock
configure
Enter configuration mode
copy
Copy between flash, tftp, config/code
cp
Copy file commands
debug
Enable debugging functions (see also 'undebug')
delete
Delete file on flash
dir
List files
dm
test commands
dot1x
802.1X
erase
Erase image/configuration files from flash
exit
Exit Privileged mode
fastboot
Select fast-reload option
force-sync-standby Sync active flash (pri/sec/mon/startup config/lp images)to
format
Format PCMCIA card
hd
Hex dump
ipc
IPC commands
standby

Advertisement

Table of Contents
loading

Table of Contents