cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1140
Views
0
Helpful
5
Replies

Easy Pcap Issue

kevinhobson2000
Level 1
Level 1

Hi All,

When i run the easy pcap script after i get through the questions it gives me the error below:

'list must have an even number of elements'

Debug output below:

UM1352#tclsh easy-installer-signed-1.5.tcl --debug ftp://10.60.29.13/easy-packet-capture.tar flash:/easy
INFO: exec_cli: Running command 'show event manager environment __easy_PREFIX'

INFO: exec_cli: Output from command: 'flash:/easy'

INFO: exec_cli: Running command 'show running | include ^file prompt quiet'

INFO: exec_cli: Output from command: ''

INFO: exec_cli: Running command 'mkdir flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Output from command: 'Created dir flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Running command 'archive tar /xtract
ftp://10.60.29.13/easy-packet-capture.tar flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Output from command: 'extracting ap_easy_epc_export.tcl (8437
bytes)
extracting envvars (435 bytes)
extracting manifest (114 bytes)
extracting no_easy_epc_start.tcl (5805 bytes)
extracting no_easy_epc_stop.tcl (4419 bytes)
extracting pkgconfig (12088 bytes)
extracting pkgdescr (304 bytes)
extracting pkgmessage (365 bytes)
extracting sl_easy_epc_fullbuffer.tcl (2987 bytes)
extracting tm_easy_epc_start.tcl (2212 bytes)
extracting ts_easy_epc_stop.tcl (4486 bytes)'
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. Neither the name of Cisco, the name of the copyright holder nor the
   names of their respective contributors may be used to endorse or
   promote products derived from this software without specific prior
   written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY

Hit enter to continue...
TECHNICAL ASSISTANCE CENTER (TAC) SUPPORT IS NOT AVAILABLE FOR THIS SCRIPT.
For questions or help, send email to ask-easy@cisco.com.

Hit enter to continue...
Do you agree to this license? (y/n) [n]y


INFO: exec_cli: Running command 'show version'

INFO: exec_cli: Output from command: 'Cisco IOS Software, 2800 Software
(C2800NM-SPSERVICESK9-M), Version 12.4(24)T1, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Fri 19-Jun-09 15:13 by prod_rel_team

ROM: System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE
(fc1)

UM1352 uptime is 48 minutes
System returned to ROM by reload at 07:30:15 UTC Thu Aug 11 2011
System restarted at 07:32:00 UTC Thu Aug 11 2011
System image file is "flash:c2800nm-spservicesk9-mz.124-24.T1.bin"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found
at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco 2811 (revision 53.51) with 249856K/12288K bytes of memory.
Processor board ID FCZ1021705B
2 FastEthernet interfaces
1 Serial interface
1 terminal line
2 Channelized/Clear E1/PRI ports
2 Voice FXS interfaces
1 cisco service engine(s)
DRAM configuration is 64 bits wide with parity enabled.
239K bytes of non-volatile configuration memory.
126976K bytes of ATA CompactFlash (Read/Write)

Configuration register is 0x2102'

INFO: EASY::__check_reqs: Device has 249856KB of memory

INFO: EASY::__check_reqs: Device has 126976KB of flash

INFO: exec_cli: Running command 'show event manager environment'

INFO: exec_cli: Output from command: 'No.  Name                          Value

1    _email_server                 relay-in1.mail.uk.quza.net
2    _email_to                     kevin.hobson@globalcrossing.co
3    __easy_PREFIX                 flash:/easy
4    pcap_var_capbuf1             vid-buff
5    pcap_var_cappnt1              vid-cap
6    pcap_var_intf_name            FastEthernet0/0'

INFO: exec_cli: Running command 'show monitor capture buffer all parameters'

INFO: exec_cli: Output from command: 'Capture buffervid-buff (linear buffer)
Buffer Size : 524288 bytes, Max Element Size : 1024 bytes, Packets : 0
Allow-nth-pak : 0, Duration : 0 (seconds), Max packets : 0, pps : 0
Associated Capture Points:
Name : vid-cap, Status : Inactive
Configuration:
monitor capture buffervid-buff size 512 max-size 1024 linear
monitor capture point associate vid-capvid-buff'

--------------------------------------------------------------------------------

Configure and Install EASy Package 'easy-packet-capture-1.0'

--------------------------------------------------------------------------------

1. Display Package Description
2. Configure Package Parameters
3. Deploy Package Policies
4. Configure Embedded Packet Capture
5. Exit

Enter option: 2

--------------------------------------------------------------------------------

Embedded Packet Capture Configuration

