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)
All supported NCM versions
To resolve the issue do the following:
else{
retVal = sysDescr;
}
with
else {
var<regex> basenameRegex = "JUNOS ([a-zA-Z0-9\\.-]+)*";
basenameRegex = sysDescr;
if (basenameRegex.match)
{ retVal = basenameRegex[1]; }
}
.