Hello Frank,
I my MIB file I have one module and it has to have OID, right? It is here:
PEN-sts-MIB MODULE-IDENTITY
LAST-UPDATED “202011241541Z” – Nov 24, 2020, 3:41:00 PM
ORGANIZATION “PEN International Corp.”
CONTACT-INFO
"Email: support@pen.com "
DESCRIPTION
"PEN International Corp. Management Information MIB.
Copyright November 2020 PEN International Corp."
REVISION "202011241541Z" -- Nov 24, 2020, 3:41:00 PM
DESCRIPTION
"Initial version."
– 1.3.6.1.4.1.PEN.1.1.3 – ::= { PENModules 3 }
Then the AgenPro generate class for the modules and init its leafs:
pen_sts_mib::pen_sts_mib():
MibGroup(“1.3.6.1.4.1.50562”, “pen_sts_mib”)
{
//–AgentGen BEGIN=pen_sts_mib::pen_sts_mib
//–AgentGen END
add(new pen_sts_mib_stsCfgDeviceCode());
add(new pen_sts_mib_stsIdentSerialNumber());
add(new pen_sts_mib_stsIdentSocomecRef());
add(new pen_sts_mib_stsIdentUserDevRef());
add(new pen_sts_mib_stsIdentUserDevLoc());
add(new pen_sts_mib_stsStatysStatus());
//–AgentGen BEGIN=pen_sts_mib::pen_sts_mib:post
//–AgentGen END
}
As you can see the MibGroup is generated with 1.3.6.1.4.1.PEN.
In the code in the class constructor I replaced 1.3.6.1.4.1.PEN with 1.3.6.1.4.1.PEN.1.1.3.
If there is no this fix when I try to GET an OID from this module it says “noSuchObject”
Regards,
Safet