EasyManua.ls Logo

Nokia 7705 - 3.7.8 Pipe;Count; 3.7.9 Redirection

Nokia 7705
538 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic System Configuration Guide CLI Usage
Edition: 01 3HE 11010 AAAC TQZZA 41
3.7.8 Pipe/Count
The 7705 SAR supports a pipe/count command (...| count) that provides a count of
the number of lines that would have otherwise been displayed. The pipe/count
command is particularly useful when used in conjunction with the pipe/match
command in order to count the number of output lines that match a specified pattern.
For example:
*A:ALU-12# show service service-using vprn
===============================================================================
Services [vprn]
===============================================================================
ServiceId Type Adm Opr CustomerId Service Name
-------------------------------------------------------------------------------
1 VPRN Down Down 1
44 VPRN Up Up 1
100 VPRN Down Down 1
102 VPRN Up Up 1
235 VPRN Down Down 1
1000 VPRN Down Down 1000
-------------------------------------------------------------------------------
Matching Services : 6
-------------------------------------------------------------------------------
===============================================================================
*A:ALU-12# show service service-using vprn | match Down | count
Count: 4 lines
*A:ALU-12#
3.7.9 Redirection
The 7705 SAR supports redirection (“>”) which allows the operator to store the
output of a CLI command as a local or remote file. Redirection of output can be used
to automatically store results of commands in files (both local and remote).
‘ping <customer_ip> > cf3:/ping/result.txt’
‘ping <customer_ip> > ftp://ron@ftp.alcatel.com/ping/result.txt’
In some cases only part of the output might be applicable. The pipe/match and
redirection commands can be combined:
ping 10.0.0.1 | match expression “time.\d+” > cf3:/ping/time.txt
This records only the RTT portion (including the word “time”).

Table of Contents

Other manuals for Nokia 7705

Related product manuals