12-7
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2
OL-29168-01
Chapter1 2 Configuring IP Logging
Copying IP Log Files to Be Viewed
Step 3
Stop all IP logging sessions on a virtual sensor.
sensor# no iplog name vs0
Step 4
Verify that IP logging has been stopped. When the logs are stopped, the status shows them as completed.
sensor# iplog-status
Log ID: 1
IP Address 1: 192.0.2.1
Virtual Sensor: vs0
Status: completed
Event ID: 0
Bytes Captured: 0
Packets Captured: 0
sensor#
Copying IP Log Files to Be Viewed
Use the copy iplog log_id destination_url command to copy IP log files to an FTP or SCP server so that
you can view them with a sniffing tool such as Ethereal or TCPDUMP.
The following options apply:
log_id—Specifies the log ID of the logging session. You can retrieve the log ID using the
iplog-status command.
destination_url—Specifies the location of the destination file to be copied. It can be a URL or a
keyword.
The exact format of the source and destination URLs varies according to the file. Here are the valid
types:
ftp:—Destination URL for an FTP network server. The syntax for this prefix is:
ftp:[//[username@] location]/relativeDirectory]/filename
ftp:[//[username@]location]//absoluteDirectory]/filename
scp:—Destination URL for the SCP network server. The syntax for this prefix is:
scp:[//[username@] location]/relativeDirectory]/filename
scp:[//[username@] location]//absoluteDirectory]/filename
When you use FTP or SCP protocol, you are prompted for a password.
Copying IP Log Files
To copy IP log files to an FTP or SCP server, follow these steps:
Step 1
Log in to the CLI.
Step 2
Monitor the IP log status with the iplog-status command until you see that the status reads completed
for the log ID of the log file that you want to copy.
sensor# iplog-status
Log ID: 2425
IP Address: 192.0.2.1
Virtual Sensor: vs0
Status: started
Start Time: 2003/07/30 18:24:18 2002/07/30 12:24:18 CST