Document ID: 20430
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
What is the findstr Command?
NetPro Discussion Forums - Featured Conversations
Related Information
Introduction
This document explains how to use the findstr command in order to troubleshoot common problems with Cisco Intelligent Contact Management (ICM).
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
This document is not restricted to specific software and hardware versions.
Conventions
Refer to the Cisco Technical Tips Conventions for more information on document conventions.
What is the findstr Command?
The findstr command finds the exact text for which you search in any ASCII file or files. You can search with only part of the information that you want to match, or you can search for a wider range of information. The findstr command has the capability to use regular expressions in order to find patterns of text.
This table shows the available options that you can use with the findstr command:
|
Option |
Definition |
|---|---|
|
/B |
Matches a pattern, if at the beginning of a line |
|
/E |
Matches a pattern, if at the end of a line |
|
/L |
Uses search strings literally |
|
/R |
Uses search strings as regular expressions |
|
/S |
Searches for files that match in the current directory and all subdirectories |
|
/I |
Specifies that the search is not case-sensitive |
|
/X |
Prints lines that match exactly |
|
/V |
Prints only lines that do not contain a match |
|
/N |
Prints the line number before each line that matches |
|
/M |
Prints only the file name, if a file contains a match |
|
/O |
Prints character offset before each line that matches |
|
/P |
Skips files with nonprintable characters |
|
/F:file |
Reads the file list from the specified file Note: The "/" represents console. |
|
/C:string |
Uses the specified string as a literal search string |
|
/G:file |
Gets search strings from the specified file Note: The "/" represents console. |
|
strings |
Text for which to search |
|
[drive:][path]filename |
Specifies a file or files to search |
These examples illustrate when you can use the findstr command to troubleshoot common problems with ICM:
In this example, the string looks for the priority IP address in the host file for Router A:
C:\WINNT\system32\drivers\etc> findstr /i geocscortrap hosts 148.171.208.34 geocscortrap # RouterA Low Priority 148.171.208.35 geocscortraph # RouterA High Priority
In this example, the string looks for the date and time that a process asserted and wrote to the Dr. Watson log file:
C:\WINNT> findstr /i when drwtsn32.log
When: 3/17/1999 @ 4:31:45.175
This example shows which application wrote to the Dr. Watson log file:
C:\WINNT> findstr /i app drwtsn32.log
Application exception occurred:
App: .\Release\MCINIC.exe (pid=259)
NetPro Discussion Forums - Featured Conversations
| NetPro Discussion Forums - Featured Conversations for Customer Contact Software |
| IP Communications and Video: Contact Center |
Related Information
| Updated: Jul 20, 2006 | Document ID: 20430 |
