Juniper Device Fails to Pull SystemProperties
search cancel

Juniper Device Fails to Pull SystemProperties

book

Article ID: 330912

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

Symptoms:


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

<Date & Time> Executing function "Juniper Router::getSystemProperties"[00m...
<Date & Time>  -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
<Date & Time>  -924641536/pull(256653)#4: DASL: Looking for 1.1.1.2.21 in XML file Juniper/JuniperModels.xml
<Date & Time>  -924641536/pull(256653)#1: Using Custom Data File /opt/smarts-ncm/custompackage/pkgxml/Juniper/JuniperModels.xml
<Date & Time>  -924641536/pull(256653)#4: RunTimeContext::getFileData /opt/smarts-ncm/custompackage/pkgxml/Juniper/JuniperModels.xml Fri <Date & Time>  2017 4804 bytes
<Date & Time>  -924641536/pull(256653)#4: RESULT: Unable to determine model for Oid '1.1.1.2.21'
<Date & Time>  -924641536/pull(256653)#4: DASL: Model from XML = 
<Date & Time>  -924641536/pull(256653)#4: RESULT: Could not locate model name for device
<Date & Time>  -924641536/pull(256653)#4: DASL: stdGetModel: "" in #0


And

<Date & Time>  -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

All supported NCM versions

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.