|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.management.config.xml.BaseElement
|
+--com.adventnet.management.config.xml.Device
|
+--com.adventnet.management.config.snmp.SnmpDevice
This class holds SNMP Specific properties like community, version .. for configuring SNMP Devices.
| Fields inherited from class com.adventnet.management.config.xml.BaseElement |
element, isServer |
| Constructor Summary | |
SnmpDevice()
Creates a SnmpDevice with localhost as hostname and 161 as snmp port. |
|
SnmpDevice(Device device)
Constructs a SnmpDevice from Device's Element. |
|
SnmpDevice(java.lang.String host,
java.lang.String port)
Constructor to create a SnmpDevice with host and port as parameters. |
|
SnmpDevice(java.lang.String host,
java.lang.String port,
java.lang.String community)
Constructor to create a SnmpDevice with host,port and community as parameters. |
|
SnmpDevice(java.lang.String host,
java.lang.String port,
java.lang.String community,
java.lang.String version)
Constructor to create an SnmpDevice with host,port, community and version as parameters. |
|
SnmpDevice(java.lang.String host,
java.lang.String port,
java.lang.String community,
java.lang.String version,
int retries,
int timeout)
Constructor to create a SnmpDevice with host, port, community ,version , retries and timeout as parameters. |
|
| Method Summary | |
java.lang.String |
getAuthPassword()
Returns the authpassword as string in v3 requests. |
java.lang.String |
getAuthProtocol()
Returns the auth protocol as string in v3 requests. |
java.lang.String |
getCommunity()
Returns the community as string. |
java.lang.String |
getContextID()
Returns the contextid. |
java.lang.String |
getContextName()
Returns the context name. |
java.lang.String |
getMaxRepetitions()
Returns the max-repetitions for get bulk operation as string. |
java.lang.String |
getNonRepeaters()
Get the non-repeaters for get bulk operation as string. |
java.lang.String |
getPrivPassword()
Returns the privpassword as string in v3 requests. |
java.lang.String |
getReadCommunity()
Returns the readCommunity |
java.lang.String |
getUserName()
Returns the principal on whose behalf SNMPv3 requests are made. |
java.lang.String |
getVersion()
Returns the Snmp Version. |
void |
setAuthPassword(java.lang.String apw)
Sets the authpassword as string in v3 requests. |
void |
setAuthProtocol(java.lang.String ap)
Sets the auth protocol as string in v3 requests. |
void |
setCommunity(java.lang.String community)
Sets the community as string. |
void |
setContextID(java.lang.String cid)
Sets the contextid. |
void |
setContextName(java.lang.String contextname)
Sets the context name. |
void |
setMaxRepetitions(java.lang.String mr)
Sets the max-repetitions for get bulk operation as string. |
void |
setNonRepeaters(java.lang.String nr)
Sets the non-repeaters for get bulk operation as string. |
void |
setPrivPassword(java.lang.String ppw)
Sets the privpasswd as string in v3 requests. |
void |
setReadCommunity(java.lang.String rCommunity)
Sets the readCommunity |
void |
setUserName(java.lang.String username)
Sets the principal on whose behalf SNMPv3 requests are to be made. |
void |
setVersion(java.lang.String version)
Sets the Snmp version. |
| Methods inherited from class com.adventnet.management.config.xml.Device |
getDeviceName, getMOName, getPort, getRetries, getTimeout, setMOName, setRetries, setTimeout |
| Methods inherited from class com.adventnet.management.config.xml.BaseElement |
addSubTag, getAttribute, getElement, getProperties, getSubTagsByName, hasAttribute, removeSubTagsByName, setAttribute, setProperties, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SnmpDevice()
public SnmpDevice(Device device)
public SnmpDevice(java.lang.String host,
java.lang.String port)
host - name of the device where the SNMP configuration has to be done.port - port where SNMP Agent is running.
public SnmpDevice(java.lang.String host,
java.lang.String port,
java.lang.String community)
host - name of the device where the SNMP configuration has to be done.port - port where SNMP Agent is running.community - name of the community for SET and GET operations.
public SnmpDevice(java.lang.String host,
java.lang.String port,
java.lang.String community,
java.lang.String version)
host - name of the device where the SNMP configuration has to be done.port - port where SNMP Agent is running.community - name of the community for SET and GET Operationsversion - version of the SNMP Protocol.SnmpAttributeConstants
public SnmpDevice(java.lang.String host,
java.lang.String port,
java.lang.String community,
java.lang.String version,
int retries,
int timeout)
host - name of the device where the SNMP configuration has to be done.port - port where SNMP Agent is running.community - name of the community for SET and GET operations.version - version of the SNMP Protocol.retries - number of retries to be carried out by ConfigServer if configuration fails for this device.timeout - timeout in milliseconds.SnmpAttributeConstants| Method Detail |
public java.lang.String getVersion()
SnmpAttributeConstantspublic void setVersion(java.lang.String version)
version - the version of the SNMP Protocol.SnmpAttributeConstantspublic void setCommunity(java.lang.String community)
community - name of the community for the particular agent for doing SNMP SET and GET operations.public java.lang.String getCommunity()
public void setUserName(java.lang.String username)
name - the principal on whose behalf, SNMPv3 requests
are to be sent.public java.lang.String getUserName()
public void setContextName(java.lang.String contextname)
name - the contextName to be sent .public java.lang.String getContextName()
public void setContextID(java.lang.String cid)
cid - the context namepublic java.lang.String getContextID()
public void setMaxRepetitions(java.lang.String mr)
mr - the max-repetitions value for v2c and v3 requests.public java.lang.String getMaxRepetitions()
public void setNonRepeaters(java.lang.String nr)
nr - the non-repeaters value for v2c and v3 requests.public java.lang.String getNonRepeaters()
public void setAuthProtocol(java.lang.String ap)
ap - the value may be "NOAUTH" or "SHA" or "MD5"public java.lang.String getAuthProtocol()
public void setAuthPassword(java.lang.String apw)
apw - the auth passwordpublic java.lang.String getAuthPassword()
public void setPrivPassword(java.lang.String ppw)
ppw - the priv passwordpublic java.lang.String getPrivPassword()
public void setReadCommunity(java.lang.String rCommunity)
public java.lang.String getReadCommunity()
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||