How to Use the Findstr Utility

Use the Findstr utility to find strings in logs or text files. Findstr is useful when parsing log files or other text files for a snippet of text.

To Access Findstr from the Dashboard

To run Findstr from the Support Tools Dashboard:

1.Use the System Select screen to select the system you want to work with.

2.From the Dashboard menu, select Common Tools > Findstr.

3.In the Arguments field, 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 field.

4.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.

5.If desired, check Elevate Command Priority. This ensures the command will run regardless of the level of server activity.

6.Click the Run button.

Using Findstr

Syntax

FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file] [/C:string] [/G:file] [/D:dir list] [/A:color attributes]

[strings] [[drive:][path]filename[ ...]]

If no names are specified on the command line, the size of the current directory is given. Sizes given show the total number of bytes in all of the files within and below the named directory and the amount of disk space used by the files in and below the named directory. The disk space is displayed in Kbytes ( 1024 bytes = 1 Kbyte )

Command Line Options

The options for Findstr are:

Cisco Support Tools 1.0 User Guide

How to Use the Findstr Utility 225

Page 225
Image 225
Cisco Systems 1.0 (1) manual How to Use the Findstr Utility, To Access Findstr from the Dashboard, Using Findstr