3-30
T-Series Traffic Director Installation, Configuration and Administration Guide
Chapter 3 Basic T1000/Unison Load-Balancing Configuration
Capturing and Filtering Packets with the nstrace Command
The T1000 provides a utility that allows you to capture and filter packets associated with a
given interface or VLAN ID. Only the packets that are filtered are captured in the trace files.
To filter the trace for a given interface or VLAN ID, you must include the filter option in the
nstrace
command. The option takes a simple or compound expression. The expression must
specify the interface or VLAN ID for which the trace must be filtered.
Use the
nstrace
command as follows:
nstrace
[-
nf
positive_integer
] [-
time
secs
] [-
size
positive_integer
] [-
mode
mode
...]
[-
tcpdump
{ENABLED | DISABLED} [-
perNIC
{ENABLED | DISABLED}]]
[-
name
string
[-
id
string
]] [-
filter
expression
[-
link
{ENABLED | DISABLED}]]
command in Appendix A, “T1100 CLI Reference” for information on the
parameters.
To capture the trace for a given interface on the appliance, at the command prompt, type the
following command:
nstrace -filter
expression
The following example captures the trace at interface 1/1 by using a simple expression:
nstrace -filter "intf == 1/1"
The following example captures the trace at interface 1/1 and further filters the trace for
packets associated with TCP destination port 80:
nstrace -filter "intf == 1/1 && destport == 80"
To capture the trace for a given VLAN ID use the following command:
nstrace -filter
"vlan
operator vlanid"
The operator in the expression for filtering the trace on the basis of a VLAN ID can be equal
to (==), not equal to (!=), less than (<), greater than (>), less than or equal to (<=), or greater
than or equal to (>=).
The following example captures the trace for a VLAN with ID equal to 1:
nstrace -filter "vlan == 1"
Accessing the UNIX Shell
Use the
shell
command to exit the T1000 CLI and enter the UNIX (FreeBSD) shell. From
the shell, you can execute any UNIX network diagnostic commands. Press
Ctrl
+
D
or use
the
exit
command to return to the CLI prompt.
Содержание ByteMobile T1010
Страница 10: ...x T Series Traffic Director Installation Configuration and Administration Guide...
Страница 14: ...Contents xiv T Series Traffic Director Installation Configuration and Administration Guide...
Страница 150: ...B 10 T Series Traffic Director Installation Configuration and Administration Guide Appendix B Replacement Parts...
Страница 168: ...Glossary Glossary 12 T Series Traffic Director Installation Configuration and Administration Guide...
Страница 172: ...Index Index 4 T Series Traffic Director Installation Configuration and Administration Guide...