Discovery Pattern Failure

rajeshmahalinga
Tera Contributor

 

I ran a discovery, and below is the error that I received.

Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: discovery, error: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script  EvalClosure-Parse Application.cfc' at line 5

Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: Coldfusion app server, error: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Parse Application.cfc' at line 5

2: var filePath= CTX.getAttribute("apps_cfc[].application_file_path");
3:
4: if(filePath){
==> 5: var fileContent =
6: CTX.getCommandManager().shellCommand(type_file_cmd+" "+filePath, false, null, null, CTX);
7:
8: var regex_for_node = /.*cfset this.name.*?=.*?'(.*?)'.*/;

Can you please help me with this error??
3 REPLIES 3

adilrathore
ServiceNow Employee
ServiceNow Employee

From the above code it seems that someone pressed enter after the equal "=" sign on line number 5 of the script as it is not terminating.

 

I think you are discovering a machine with Adobe Coldfusion installed. Can you check the step which runs the above script and correct the code by putting the below code in a single line:

var fileContent = CTX.getCommandManager().shellCommand(type_file_cmd+" "+filePath, false, null, null, CTX);

Akshay74
Kilo Contributor

Hi Rajesh,

I am facing the same kind of error:

Error: Pattern exit because graceful termination, reason: There is no Veritas Cluster Process running on this server.

Can you please tell, how you proceed in resolving your issue, and also I am unable to access the debug of the failure patterns.

Any help will be appreciated.

 

Thanks.

Akshay Sharma 

Hi Akshay

Linux Pattern looks for presence of veritas cluster on given Linux Box , But if its not there

then it will exit and continue discovery. You can ignore this.

find_real_file.png

Press Here as per SS - You will get this. But this you can ignore as Veritas process is not present.

It will not impact the discovery.

find_real_file.png

 

Regards

RP