Utilities
Utilities
March 2003
Utilities 1
Objectives
When you have completed this module
you will be able to do the following:
March 2003
Utilities 2
NetCache Utilities
NetCache Utilities
This page provides tools and options useful to administering and testing the NetCache.
March 2003
Utilities 3
March 2003
Utilities 4
Numerical Display
Statistics may be
displayed numerically
or graphically
Real-Time Charts
March 2003
Utilities 5
Statistics Graphs
March 2003
Utilities 6
March 2003
Utilities 7
Flush
Flush
The flush command empties the cache of all objects or all cached DNS entries, if DNS
caching is enabled (Utilities tab > Cache Objects > Flush).
March 2003
Utilities 8
diag command
Syntax 1: diag dump [-i ifile]
The file containing the \n separated commands to be
executed (default: /etc/diag.conf)
2002.08.14.08.43
596974
diag command
Use the diag command to manage appliance diagnostics data files.
Note: By default, diagnostic commands in etc/diag.cont are executed and their output is
written to a diagnostics file. Default diagnostics might take more than two minutes to
complete, during which the CLI is not available.
March 2003
Utilities 9
March 2003
Utilities 10
March 2003
Utilities 11
/etc/diag.conf file
netcache> rdfile /etc/diag.conf
show config.*
show status.*
options
sysstat -c 30 1
show status.*
sysstat -c 30 -x 1
show status.*
ifstat -a
netstat -p tcp
netstat -rn
sysconfig -a
sysconfig -v
nfsstat -l
nfsstat -c
nclog -ta -2000 http
nclog -v messages
netcache>
March 2003
Utilities 12
March 2003
Utilities 13
pktt command:
Syntax 1:
Syntax 2:
Syntax 3:
Syntax 4:
Syntax 5:
Option
Definition
[if | all]
[-m <pklen>]
[-b <bsize>]
[-i <ipaddr>
-v
List IP addresses.
View the status.
March 2003
Utilities 14
March 2003
Utilities 15
Sysstat Command
edu2-C760> sysstat 1
CPU
URLs/s
Net
kB/s
Disk kB/s
BW savings/s
tot
hit
miss
in
out
read
write
4%
0%
1%
80
168
0%
4%
0%
0%
0%
4%
0%
2%
560
240
0%
4%
0%
Sysstat Command
The sysstat command is used to display performance statistics, such as the current CPU
usage, the amount of network I/O, and the amount of disk I/O.
Refer to the command line help for syntax and option information.
March 2003
Utilities 16
netdiag Examples
netdiag -s -- presents a summary of physical,
transport, and network layer diagnostic
results
netdiag -s -p -I ns0 -- presents a summary of
diagnostic results restricted to interface
ns0 on the physical layer
netdiag -v -e -- presents diagnostic results in
verbose mode with error codes displayed
Netdiag Command
The netdiag command runs automated diagnostic analysis routines on the on the physical,
network, and transport layers of the NetCache appliance and displays the results in
summary, verbose, or debug format.
Refer to the command line help for syntax and option information.
March 2003
Utilities 17
March 2003
Utilities 18
Packet Trace
Syntax
Usage: pktt
pktt
pktt
pktt
pktt
start
<if>|all [-m pklen] [-b bsize] [-i ipaddr -i ...]
pause
<if>|all
dump
<if>|all
stop
<if>|all
status [<if>|all] [-v]
Example:
netcache> pktt start all
netcache> pktt dump all
Mon Aug 14 21:26:51 GMT [rc:info]: pktt: 3617 packets seen, 0
dropped, 130102 by tes written to /ns0.trc
netcache> pktt stop all
ns0: Tracing stopped and packet trace buffers released.
netcache>
Packet Trace
When helping you to troubleshoot problems, Network Appliance Technical Support
might instruct you to run a packet trace by using the pktt command. The pktt command
creates a packet trace file, which contains information about your network.
Refer to the NetCache 5.4 Administration Guide, Chapter 13, Troubleshooting for
additional information.
March 2003
Utilities 19
March 2003
Utilities 20
Network Statistics
netcache> netstat ?
usage: netstat [-an]
netstat -mnrs
netstat {-i | -I interface} [-dn] [-w interval]
netstat [-p protocol]
Netstat
Use the netstat command to display the network status.
Syntax 1: netstat [-an]
Syntax 2: netstat -mnrs
Syntax 3: netstat -i [-I <interface>] [-dn]
Syntax 4: netstat -w <interval> -i [-I <interface>] [-dn]
Syntax 5: netstat -p <protocol>
Refer to the command line help for syntax and option information.
March 2003
Utilities 21
Routing Table
netcache> netstat -r
Routing tables
Internet:
Destination
default
10.120.4/22
wiley-120.sim.ne
localhost
netcache>
Gateway
wiley-120.sim.neta
link#1
0:e0:52:81:ed:0
localhost
Flags
UGS
UC
UHL
UH
Refs
21
0
1
0
Use
624
0
0
0
Interface
ns0
ns0
ns0
lo
Refer to the command line help for syntax and option information.
March 2003
Utilities 22
Routing Statistics
netcache>
routing:
0
0
0
0
0
netcache>
netstat -rs
bad routing redirects
dynamically created routes
new gateways due to redirects
destinations found unreachable
uses of a wildcard route
Refer to the command line help for syntax and option information.
March 2003
Utilities 23
Active Sockets
netcache> netstat -an
Active TCP connections (including servers)
Local Address
Remote Address
Swind Send-Q
10.120.4.220.23
10.10.20.138.45543
8760
0
ESTABLISHED
10.120.4.220.1132
128.11.10.251.80
31856
0
CLOSE_WAIT
10.120.4.220.1131
128.11.10.249.80
31856
0
10.120.4.220.1054
204.71.168.9.554
31856
0
LISTEN
*.3132
*.*
0
0
Active UDP sockets (including servers)
Local Address
Remote Address
10.120.4.220.554
10.32.17.73.6972
10.120.4.220.554
10.32.17.73.6970
*.161
*.*
*.1025
*.*
*.1755
*.*
*.3130
*.*
127.0.0.1.520
*.*
10.120.4.220.520
*.*
8760
32768
0
0
Send-Q Recv-Q
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Refer to the command line help for syntax and option information.
March 2003
Utilities 24
Memory Buffers
netcache> netstat -m
168 mbufs out of 1050 in use:
12 mbufs allocated to socket names and addresses
54 out of 500 large buffers in use
102 out of 500 small buffers in use
12 out of 50 non-data mbufs in use
938 Kbytes allocated to network (12% in use)
0 requests for memory denied
netcache>
Refer to the command line help for syntax and option information.
March 2003
Utilities 25
Interface Statistics
netcache> ifstat -a
usage: ifstat [-z] -a | <interface>
netcache> ifstat e0
-- interface
e0
RECEIVE
Packets:
Queue full:
TRANSMIT
Packets:
Collisions:
58881k | Errors:
61642k | Errors:
0
0
Ifstat Command
Displays network interface statistics for each interface.
Refer to the command line help for syntax and option information.
March 2003
Utilities 26
System Statistics
March 2003
Utilities 27
Error Pages
Use options on this page to download error pages for editing and then uploading the
pages to this NetCache Appliance after you have finished editing the pages.
Refer to On Line Help for additional information.
March 2003
Utilities 28
status.windows.domain_behavior
March 2003
Utilities 29
March 2003
Utilities 30
March 2003
Utilities 31
March 2003
Utilities 32
March 2003
Utilities 33
March 2003
Utilities 34
Utilities Exercises
Netdiag Command
Packet Trace
March 2003
Utilities 35
Exercises
15 minutes in length
Use breakout rooms
Instructor will visit all rooms
Broadcast announcement 5 minutes
prior to regroup
Stay focussed, start telnet, start GUI
Share microphones, or no one else can
be heard
March 2003
Utilities 36
Exercise Overview
The purpose of this activity is for you to perform the procedures to provide experience in
using troubleshooting tools. During these exercises, you will be guided through each step
in the process, and you will have an opportunity to verify that each step was successfully
completed.
Workstation
NetCache machine
Software
NetCache 5.4
Windows 2000
Netscape 4.7
March 2003
Utilities 37
Netdiag Command
Use the following procedure to practice using the netdiag command:
1.
At the NetCache CLI prompt, enter each of the following netdiag variants and
observe the results. Identify when you would use each of these.
netdiag -n = network layer
netdiag -t = transport layer
netdiag -p = physical layer
netdiag -s = summary
netdiag -d = debug
Note: Use ifconfig a to get information about the NetCache physical
interfaces.
2.
3.
4.
What does the netdiag command without any options tell you?
March 2003
Utilities 38
Packet Trace
In this exercise you will use the Packet Trace utility to capture a trace.
Start a packet trace and generate network traffic to the filer.
Open the NetCache Manager
1.
2.
3.
4.
5.
6.
7.
March 2003
Utilities 39
March 2003
Utilities 40
March 2003
Utilities 41