
Troubleshooting Routers
B-10
Allocating Memory for the Packet Capture File
You must allocate memory to store the Packet Capture file in order to capture
packets. By default, the Packet Capture file uses 0 bytes of memory.
Allocate memory to the Packet Capture file as follows:
1. Enter the following command to display the maximum number of
contiguous bytes available:
get wfKernelEntry.6.
<slot no.> <value>
6 represents the wfKernelMemoryMaxSegFree attribute.
2. Enter the following command to specify the size of the Packet Capture
file stored in memory:
set wfPktCaptureEntry.8.
<line_no.> <value>
;commit
8
represents the wfPktCaptureBufSize attribute.
<line_no.>
is the number displayed after you issued the get command in
“Cr
eating an Instance of Packet Capture.” To list the current line numbers
associated with Packet Capture, enter the
list instances wfPktCaptureEntry
command.
<value>
is any number of 1024-byte increments in the range 1to the number
of bytes of (available contiguous memory minus 200 KB)/1024.The value 1
represents 1024 bytes of memory allocated for the Packet Capture file. The
value 2 represents 2048 bytes. To calculate the value, subtract 200 KB from
the lowest number displayed in response to the
get command you entered in
Step 1
. Divide this by 1024. The answer is the maximum value that we
recommend that you enter. The less memory you allocate to Packet Capture,
the lower the chance that the processor will reset because of a memory
problem. However, you do need to allocate enough memory to store the
packets you want to capture.
If less than 200 KB of free memory remains after Packet Capture starts, it sends a
warning message to the log. If errors occur after you start Packet Capture, stop it
and allocate less memory.
Note: The allocation of memory varies. If the processors have memory
restrictions, enter this command every fifteen seconds for two to three minutes
and record each response.
Comentarios a estos manuales