
MDS 05-6632A01, Rev. F
MDS Orbit MCR/ECR Technical Manual
399
status counters tx_packets 1731
status counters tx_window_errors 0
Output can also be ended when a line matches a regular expression. This is done with the until target. For
example:
> show interface-state | find
tx
| until compressed
status counters tx_aborted_errors 0
status counters tx_bytes 250246
status counters tx_carrier_errors 0
status counters tx_compressed 0
6.11 Regular Expressions
The regular expressions is a subset of the regular expressions found in egrep and in the AWK
programming language. Some common operators are:
.
Matches any character.
^
Matches the beginning of a string.
$
Matches the end of a string.
[abc...]
Character class, which matches any of the characters abc...
Character ranges are specified by a pair of characters separated by a -
[^abc...]
negated character class, which matches any character except abc....
r1 | r2
Alternation. It matches either r1 or r2.
r1r2
Concatenation. It matches r1 and then r2.
r+
Matches one or more rs.
r*
Matches zero or more rs.
r?
Matches zero or one rs.
(r)
Grouping. It matches r.
For example, to only display uid and gid you can do the following:
> show configuration | match "(
uid
) | (
gid
)"
uid 1000;
gid 100;
uid 1000;
gid 100;
uid 1000;
gid 100;
uid 1000;
gid 100;
6.12 Display Line Numbers
The linnum target causes a line number to be displayed at the beginning of each line in the display.
> show configuration | match "(
uid
) | (
gid
)" | linnum
1: uid 1019;
2: gid 1013;
3: uid 1019;
4: gid 1013;
5: uid 1019;
6: gid 1013;
7: uid 1019;
Summary of Contents for MDS ORBIT MCR
Page 15: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 15...
Page 35: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 35...
Page 145: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 145...
Page 188: ...188 MDS Orbit MCR ECR Technical Manual MDS 05 6632A01 Rev F...
Page 302: ...302 MDS Orbit MCR ECR Technical Manual MDS 05 6632A01 Rev F Figure 3 224 SNMP Main Page...
Page 380: ...380 MDS Orbit MCR ECR Technical Manual MDS 05 6632A01 Rev F...
Page 389: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 389...
Page 393: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 393...
Page 407: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 407...
Page 449: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 449...
Page 451: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 451...
Page 452: ...452 MDS Orbit MCR ECR Technical Manual MDS 05 6632A01 Rev F...
Page 453: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 453...
Page 459: ...MDS 05 6632A01 Rev F MDS Orbit MCR ECR Technical Manual 459 NOTES...
Page 460: ...460 MDS Orbit MCR ECR Technical Manual MDS 05 6632A01 Rev F...
Page 461: ......