The
getCrawlMetrics task retrieves metrics for a particular
crawl.
The syntax for this task is:
cas-cmd getCrawlMetrics -id CrawlName [-h HostName] [-p PortNumber] [-l true|false]
Where:
-id(or--crawl_id) specifies the name of the crawl for to retrieve metrics for. Required.-h(or--host) specifies the host where the CAS Service is running. If the flag is omitted, the default is the value of thecom.endeca.itl.cas.server.hostproperty incommandline.properties. If the property is not set, the value then defaults tolocalhost. Optional.-p(or--port) specifies the port of the CAS Service. If the flag is omitted, the default is the value of thecom.endeca.itl.cas.server.portproperty incommandline.properties. If the property is not set, the value then defaults to8500. Optional.-l(or--isPortSsl) specifies whether to communicate with the service using an HTTPS connection. A value oftrueuses HTTPS and treats thecom.endeca.itl.cas.server.portproperty as an SSL port. A value offalseuses HTTP and treatscom.endeca.itl.cas.server.portas a non-SSL port. Specifyfalseif you enabled redirects from a non-SSL port to an SSL port. Optional.
Start a command prompt and navigate to
(for Windows), or<install path>\CAS\<version>\bin(for UNIX).<install path>/CAS/<version>/binType
cas-cmd.bat(for Windows), orcas-cmd.sh(for UNIX) and specify thegetCrawlMetricstask with the id of the crawl for which you want to get metrics.Note
This task name is case sensitive.
Example 19. Example of getting the metrics for a crawl
C:\Endeca\CAS\<version>\bin>cas-cmd getCrawlMetrics -id Test ARCHIVED_DIRECTORIES_CRAWLED: 0 ARCHIVED_DIRECTORIES_FILTERED: 0 ARCHIVED_FILES_CRAWLED: 0 ARCHIVED_FILES_FILTERED: 0 CRAWL_MODE: FULL_CRAWL CRAWL_STATE: NOT_RUNNING CRAWL_STOP_CAUSE: COMPLETED DELETED_RECORDS: 0 DIRECTORIES_CRAWLED: 97 DIRECTORIES_FILTERED: 0 DURATION_IN_SECONDS: 25 END_TIME: Thu Jan 07 16:33:17 EST 2010 FAILED_RECORDS: 0 FAILED_TEXT_EXTRACTIONS: 0 FILES_CRAWLED: 688 FILES_FILTERED: 0 NEW_OR_UPDATED_RECORDS: 785 NONARCHIVED_DIRECTORIES_CRAWLED: 97 NONARCHIVED_DIRECTORIES_FILTERED: 0 NONARCHIVED_FILES_CRAWLED: 688 NONARCHIVED_FILES_FILTERED: 0 START_TIME: Thu Jan 07 16:32:51 EST 2010 SUCCESSFUL_TEXT_EXTRACTIONS: 557 SUCCESSFUL_TEXT_EXTRACTIONS_AFTER_RETRY: 0 TOTAL_RECORDS: 785

