Modifier and Type | Class | Description |
---|---|---|
class |
SnmpProxyMIB.SnmpProxyRow |
|
static class |
SnmpProxyMIB.SnmpProxyTypeEnum |
Modifier and Type | Field | Description |
---|---|---|
static int |
colSnmpProxyContextEngineID |
|
static int |
colSnmpProxyContextName |
|
static int |
colSnmpProxyMultipleTargetOut |
|
static int |
colSnmpProxyRowStatus |
|
static int |
colSnmpProxySingleTargetOut |
|
static int |
colSnmpProxyStorageType |
|
static int |
colSnmpProxyTargetParamsIn |
|
static int |
colSnmpProxyType |
|
static int |
idxSnmpProxyContextEngineID |
|
static int |
idxSnmpProxyContextName |
|
static int |
idxSnmpProxyMultipleTargetOut |
|
static int |
idxSnmpProxyRowStatus |
|
static int |
idxSnmpProxySingleTargetOut |
|
static int |
idxSnmpProxyStorageType |
|
static int |
idxSnmpProxyTargetParamsIn |
|
static int |
idxSnmpProxyType |
|
static org.snmp4j.smi.OID |
oidSnmpProxyEntry |
Constructor | Description |
---|---|
SnmpProxyMIB() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addProxyEntry(org.snmp4j.smi.OctetString name,
int type,
org.snmp4j.smi.OctetString contextEngineId,
org.snmp4j.smi.OctetString contextName,
org.snmp4j.smi.OctetString targetParamsIn,
org.snmp4j.smi.OctetString singleTargetOut,
org.snmp4j.smi.OctetString multipleTargetOut,
int storageType) |
Adds a proxy entry to the snmpProxyTable (descriptions taken from
SNMP-PROXY-MIB definition).
|
java.util.List<SnmpProxyMIB.SnmpProxyRow> |
getProxyRows(int proxyType,
org.snmp4j.smi.OctetString contextEngineID,
org.snmp4j.smi.OctetString context) |
|
MOTable |
getSnmpProxyEntry() |
Returns the proxy configuration table defined as "snmpProxyTable".
|
void |
registerMOs(MOServer server,
org.snmp4j.smi.OctetString context) |
Registers the managed objects of this group with the server for the
supplied context.
|
SnmpProxyMIB.SnmpProxyRow |
removeProxyEntry(org.snmp4j.smi.OctetString name) |
Removes the proxy entry with the specified name.
|
void |
unregisterMOs(MOServer server,
org.snmp4j.smi.OctetString context) |
Unregisters the managed objects of this group from the supplied server and
from the supplied context.
|
public static final org.snmp4j.smi.OID oidSnmpProxyEntry
public static final int colSnmpProxyType
public static final int colSnmpProxyContextEngineID
public static final int colSnmpProxyContextName
public static final int colSnmpProxyTargetParamsIn
public static final int colSnmpProxySingleTargetOut
public static final int colSnmpProxyMultipleTargetOut
public static final int colSnmpProxyStorageType
public static final int colSnmpProxyRowStatus
public static final int idxSnmpProxyType
public static final int idxSnmpProxyContextEngineID
public static final int idxSnmpProxyContextName
public static final int idxSnmpProxyTargetParamsIn
public static final int idxSnmpProxySingleTargetOut
public static final int idxSnmpProxyMultipleTargetOut
public static final int idxSnmpProxyStorageType
public static final int idxSnmpProxyRowStatus
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException
MOGroup
registerMOs
in interface MOGroup
server
- the MOServer
where to register the managed objects.context
- the context to use (may be null
if no specific context
is selected).DuplicateRegistrationException
- if a managed object's scope (i.e. lower bound) is already registered
at the server.public void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
MOGroup
unregisterMOs
in interface MOGroup
server
- the MOServer
where to unregister the managed objects.context
- the context to use (may be null
if no specific context
is selected).public MOTable getSnmpProxyEntry()
public boolean addProxyEntry(org.snmp4j.smi.OctetString name, int type, org.snmp4j.smi.OctetString contextEngineId, org.snmp4j.smi.OctetString contextName, org.snmp4j.smi.OctetString targetParamsIn, org.snmp4j.smi.OctetString singleTargetOut, org.snmp4j.smi.OctetString multipleTargetOut, int storageType)
name
- The locally arbitrary, but unique identifier associated
with this snmpProxyEntry.type
- The type of message that may be forwarded using
the translation parameters defined by this entry.
See SnmpProxyMIB.SnmpProxyTypeEnum
for possible values.contextEngineId
- The contextEngineID contained in messages that
may be forwarded using the translation parameters
defined by this entry.contextName
- The contextName contained in messages that may be
forwarded using the translation parameters defined
by this entry.
This object is optional, and if not supported, the
contextName contained in a message is ignored when
selecting an entry in the snmpProxyTable.targetParamsIn
- This object selects an entry in the snmpTargetParamsTable.
The selected entry is used to determine which row of the
snmpProxyTable to use for forwarding received messages.singleTargetOut
- This object selects a management target defined in the
snmpTargetAddrTable (in the SNMP-TARGET-MIB). The
selected target is defined by an entry in the
snmpTargetAddrTable whose index value (snmpTargetAddrName)
is equal to this object.
This object is only used when selection of a single
target is required (i.e. when forwarding an incoming
read or write request).multipleTargetOut
- This object selects a set of management targets defined
in the snmpTargetAddrTable (in the SNMP-TARGET-MIB).
This object is only used when selection of multiple
targets is required (i.e. when forwarding an incoming
notification).storageType
- The storage type of this conceptual row.
Conceptual rows having the value 'permanent' need not
allow write-access to any columnar objects in the row. See
StorageType
for possible values.true
if the row could be added, false
otherwise.public SnmpProxyMIB.SnmpProxyRow removeProxyEntry(org.snmp4j.smi.OctetString name)
name
- the name of the proxy entry to remove from the proxy configuration.null
if no such row exists.public java.util.List<SnmpProxyMIB.SnmpProxyRow> getProxyRows(int proxyType, org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString context)
Copyright © 2018 SNMP4J.org. All rights reserved.