9 views

Description

When Running discovery pattern "Network Switch" or "Network Router", the pattern fails at step:

"If vtpVlanTable not available, try vmMembershipSummaryTable"

 

with error below:

2018-09-10 23:26:45: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-If vtpVlanTable not available, try vmMembershipSummaryTable' at line 2

1: var rtrn = '';
==> 2: rtrn = vtpVlanTable___instanceID.replace(/\./,'');
. JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-If vtpVlanTable not available, try vmMembershipSummaryTable' at line 2

1: var rtrn = '';
==> 2: rtrn = vtpVlanTable___instanceID.replace(/\./,'');

 

 

Steps to Reproduce

Run discovery to a switch / router that has VLAN information

Workaround

  1.  Open Network Switch pattern > Expand Step 33. SNMP - Switch - Vlan
  2. Open step 33.14. If vtpVlanTable not available, try vmMembershipSummaryTable
  3. Click on the Edit button next to the Value field
  4. Change vtpVlanTable to vmMembershipSummaryTable

Final content should be:

var rtrn = '';
rtrn = ${vmMembershipSummaryTable[].instanceID}.replace(/\./,'');
 
Click on the blue Save button at the top, select With libraries, so it will fix all patterns that calls this library, including Network Router pattern.

Related Problem: PRB1303015

Seen In

There is no data to report.

Intended Fix Version

Kingston Patch 10
Madrid

Fixed In

London Patch 2

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-10-11 09:36:13
Published:2018-10-11