Smarts NCM : Juniper Device Fails to Pull SystemProperties
search cancel

Smarts NCM : Juniper Device Fails to Pull SystemProperties

book

Article ID: 330912

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


Juniper Device fails to pull SystemProperties and the following below error is located in the $VOYENCE_HOME/logs/commmgr.log.

Dec 06 14:50:43 -924641536/pull(256653)#4: [01;32mExecuting function "Juniper Router::getSystemProperties"[00m...
Dec 06 14:50:43 -924641536/pull(256653)#5: SNMP-GET(.1.3.6.1.2.1.1.2.0)-
>1.3.6.1.4.1.2636.1.1.1.2.21
Dec 06 14:50:43 -924641536/pull(256653)#4: DASL: Looking for 1.1.1.2.21 in XML file Juniper/JuniperModels.xml
Dec 06 14:50:43 -924641536/pull(256653)#1: Using Custom Data File /opt/smarts-ncm/custompackage/pkgxml/Juniper/JuniperModels.xml
Dec 06 14:50:43 -924641536/pull(256653)#4: RunTimeContext::getFileData /opt/smarts-ncm/custompackage/pkgxml/Juniper/JuniperModels.xml Fri Dec 1 13:39:23 2017 4804 bytes
Dec 06 14:50:43 -924641536/pull(256653)#4: RESULT: Unable to determine model for Oid '1.1.1.2.21'
Dec 06 14:50:43 -924641536/pull(256653)#4: DASL: Model from XML = 
Dec 06 14:50:43 -924641536/pull(256653)#4: RESULT: Could not locate model name for device
Dec 06 14:50:43 -924641536/pull(256653)#4: DASL: stdGetModel: "" in #0


And

Dec 06 16:16:18 -325167360/pull(256679)#1: Error in validating Oid: RTSNMPVar::getDASLValueFromVb: Can't read OID(1.3.6.1.2.1.25.6.3.1.2.1) (syntax:129)   NOSUCHOBJECT/NOSUCHINSTANCE/ENDOFMIBVIEW (TSNOTE) (RTSNMPVar.cpp#640)

Environment

VMware Smart Assurance - NCM

Resolution

To resolve the issue do the following:
  1. Log on to Device Server or Combination Server as root. 
  2. Copy the hwfuncs.inc file from the $VOYENCE_HOME/package/juniper/ directory to the $VOYENCE_HOME/custompackage/juniper/ directory. 
  3. Check and make sure the file ownership and permissions are the same of root/voyence and 440
  4. Edit the $VOYENCE_HOME/custompackage/juniper/hwfuncs.inc file
  5. Go down to the getOsVersion() function which starts on or about line 237
  6. Replace the following code
                                else{
                                       retVal = sysDescr;
                                 }

with 

                                 else {
                                         var<regex> basenameRegex = "JUNOS ([a-zA-Z0-9\\.-]+)*";
                                         basenameRegex = sysDescr;
                                         if (basenameRegex.match)
                                         { retVal = basenameRegex[1]; }
                                         }
  1. Save and exit the hwfuncs.inc file
  2. Restart services by running "service voyence restart"
  3. Execute Pull system properties on the device.