Chapter 22 WAN Optimization, Web Cache, Explicit Proxy, and WCCP for FortiOS 5.0 : Diagnose commands : get test {wa_cs | wa_dbd | wad | wad_diskd | wccpd} <test_level> : Examples
  
Examples
Enter the following command to display WAN optimization tunnel protocol statistics. The http tunnel and tcp tunnel parts of the command output below shows that WAN optimization has been processing HTTP and TCP packets.
get test wad 11
wad tunnel protocol stats:
http tunnel
bytes_in=1751767 bytes_out=325468
ftp tunnel
bytes_in=0 bytes_out=0
cifs tunnel
bytes_in=0 bytes_out=0
mapi tunnel
bytes_in=0 bytes_out=0
tcp tunnel
bytes_in=3182253 bytes_out=200702
maintenance tunnel
bytes_in=11800 bytes_out=15052
Enter the following command to display the current WAN optimization peers. You can use this command to make sure all peers are configured correctly. The command output shows one peer with IP address 172.20.120.141, peer name Web_servers, with 10 active tunnels.
get test wad 26
peer name=Web_servers ip=172.20.120.141 vd=0 version=1 tunnels(active/connecting/failover)=10/0/0
sessions=0 n_retries=0 version_valid=true
Enter the following command to restart the WAN optimization web cache server.
get test wa_cs 99
Enter the following command to display all test options:
get test wad
 
WAD Test Usage
1: display total memory usage
3: display proxy status
4: display all stats and connections
5: toggle AV conserve mode(for debug purpose).
8: display all fix-sized advanced memory stats
10: toggle cifs read-ahead
11: display tunnel protocol stats
12: flush tunnel protocol stats
13: display http protocol stats
14: flush http protocol stats
15: display cifs protocol stats
16: flush cifs protocol stats
17: display ftp protocol stats
18: flush ftp protocol stats
19: display mapi protocol stats
20: flush mapi protocol stats
21: display tcp protocol stats
22: flush tcp protocol stats
23: display all protocols stats
24: flush all protocols stats
25: display all listeners
26: display all peers
27: display DNS stats
28: display security profile mapping for regular firewall policy
30: display Byte Cache DB state
31: flush Byte Cache DB stats
32: display Web Cache DB state
33: flush Web Cache DB stats
35: display tunnel compressor state
36: flush tunnel compressor stats
37: discard all wad debug info that is currently pending
38: display rules
39: display video cache rules (patterns)
40: display cache state
41: flush cache stats
42: display all fix-sized advanced memory stats in details
45: display memory cache state
46: flush memory cache stats
47: display SSL stats
48: flush SSL stats
49: display SSL mem stats
50: display Web Cache stats
51: flush Web Cache stats
52: flush idle Web cache objects
53: display firewall policies
54: display WAD tunnel stats.
55: display WAD fsae state.
56yxxx: set xxx concurrent Web Cache session for object storage y.
57yxxx: set xxxK(32K, 64K,...) unconfirmed write/read size per Web Cache object for object storage y.
58yxxxx: set xxxxK maximum ouput buffer size for object storage y.
59yxx: set lookup lowmark(only if more to define busy status) to be xx for object storage y.
60: display current web proxy users
61: flush current web proxy users
62: display current web proxy user summary
63: display web cache cache sessions
65: display cache exemption patterns
66: toggle dumping URL when daemon crashes.
67: list all used fqdns.
68: list all current ftpproxy sessions.
69: display ftpproxy stats.
70: clear ftpproxy stats.
600000..699999 cmem bucket stats (699999 for usage)
70yxxx: set xxxK maximum ouput buffer size for byte storage y.
71yxxx: set number of buffered add requests to be xxx for byte storage y.
72yxxxx: set number of buffered query requests to be xxxx for byte storage y.
73yxxxxx: set number of concurrent query requests to be xxxxx for byte storage y.
79xxxx: set xxxxMiB maximum AV memory.(0: set to default.
80: display av memory usage
81: toggle av memory protection
800..899: mem_diag commands (800 for help & usage)
800000..899999: mem_diag commands with 1 arg (800 for help & usage)
80000000..89999999: mem_diag commands with 2 args (800 for help & usage)
90: set to test disk failure
91: unset to test disk failure
92: trigger a disk failure event
98: gracefully stopping wad proxy
99: restart proxy