46

Maintenance Tools

Use the maintenance tool commands to check the conditions of other devices through the ZyWALL. The maintenance tools can help you to troubleshoot network problems.

Here are maintenance tool commands that you can use in privilege mode.

Table 204 Maintenance Tools Commands in Privilege Mode

COMMAND

DESCRIPTION

packet-trace [interface interface_name]

Sniffs traffic going through the specified interface with the specified

[[ip-protoipv6-proto] protocol_name

protocol, source address, destination address, and/or port number.

any}] [src-host {ip hostname

If you specify file, the ZyWALL dumps the traffic to /packet_trace/

any}] [dst-host {ip hostname any}]

[port {<1..65535> any}] [file]

packet_trace_interface. Use FTP to retrieve the files (see Section

[duration <1..3600>] [extension-filter

39.6 on page 304).

 

filter_extension]

If you do not assign the duration, the ZyWALL keeps dumping traffic until

 

you use Ctrl-C.

 

Use the extension filter to extend the use of this command.

 

protocol_name: You can use the name, instead of the number, for some IP

 

protocols, such as tcp, udp, icmp, and so on. The names consist of 1-16

 

alphanumeric characters or dashes (-). The first character cannot be a

 

number.

 

hostname: You can use up to 252 alphanumeric characters, dashes (-), or

 

periods (.). The first character cannot be a period.

 

filter_extension: You can use 1-256 alphanumeric characters, spaces,

 

or '()+,/:=?;!*#@$_%.- characters.

 

 

traceroute {ip hostname}

Displays the route taken by packets to the specified destination. Use

 

Ctrl+c to return to the prompt.

traceroute6 {ipv6 hostname}

Displays the route taken by packets to the specified destination. Use

 

Ctrl+c to return to the prompt.

[no] packet-capture activate

Performs a packet capture that captures network traffic going through the

 

set interface(s). Studying these packet captures may help you identify

 

network problems.

 

The no command stops the running packet capture on the ZyWALL.

 

Note: Use the packet-capture configure command to configure the

 

packet-capture settings before using this command.

packet-capture configure

Enters the sub-command mode.

duration <0..300>

Sets a time limit in seconds for the capture. The ZyWALL stops the capture

 

and generates the capture file when either this period of time has passed

 

or the file reaches the size specified using the files-sizecommand

 

below. 0 means there is no time limit.

 

341

ZyWALL (ZLD) CLI Reference Guide