Cisco Unified Presence, Release 7.x -- file search CLI Command

From DocWiki

Jump to: navigation, search

Main page: Cisco Unified Presence, Release 7.x

Contents

Previous Topic


This command searches the content of a log and displays the matching lines a page at a time.

Command Syntax

file search

activelog directory/filename reg-exp [abstime hh:mm:ss mm/dd/yyyy hh:mm:ss mm/dd/yyyy] [ignorecase] [reltime {days | hours | minutes} timevalue]
inactivelog directory/filename reg-exp [abstime hh:mm:ss mm/dd/yyyy hh:mm:ss mm/dd/yyyy] [ignorecase] [reltime {days | hours | minutes} timevalue]
install directory/filename reg-exp [abstime hh:mm:ss mm/dd/yyyy hh:mm:ss mm/dd/yyyy] [ignorecase] [reltime {days | hours | minutes} timevalue]


Parameters
  • activelog specifies a log on the active side.
  • inactivelog specifies a log on the inactive side.
  • install specifies an installation log.
  • reg-exp represents a regular expression.
  • directory/filename represents the path to the file(s) to search. You can use the wildcard character, *, to represent all or part of the filename.


Options
  • abstime-Specifies which files to search based on file creation time. Enter a start time and an end time.
  • days|hours|minutes-Specifies whether the file age is in days, hours, or minutes.
  • ignorecase-Ignores case when searching
  • reltime-Specifies which files to search based on file creation time. Enter the age of files to search.
  • hh:mm:ss mm/dd/yyyy-An absolute time, in the format hours:minutes:seconds month/day/year.
  • timevalue-The age of files to search. Specify this value with the {days | hours | minutes} option.


Usage Guidelines

Write the search term in the form of a regular expression, which is a special text string for describing a search pattern.

If the system finds the search term in only one file, the filename appears at the top of the output. If system finds the search term in multiple files, each line of the output begins with the filename in which the matching line was found.


Requirements

Command privilege level: 0

Allowed during upgrade: Yes


Example

file search activelog platform/log/platform.log Err[a-z] ignorecase

Rating: 0.0/5 (0 votes cast)

Personal tools