--------------------------------------------------------------------------------

Enter a name for the capture point: vid-cap
Enter a name for the capture buffer: vid-buff
Enter a protocol to capture (either ip or ipv6) [ip]:
Enter a capture method (either cef or process-switched) [cef]:
INFO: exec_cli: Running command 'show ip interface brief'

INFO: exec_cli: Output from command: 'Interface                  IP-Address
OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES NVRAM  up
up
FastEthernet0/0.8          10.60.29.1      YES NVRAM  up
up
FastEthernet0/0.10         10.252.29.1     YES NVRAM  up
up
FastEthernet0/0.502        142.102.66.4    YES NVRAM  up
up
Service-Engine0/0          unassigned      YES NVRAM  up
up
FastEthernet0/1            unassigned      YES NVRAM  up
down
Serial0/0/0:0              64.210.11.46    YES NVRAM  up
up
Loopback0                  145.233.97.185  YES NVRAM  up
up
Loopback1                  172.19.251.96   YES NVRAM  up
up
Loopback2                  157.26.1.100    YES NVRAM  up
up'
1: FastEthernet0/0
2: FastEthernet0/0.8
3: FastEthernet0/0.10
4: FastEthernet0/0.502
5: Service-Engine0/0
6: FastEthernet0/1
7: Serial0/0/0:0
8: Loopback0
9: Loopback1
10: Loopback2
11: all

Hit enter to continue...2
Enter the number corresponding to the desired capture interface (1 - 11):
WARN: Invalid interface selection ''
1: FastEthernet0/0
2: FastEthernet0/0.8
3: FastEthernet0/0.10
4: FastEthernet0/0.502
5: Service-Engine0/0
6: FastEthernet0/1
7: Serial0/0/0:0
8: Loopback0
9: Loopback1
10: Loopback2
11: all

Hit enter to continue...
Enter the number corresponding to the desired capture interface (1 - 11): 2
Enter a capture direction (either both, in, or out) [both]: out
Enter a buffer type (either linear or circular); note: if you choose
"circular" there will be no "buffer full" event detection [linear]:
Enter the buffer size in kilobytes (between 1 and 512) [256]:
Enter the maximum buffer element size in bytes (between 68 and 1024) [68]:
Do you want to configure an ACL to filter the captured traffic? (y/n) [n]:

Embedded Packet Capture Configuration:

Capture Point Name   : vid-cap
Capture Buffer Name  : vid-buff
Capture Protocol     : ip
Capture Method       : cef
Capture Interface    : FastEthernet0/0.8
Capture Direction    : out
Capture Buffer type  : linear
Capture Buffer Size  : 256
Maximum Element Size : 68

CLI to be configured:

monitor capture point ip cef vid-cap FastEthernet0/0.8 out
monitor capture buffer vid-buff size 256 max-size 68 linear
monitor capture point associate vid-cap vid-buff

Are you satisfied with these settings? (y/n) [y]: y
INFO: exec_cli: Running command 'monitor capture point ip cef vid-cap
FastEthernet0/0.8 out'

INFO: exec_cli: Output from command: 'Capture Point by the name already exists'

INFO: exec_cli: Running command 'monitor capture buffer vid-buff size 256
max-size 68 linear'

INFO: exec_cli: Output from command: ''

INFO: exec_cli: Running command 'monitor capture point associate vid-cap
vid-buff'

INFO: exec_cli: Output from command: 'Capture Point vid-cap is already
associated with a capture buffer'

INFO: get_records: Read 'name pcap_var_export_url prompt {Enter the URL
(directory) into which captures will be exported (end with a trailing
'/')} default {} pattern {^[\d\w-_:/]+/$}' from envvars

INFO: get_records: Read 'name pcap_var_max_captime prompt {Enter the maximum
time to wait (in seconds) before the capture is stopped} default {3600}
pattern {^\d+$}' from envvars

INFO: get_records: Read 'name pcap_var_max_capnum prompt {Enter the number of
capture buffers to create before stopping the capture} default {20}
pattern {^\d+}' from envvars

INFO: get_records: Read '' from envvars
Do you want to start the packet capture at a specific time? (y/n) [n]: n
INFO: get_records: Read '{name pcap_var_export_url prompt {Enter the URL
(directory) into which captures will be exported (end with a trailing
'/')} default {} pattern {^[\d\w-_:/]+/$}} {name pcap_var_max_captime
prompt {Enter the maximum time to wait (in seconds) before the capture is
stopped} default {3600} pattern {^\d+$}} {name pcap_var_max_capnum prompt
{Enter the number of capture buffers to create before stopping the
capture} default {20} pattern {^\d+}}' from envvars

