-m: print the lines that match the pattern (DEFAULT).
-v: print the lines that DON'T match the pattern.
-c: print a count of the number of matching lines in each le.
-l: print the name of each le that has a match.
Note: Options m, v, c and l are exclusive. Only one of these may be selected.
-x: the pattern must match the entire line to succeed.
-i: ignore the case of each character while matching.
-n: print the line number that the match occurred on.
-f: print the full path name of the le when printing lenames.
-s: do not report errors encountered while opening or reading les.
-e: use the next argument as the pattern to search for. This is useful if the pattern begins with a
- or / character.
-?: Display program description.
Note: If the environment variable FGrep exists, its value is used to establish default options.
You can override an option that was specied in the environment variable by following the
option with a minus '-' sign. For example, to turn off the -I option, specify -I-.
FindStr
Note: This tool can be used in both Interactive Mode and Batch Mode. For details on scheduling
this tool to run in batch mode see Using Batch Mode.
Use the Findstr utility to nd strings in logs or text les. Findstr is useful when parsing log les
or other text les for a snippet of text.

To Access Findstr from the Dashboard

To run Findstr from the Support Tools Dashboard:
Step 1 In the Arguments eld, enter desired arguments, as described in the Using section below.
Note: When entering arguments, the Findstr command is already implied. Do not enter it in the
Arguments eld.
Step 2 Specify the command duration time or accept the default (60 seconds). This is the amount of
time the command will attempt to run before terminating.
Cisco Support Tools User Guide for Cisco Unified Software Release 2.1(1)
208
Chapter 14: - Using 3rd Party Common Tools
FindStr