IPWorks SNMP 2020 Java Edition

Questions / Feedback?

ExactMatch Property

Controls the way the OID matching is done (complete or partial).

Syntax

public boolean isExactMatch();
public void setExactMatch(boolean exactMatch);

Default Value

True

Remarks

If ExactMatch is set to True, the SelectNode method will try to find an exact match for the supplied selector. If not found, an exception will be thrown.

If ExactMatch is set to False, the SelectNode method will start from the root (iso) and will go as far as it can, finding the closest match for the requested node.

For instance, in SNMPv2-MIB sysUpTime is defined as "1.3.6.1.2.1.1.3". If ExactMatch is False, calling SelectNode with selector "1.3.6.1.2.1.1.3.0" will populate NodeLabel with "sysUpTime.0" while the same call with ExactMatch set to True will fail since that exact OID is not defined in the MIB.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Java Edition - Version 20.0 [Build 8202]