INFO: get_records: Read '' from envvars

Configure EEM Environment Variables for 'easy-packet-capture-1.0'


ERROR: Step do_configure failed: 'list must have an even number of elements'

INFO: exec_cli: Running command 'show running | include ^file prompt quiet'

INFO: exec_cli: Output from command: ''

INFO: exec_cli: Running command 'delete /force /recursive
flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Output from command: ''

Tries this on two routers and got the same result.

Cheers

Kev

gm17539#tclsh easy-installer-signed-1.5.tcl tftp://145.233.113.21/easy-packet-capture.tar flash:/easy
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. Neither the name of Cisco, the name of the copyright holder nor the
   names of their respective contributors may be used to endorse or
   promote products derived from this software without specific prior
   written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY

Hit enter to continue...
TECHNICAL ASSISTANCE CENTER (TAC) SUPPORT IS NOT AVAILABLE FOR THIS SCRIPT.
For questions or help, send email to ask-easy@cisco.com.

Hit enter to continue...
Do you agree to this license? (y/n) [n]y

--------------------------------------------------------------------------------

Configure and Install EASy Package 'easy-packet-capture-1.0'

--------------------------------------------------------------------------------

1. Display Package Description
2. Configure Package Parameters
3. Deploy Package Policies
4. Configure Embedded Packet Capture
5. Exit

Enter option: 2

--------------------------------------------------------------------------------

Embedded Packet Capture Configuration

--------------------------------------------------------------------------------

Enter a name for the capture point: vid-cap
Enter a name for the capture buffer: vid-buff
Enter a protocol to capture (either ip or ipv6) [ip]:
Enter a capture method (either cef or process-switched) [cef]:
1: GigabitEthernet0/0
2: GigabitEthernet0/1
3: Loopback0
4: all

Hit enter to continue...2
Enter the number corresponding to the desired capture interface (1 - 4): 2
Enter a capture direction (either both, in, or out) [both]:
Enter a buffer type (either linear or circular); note: if you choose
"circular" there will be no "buffer full" event detection [linear]:
Enter the buffer size in kilobytes (between 1 and 512) [256]: 512
Enter the maximum buffer element size in bytes (between 68 and 1024) [68]: 1024
Do you want to configure an ACL to filter the captured traffic? (y/n) [n]:

Embedded Packet Capture Configuration:

Capture Point Name   : vid-cap
Capture Buffer Name  : vid-buff
Capture Protocol     : ip
Capture Method       : cef
Capture Interface    : GigabitEthernet0/1
Capture Direction    : both
Capture Buffer type  : linear
Capture Buffer Size  : 512
Maximum Element Size : 1024

CLI to be configured:

monitor capture point ip cef vid-cap GigabitEthernet0/1 both
monitor capture buffer vid-buff size 512 max-size 1024 linear
monitor capture point associate vid-cap vid-buff

Are you satisfied with these settings? (y/n) [y]:
Do you want to start the packet capture at a specific time? (y/n) [n]:

Configure EEM Environment Variables for 'easy-packet-capture-1.0'


ERROR: Step do_configure failed: 'list must have an even number of elements'

UM1352#tclsh easy-installer-signed-1.5.tcl --debug ftp://10.60.29.13/easy-packet-capture.tar flash:/easy
INFO: exec_cli: Running command 'show event manager environment __easy_PREFIX'

INFO: exec_cli: Output from command: 'flash:/easy'

INFO: exec_cli: Running command 'show running | include ^file prompt quiet'

INFO: exec_cli: Output from command: ''

INFO: exec_cli: Running command 'mkdir flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Output from command: 'Created dir flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Running command 'archive tar /xtract
ftp://10.60.29.13/easy-packet-capture.tar flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Output from command: 'extracting ap_easy_epc_export.tcl (8437
bytes)
extracting envvars (435 bytes)
extracting manifest (114 bytes)
extracting no_easy_epc_start.tcl (5805 bytes)
extracting no_easy_epc_stop.tcl (4419 bytes)
extracting pkgconfig (12088 bytes)
extracting pkgdescr (304 bytes)
extracting pkgmessage (365 bytes)
extracting sl_easy_epc_fullbuffer.tcl (2987 bytes)
extracting tm_easy_epc_start.tcl (2212 bytes)
extracting ts_easy_epc_stop.tcl (4486 bytes)'
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. Neither the name of Cisco, the name of the copyright holder nor the
   names of their respective contributors may be used to endorse or
   promote products derived from this software without specific prior
   written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY

