I am pulling a fair number of oid’s on a plugin and trying to see if there is a way to specify the type() when it pulls particular OIDs. something like this below because they all just come across as strings even though they don’t originate as strings in the devices. usually this isn’t a problem but one OID in particular is hex and just is getting an unusable value. Partial snippet below.
SNMPTree(
base = ".1.3.6.1.4.1.2636.3.60.1.1.1.1",
oids = [
OIDEnd(),
'1', # jnxDomCurrentAlarms
HEX('4'), # jnxDomCurrentWarnings
INT('5'), # jnxDomCurrentRxLaserPower
'6', # jnxDomCurrentTxLaserBiasCurrent
'7', # jnxDomCurrentTxLaserOutputPower
],
)