IIS Discovery Pattern Failed

Uday Gonuguntla
Giga Guru

Hello Experts,

 

can someone please help me to overcome this error for IIS Pattern?

 

Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: Identification for HTTP(S) entry point type(s) for IIS6 second logic, error: Match step predicate is not matched. section: Identification for HTTP(S) entry point type(s) for IIS7 and above, error: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Parse port for websites - get all ports' at line 4

1:
2: var binds = iis_websites___bindings;
3: var port = binds.match(/.*?(\d+)/);
==> 4: port = port[1];
. section: Identification for HTTP(S) entry point type(s) for IIS6, error: Match step predicate is not matched.
1 ACCEPTED SOLUTION

Uday Gonuguntla
Giga Guru

we are getting null value from the websites where net.pipe protocol configured. In below line, it is trying to assign first index of null. Hence it is failing. 

port = port[1];

View solution in original post

5 REPLIES 5

bdubz7
Giga Expert

probably need to debug the pattern.

 

Seems it's not matching one of the step requirements

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,


Steps to follow:

1) open the pattern mostly IIS pattern,

2) Identify the step in which this eval script is running:

3) Now once you have identified the script then start debuging the pattern. Step by step.I think it is coming from this step "Parse port for websites - get all ports"

This script is not getting value from previous step or the variable it depends on.

 

Thanks,
Ashutosh

Hi @Ashutosh Munot1 

@Uday Gonuguntla 

 

i would want to extend following pattern"IIS Virtual Directory" to retrieve the all details of web application which hosted on azure plaftform  such as version,category  , some custom fields etc, for retrieve all details of application i have created "details "under extension , my queries what command to write retrieve all details  and when i clicked on debug mode on pattern its asking for following details , please if anyone knew, please help me on this.

anitha0887_0-1714565783210.png

anitha0887_1-1714565863693.png

 

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @anitha0887 

 

IIS Virtual Directory pattern is executed after IIS pattern as its dependent pattern, so it asks input parameters for IIS pattern on left side and current pattern on right side.

 

If you already have a prior execution of this pattern you can click debug from that log, so these get auto filled else you need to figure out the values for these from the CI or from the admin team.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.