Hit enter to continue...
TECHNICAL ASSISTANCE CENTER (TAC) SUPPORT IS NOT AVAILABLE FOR THIS SCRIPT.
For questions or help, send email to ask-easy@cisco.com.

Hit enter to continue...
Do you agree to this license? (y/n) [n]y


INFO: exec_cli: Running command 'show version'

INFO: exec_cli: Output from command: 'Cisco IOS Software, 2800 Software
(C2800NM-SPSERVICESK9-M), Version 12.4(24)T1, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Fri 19-Jun-09 15:13 by prod_rel_team

ROM: System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE
(fc1)

UM1352 uptime is 48 minutes
System returned to ROM by reload at 07:30:15 UTC Thu Aug 11 2011
System restarted at 07:32:00 UTC Thu Aug 11 2011
System image file is "flash:c2800nm-spservicesk9-mz.124-24.T1.bin"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found
at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco 2811 (revision 53.51) with 249856K/12288K bytes of memory.
Processor board ID FCZ1021705B
2 FastEthernet interfaces
1 Serial interface
1 terminal line
2 Channelized/Clear E1/PRI ports
2 Voice FXS interfaces
1 cisco service engine(s)
DRAM configuration is 64 bits wide with parity enabled.
239K bytes of non-volatile configuration memory.
126976K bytes of ATA CompactFlash (Read/Write)

Configuration register is 0x2102'

INFO: EASY::__check_reqs: Device has 249856KB of memory

INFO: EASY::__check_reqs: Device has 126976KB of flash

INFO: exec_cli: Running command 'show event manager environment'

INFO: exec_cli: Output from command: 'No.  Name                          Value

1    _email_server                 relay-in1.mail.uk.quza.net
2    _email_to                     kevin.hobson@globalcrossing.co
3    __easy_PREFIX                 flash:/easy
4    pcap_var_capbuf1             vid-buff
5    pcap_var_cappnt1              vid-cap
6    pcap_var_intf_name            FastEthernet0/0'

INFO: exec_cli: Running command 'show monitor capture buffer all parameters'

INFO: exec_cli: Output from command: 'Capture buffervid-buff (linear buffer)
Buffer Size : 524288 bytes, Max Element Size : 1024 bytes, Packets : 0
Allow-nth-pak : 0, Duration : 0 (seconds), Max packets : 0, pps : 0
Associated Capture Points:
Name : vid-cap, Status : Inactive
Configuration:
monitor capture buffervid-buff size 512 max-size 1024 linear
monitor capture point associate vid-capvid-buff'

--------------------------------------------------------------------------------

Configure and Install EASy Package 'easy-packet-capture-1.0'

--------------------------------------------------------------------------------

1. Display Package Description
2. Configure Package Parameters
3. Deploy Package Policies
4. Configure Embedded Packet Capture
5. Exit

Enter option: 2

--------------------------------------------------------------------------------

Embedded Packet Capture Configuration

--------------------------------------------------------------------------------

Enter a name for the capture point: vid-cap
Enter a name for the capture buffer: vid-buff
Enter a protocol to capture (either ip or ipv6) [ip]:
Enter a capture method (either cef or process-switched) [cef]:
INFO: exec_cli: Running command 'show ip interface brief'

INFO: exec_cli: Output from command: 'Interface                  IP-Address
OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES NVRAM  up
up
FastEthernet0/0.8          10.60.29.1      YES NVRAM  up
up
FastEthernet0/0.10         10.252.29.1     YES NVRAM  up
up
FastEthernet0/0.502        142.102.66.4    YES NVRAM  up
up
Service-Engine0/0          unassigned      YES NVRAM  up
up
FastEthernet0/1            unassigned      YES NVRAM  up
down
Serial0/0/0:0              64.210.11.46    YES NVRAM  up
up
Loopback0                  145.233.97.185  YES NVRAM  up
up
Loopback1                  172.19.251.96   YES NVRAM  up
up
Loopback2                  157.26.1.100    YES NVRAM  up
up'
1: FastEthernet0/0
2: FastEthernet0/0.8
3: FastEthernet0/0.10
4: FastEthernet0/0.502
5: Service-Engine0/0
6: FastEthernet0/1
7: Serial0/0/0:0
8: Loopback0
9: Loopback1
10: Loopback2
11: all

Hit enter to continue...2
Enter the number corresponding to the desired capture interface (1 - 11):
WARN: Invalid interface selection ''
1: FastEthernet0/0
2: FastEthernet0/0.8
3: FastEthernet0/0.10
4: FastEthernet0/0.502
5: Service-Engine0/0
6: FastEthernet0/1
7: Serial0/0/0:0
8: Loopback0
9: Loopback1
10: Loopback2
11: all

Hit enter to continue...
Enter the number corresponding to the desired capture interface (1 - 11): 2
Enter a capture direction (either both, in, or out) [both]: out
Enter a buffer type (either linear or circular); note: if you choose
"circular" there will be no "buffer full" event detection [linear]:
Enter the buffer size in kilobytes (between 1 and 512) [256]:
Enter the maximum buffer element size in bytes (between 68 and 1024) [68]:
Do you want to configure an ACL to filter the captured traffic? (y/n) [n]:

Embedded Packet Capture Configuration:

Capture Point Name   : vid-cap
Capture Buffer Name  : vid-buff
Capture Protocol     : ip
Capture Method       : cef
Capture Interface    : FastEthernet0/0.8
Capture Direction    : out
Capture Buffer type  : linear
Capture Buffer Size  : 256
Maximum Element Size : 68

CLI to be configured:

monitor capture point ip cef vid-cap FastEthernet0/0.8 out
monitor capture buffer vid-buff size 256 max-size 68 linear
monitor capture point associate vid-cap vid-buff

Are you satisfied with these settings? (y/n) [y]: y
INFO: exec_cli: Running command 'monitor capture point ip cef vid-cap
FastEthernet0/0.8 out'

INFO: exec_cli: Output from command: 'Capture Point by the name already exists'

INFO: exec_cli: Running command 'monitor capture buffer vid-buff size 256
max-size 68 linear'

INFO: exec_cli: Output from command: ''

INFO: exec_cli: Running command 'monitor capture point associate vid-cap
vid-buff'

INFO: exec_cli: Output from command: 'Capture Point vid-cap is already
associated with a capture buffer'

INFO: get_records: Read 'name pcap_var_export_url prompt {Enter the URL
(directory) into which captures will be exported (end with a trailing
'/')} default {} pattern {^[\d\w-_:/]+/$}' from envvars

INFO: get_records: Read 'name pcap_var_max_captime prompt {Enter the maximum
time to wait (in seconds) before the capture is stopped} default {3600}
pattern {^\d+$}' from envvars

INFO: get_records: Read 'name pcap_var_max_capnum prompt {Enter the number of
capture buffers to create before stopping the capture} default {20}
pattern {^\d+}' from envvars

INFO: get_records: Read '' from envvars
Do you want to start the packet capture at a specific time? (y/n) [n]: n
INFO: get_records: Read '{name pcap_var_export_url prompt {Enter the URL
(directory) into which captures will be exported (end with a trailing
'/')} default {} pattern {^[\d\w-_:/]+/$}} {name pcap_var_max_captime
prompt {Enter the maximum time to wait (in seconds) before the capture is
stopped} default {3600} pattern {^\d+$}} {name pcap_var_max_capnum prompt
{Enter the number of capture buffers to create before stopping the
capture} default {20} pattern {^\d+}}' from envvars

INFO: get_records: Read '' from envvars

Configure EEM Environment Variables for 'easy-packet-capture-1.0'


ERROR: Step do_configure failed: 'list must have an even number of elements'

INFO: exec_cli: Running command 'show running | include ^file prompt quiet'

INFO: exec_cli: Output from command: ''

INFO: exec_cli: Running command 'delete /force /recursive
flash:/easy/easytmp4GuU4b'

INFO: exec_cli: Output from command: ''

5 Replies 5

kevinhobson2000
Level 1
Level 1

Doesnt matter figured it out.

Joe Clarke
Cisco Employee
Cisco Employee

There is a bug with the policy posted.  I've since fixed it, but I'm waiting for the policy to be republished.  Attached is a fixed version.

Hi Joe,

Thanks for that.

FYI i got around the bug by saying yes i did want to set a time.

On the new one i got the following:

Are you satisfied with these settings? (y/n) [y]: y

ERROR: Step pre_configure failed: 'Failed to configure Embedded Packet Capture:

'''

Just a bit of feedback fer ya.

Cheers

Kev

Hmmm.  Can you post the output of running easy-installer with --debug?

Joe,

Sorry for the late feedback ive been busy.

As you probably well know working in networks :-].

Anyway ive tried this on another router and it worked fine.

So let me retest on the original router and see if it was just a glitch.

The only diff between the two is that the orgianl one is on a higher IOS.

Ill let you know.

Cheers

Kev

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: