Interface SNMPManagementMBean
-
public interface SNMPManagementMBeanThe
SNMPManagementMBeaninterface provides methods to interact with the global configuration of Rhino’s SNMP agent.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMBEAN_NAMEThe name of this MBean, equal to the string "SNMP".static StringOBJECT_NAMEThe JMX Object Name of this MBean.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddNotificationTarget(String version, String address)Adds a notification target.voidclearCounterMapping(String parameterSetTypeName, String counterName)Deprecated.voidclearNodeConfigs()Clears saved SNMP address/port bindings for all nodes (including nodes which are not currently part of the cluster).voidclearNodeConfigs(short[] nodes)Clears saved SNMP address/port bindings for the specified nodes.voidclearOIDMapping(String parameterSetTypeName)Deprecated.UseSNMPParameterSetTypeMBean.clearOIDMapping()instead.TabularDatagetAgentState()Returns the current active state of the SNMP agent on each Rhino node.StringgetCommunity()Returns the SNMP community name.StringgetContact()Returns the SNMPv2-MIB sysContact field value.intgetCounterMapping(String parameterSetTypeName, String counterName)Deprecated.UseSNMPParameterSetTypeMBean.getCounterMapping(String)instead.TabularDatagetCounterMappings()Deprecated.intgetDefaultHighPort()Returns the upper bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.intgetDefaultLowPort()Returns the lower bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.StringgetDefaultSubnet()Returns the default subnet the SNMP agent will use to find an address to bind to (if a node doesn’t have saved address binding information).StringgetDescription()Returns the SNMPv2-MIB sysDescr field value.String[]getEnabledProtocolVersions()Returns a string array containing the currently enabled SNMP protocol versions.intgetEngineBoots()Returns the V3 EngineBoots count.Map<Integer,String>getEngineIDs()Returns a map of node IDs to local engine IDs.intgetEngineTime()Returns the V3 EngineTime.booleangetLegacyOIDsEnabled()Returns true if legacy OID registration behaviour is enabled.StringgetLocation()Returns the SNMPv2-MIB sysLocation field value.TabularDatagetMIBs()Returns MIB definitions for all parameter set types and notification types that currently exist.StringgetName()Returns the SNMPv2-MIB sysName field value.short[]getNodeConfigIDs()Returns a list of all nodes which have saved SNMP data.TabularDatagetNodeConfigs()Returns the current saved state of the SNMP agent for each Rhino node.StringgetNotificationAddress()Deprecated.booleangetNotificationConfig(String type)Returns true if an SNMP notification will be sent for the specified notification type.TabularDatagetNotificationConfigs()Returns the current notification configs as TabularData.intgetNotificationPort()Deprecated.String[]getNotificationTargets()Returns an array containing currently configured notification targets.String[]getNotificationTypeNames()Returns an array of strings containing the type names which can be used with setNotificationFilter and getNotificationFilter.StringgetOIDMapping(String parameterSetTypeName)Deprecated.UseSNMPParameterSetTypeMBean.getOIDMapping()instead.TabularDatagetOIDMappings()Deprecated.ObjectNamegetSNMPNodeMBean(short nodeID)Returns the ObjectName of the JMX object providing theSNMPNodeMBeanmanagement interface for the specified node.booleangetStaticOIDsEnabled()Returns true if static OID registration behaviour is enabled.StringgetUserEngineID()Returns the user specified portion of the EngineID.Stringgetv3AuthenticationKey()Returns the SNMP v3 authentication key.Stringgetv3AuthenticationProtocol()Returns the SNMP v3 authentication protocol.String[]getv3AuthenticationProtocols()Returns the valid SNMP v3 authentication protocols.Stringgetv3PrivacyKey()Returns the SNMP v3 privacy key.Stringgetv3PrivacyProtocol()Returns the SNMP v3 privacy protocol.String[]getv3PrivacyProtocols()Returns the valid SNMP v3 privacy protocols.Stringgetv3Username()Returns the SNMP v3 username.booleanisAddressBindingsSaved()Returns whether the initial address bindings are preserved over node restart.booleanisEnabled()Returns true if the Rhino SNMP agent is currently configured to be enabled.booleanisLoopbackAddressesAllowed()Returns whether loopback addresses (e.g. 127.0.0.1) will be considered when the SNMP agent looks for local interfaces to bind to.booleanisNotificationsEnabled()Returns true if the Rhino SNMP agent is configured to send SNMP notifications.booleanisPortBindingsSaved()Returns whether the initial port bindings are preserved over node restart.voidremoveNotificationTarget(String target)Removes a notification target.voidsetAddressBindingsSaved(boolean saved)Sets whether the initial address bindings are preserved over node restart.voidsetCommunity(String communityName)Sets the SNMP community name.voidsetContact(String contact)Sets the contact string for the SNMP agent.voidsetCounterMapping(String parameterSetTypeName, String counterName, int index)Deprecated.voidsetDefaultHighPort(int port)Sets the upper bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.voidsetDefaultLowPort(int port)Sets the lower bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.voidsetDefaultPortRange(int lowPort, int highPort)Sets the default port range the SNMP agent will use to bind to for nodes which have not been explicitly configured.voidsetDefaultSubnet(String subnet)Sets the default subnet the SNMP agent will use to find local addresses to bind to when a node has not been explicitly configured to use an address.voidsetDescription(String description)Sets the description string for the SNMP agent.voidsetDetails(String name, String description, String contact, String location)Sets the name, description, contact, and location strings for the SNMP agent.voidsetEnabled(boolean enabled)Sets the desired state of the SNMP agent.voidsetLegacyOIDsEnabled(boolean enabled)Enable or disable legacy OID registration behaviour.voidsetLocation(String location)Sets the location string for the SNMP agent.voidsetLoopbackAddressesAllowed(boolean allowed)Sets whether loopback addresses (e.g. 127.0.0.1) will be considered when the SNMP agent looks for local interfaces to bind to.voidsetName(String name)Sets the name string for the SNMP agent.voidsetNotificationAddress(String address)Deprecated.voidsetNotificationConfig(String type, boolean enabled)Sets whether SNMP notifications will be sent for the specified notification type.voidsetNotificationPort(int port)Deprecated.voidsetNotificationsEnabled(boolean enabled)Sets whether notifications are delivered by the SNMP agent.voidsetNotificationTarget(String address, int port)Deprecated.voidsetOIDMapping(String parameterSetTypeName, String OID)Deprecated.UseSNMPParameterSetTypeMBean.setOIDMapping(String)instead.voidsetPortBindingsSaved(boolean saved)Sets whether the initial port bindings are preserved over node restart.voidsetProtocolVersionsEnabled(String[] versions, boolean enabled)Enables or disables the specified SNMP protocol versions.voidsetStaticOIDsEnabled(boolean enabled)Enable or disable static OID registration behaviour.voidsetUserEngineID(String octetString)Sets the user specifiable portion of the EngineID used on each node.voidsetv3AuthenticationDetails(String protocol, String key)Sets the SNMP v3 authentication protocol.voidsetv3AuthenticationKey(String value)Sets the SNMP v3 authentication key.voidsetv3PrivacyDetails(String protocol, String key)Sets the SNMP v3 privacy protocol.voidsetv3PrivacyKey(String value)Sets the SNMP v3 privacy key.voidsetv3UserDetails(String name, String authenticationProtocol, String authenticationKey, String privacyProtocol, String privacyKey)Sets the SNMP v3 user details.voidsetv3Username(String username)Sets the SNMP v3 username.
-
-
-
Field Detail
-
MBEAN_NAME
static final String MBEAN_NAME
The name of this MBean, equal to the string "SNMP".
- See Also:
- Constant Field Values
-
OBJECT_NAME
static final String OBJECT_NAME
The JMX Object Name of this MBean.
-
-
Method Detail
-
isEnabled
boolean isEnabled() throws ConfigurationExceptionReturns true if the Rhino SNMP agent is currently configured to be enabled. This may differ from the actual state of the agent on a particular node and should thus be considered the 'desired' state of the SNMP agent.
- Throws:
ConfigurationException- if the SNMP configuration could not be read.
-
setEnabled
void setEnabled(boolean enabled) throws ConfigurationException, IllegalStateExceptionSets the desired state of the SNMP agent.
- Parameters:
enabled- if true, sets the desired state of the SNMP agent to enabled.- Throws:
ConfigurationException- if the SNMP configuration could not be read or updated.IllegalStateException- if the SNMP agent is in the wrong state for this operation.
-
getLegacyOIDsEnabled
boolean getLegacyOIDsEnabled() throws ConfigurationExceptionReturns true if legacy OID registration behaviour is enabled. This is the behaviour as implemented by Rhino 2.x and 3.0 which included support for both static and dynamic OID assignment for counters and parameter set types.
- Returns:
trueif legacy OID registration behaviour is enabled,falseif disabled.- Throws:
ConfigurationException- if the SNMP configuration could not be read.- Since:
- Rhino 3.1
-
setLegacyOIDsEnabled
void setLegacyOIDsEnabled(boolean enabled) throws ConfigurationExceptionEnable or disable legacy OID registration behaviour. This is the behaviour as implemented by Rhino 2.x and 3.0 which included support for both static and dynamic OID assignment for counters and parameter set types.
- Parameters:
enabled-trueif legacy OID registration behaviour should be enabled,falseif it should be disabled.- Throws:
ConfigurationException- if the SNMP configuration could not be updated.- Since:
- Rhino 3.1
-
getStaticOIDsEnabled
boolean getStaticOIDsEnabled() throws ConfigurationExceptionReturns true if static OID registration behaviour is enabled. This is the registration model introduced in Rhino 3.1 which only supports static OID mappings.
- Returns:
trueif static OID registration behaviour is enabled,falseif disabled.- Throws:
ConfigurationException- if the SNMP configuration could not be read.- Since:
- Rhino 3.1
-
setStaticOIDsEnabled
void setStaticOIDsEnabled(boolean enabled) throws ConfigurationExceptionEnable or disable static OID registration behaviour. This is the registration model introduced in Rhino 3.1 which only supports static OID mappings.
- Parameters:
enabled-trueif static OID registration behaviour should be enabled,falseif it should be disabled.- Throws:
ConfigurationException- if the SNMP configuration could not be updated.- Since:
- Rhino 3.1
-
getDefaultSubnet
String getDefaultSubnet() throws ConfigurationException, IllegalArgumentException
Returns the default subnet the SNMP agent will use to find an address to bind to (if a node doesn’t have saved address binding information).
-
setDefaultSubnet
void setDefaultSubnet(String subnet) throws ConfigurationException, IllegalArgumentException
Sets the default subnet the SNMP agent will use to find local addresses to bind to when a node has not been explicitly configured to use an address.
- Parameters:
subnet-- Throws:
ConfigurationExceptionIllegalArgumentException
-
setDefaultPortRange
void setDefaultPortRange(int lowPort, int highPort) throws ConfigurationException, IllegalArgumentExceptionSets the default port range the SNMP agent will use to bind to for nodes which have not been explicitly configured. This can be explicitly overridden on a per-node basis. This method is provided as an atomic equivalent of calling
setDefaultLowPort()andsetDefaultHighPort()- Parameters:
lowPort-highPort-- Throws:
ConfigurationExceptionIllegalArgumentException
-
setDefaultLowPort
void setDefaultLowPort(int port) throws ConfigurationException, IllegalArgumentExceptionSets the lower bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.
- Parameters:
port-- Throws:
ConfigurationExceptionIllegalArgumentException
-
getDefaultLowPort
int getDefaultLowPort() throws ConfigurationException, IllegalArgumentExceptionReturns the lower bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.
-
setDefaultHighPort
void setDefaultHighPort(int port) throws ConfigurationException, IllegalArgumentExceptionSets the upper bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.
- Parameters:
port-- Throws:
ConfigurationExceptionIllegalArgumentException
-
getDefaultHighPort
int getDefaultHighPort() throws ConfigurationExceptionReturns the upper bound of the port range the SNMP agent uses for port binding when a node has not been explicitly configured to use a particular port.
- Throws:
ConfigurationException
-
getNotificationTargets
String[] getNotificationTargets() throws ConfigurationException
Returns an array containing currently configured notification targets.
- Throws:
ConfigurationException
-
addNotificationTarget
void addNotificationTarget(String version, String address) throws ConfigurationException, IllegalArgumentException
Adds a notification target.
- Parameters:
version- May be v2c | v3address- Must be in the form udp:address/port- Throws:
ConfigurationExceptionIllegalArgumentException
-
removeNotificationTarget
void removeNotificationTarget(String target) throws ConfigurationException, IllegalArgumentException
Removes a notification target. Valid arguments can be determined by calling the getNotificationTargets() method.
- Parameters:
target-- Throws:
ConfigurationExceptionIllegalArgumentException
-
setNotificationsEnabled
void setNotificationsEnabled(boolean enabled) throws ConfigurationException, IllegalStateExceptionSets whether notifications are delivered by the SNMP agent.
- Parameters:
enabled-- Throws:
ConfigurationExceptionIllegalStateException
-
isNotificationsEnabled
boolean isNotificationsEnabled() throws ConfigurationExceptionReturns true if the Rhino SNMP agent is configured to send SNMP notifications.
- Throws:
ConfigurationException- if the SNMP configuration could not be read.
-
setLoopbackAddressesAllowed
void setLoopbackAddressesAllowed(boolean allowed) throws ConfigurationExceptionSets whether loopback addresses (e.g. 127.0.0.1) will be considered when the SNMP agent looks for local interfaces to bind to. If there are only loopback addresses available, this setting will be ignored.
- Parameters:
allowed-- Throws:
ConfigurationException
-
isLoopbackAddressesAllowed
boolean isLoopbackAddressesAllowed() throws ConfigurationExceptionReturns whether loopback addresses (e.g. 127.0.0.1) will be considered when the SNMP agent looks for local interfaces to bind to. If there are only loopback addresses available, this setting will be ignored.
- Throws:
ConfigurationException
-
setAddressBindingsSaved
void setAddressBindingsSaved(boolean saved) throws ConfigurationExceptionSets whether the initial address bindings are preserved over node restart.
- Parameters:
saved-- Throws:
ConfigurationException
-
isAddressBindingsSaved
boolean isAddressBindingsSaved() throws ConfigurationExceptionReturns whether the initial address bindings are preserved over node restart.
- Throws:
ConfigurationException
-
setPortBindingsSaved
void setPortBindingsSaved(boolean saved) throws ConfigurationExceptionSets whether the initial port bindings are preserved over node restart.
- Parameters:
saved-- Throws:
ConfigurationException
-
isPortBindingsSaved
boolean isPortBindingsSaved() throws ConfigurationExceptionReturns whether the initial port bindings are preserved over node restart.
- Throws:
ConfigurationException
-
setDetails
void setDetails(String name, String description, String contact, String location) throws ConfigurationException
Sets the name, description, contact, and location strings for the SNMP agent. These correspond to the SNMPv2-MIB sysName, sysDescr, sysContact, and sysLocation fields. If necessary, system properties can be used in these strings in the form
${property.name}to provide node specific information. The special${node-id}property reference is also available.- Parameters:
name-description-contact-location-- Throws:
ConfigurationException
-
setLocation
void setLocation(String location) throws ConfigurationException
Sets the location string for the SNMP agent. This correspond to the SNMPv2-MIB sysLocation field. If necessary, system properties can be used in this string in the form
${property.name}to provide node specific information. The special${node-id}property reference is also available.- Throws:
ConfigurationException
-
getLocation
String getLocation() throws ConfigurationException
Returns the SNMPv2-MIB sysLocation field value.
- Throws:
ConfigurationException
-
setDescription
void setDescription(String description) throws ConfigurationException
Sets the description string for the SNMP agent. This correspond to the SNMPv2-MIB sysDescr field. If necessary, system properties can be used in this string in the form
${property.name}to provide node specific information. The special${node-id}property reference is also available.- Throws:
ConfigurationException
-
getDescription
String getDescription() throws ConfigurationException
Returns the SNMPv2-MIB sysDescr field value.
- Throws:
ConfigurationException
-
setContact
void setContact(String contact) throws ConfigurationException
Sets the contact string for the SNMP agent. This correspond to the SNMPv2-MIB sysContact field. If necessary, system properties can be used in this string in the form
${property.name}to provide node specific information. The special${node-id}property reference is also available.- Throws:
ConfigurationException
-
getContact
String getContact() throws ConfigurationException
Returns the SNMPv2-MIB sysContact field value.
- Throws:
ConfigurationException
-
setName
void setName(String name) throws ConfigurationException
Sets the name string for the SNMP agent. This correspond to the SNMPv2-MIB sysName field. If necessary, system properties can be used in this string in the form
${property.name}to provide node specific information. The special${node-id}property reference is also available.- Throws:
ConfigurationException
-
getName
String getName() throws ConfigurationException
Returns the SNMPv2-MIB sysName field value.
- Throws:
ConfigurationException
-
getNodeConfigIDs
short[] getNodeConfigIDs() throws ConfigurationExceptionReturns a list of all nodes which have saved SNMP data.
- Throws:
ConfigurationException
-
clearNodeConfigs
void clearNodeConfigs() throws ConfigurationExceptionClears saved SNMP address/port bindings for all nodes (including nodes which are not currently part of the cluster).
- Throws:
ConfigurationException
-
clearNodeConfigs
void clearNodeConfigs(short[] nodes) throws ConfigurationException, IllegalArgumentExceptionClears saved SNMP address/port bindings for the specified nodes.
-
getNodeConfigs
TabularData getNodeConfigs()
Returns the current saved state of the SNMP agent for each Rhino node. The data returned is TabularData with the columns "node" (Integer), "port" (Integer), "addresses" (ArrayType).
node
The node id for which this data is relevant.
port
The port used for the node.
addresses
An ArrayType of Strings representing the list of saved addresses for this node.
-
getSNMPNodeMBean
ObjectName getSNMPNodeMBean(short nodeID) throws ConfigurationException, IllegalArgumentException
Returns the ObjectName of the JMX object providing the
SNMPNodeMBeanmanagement interface for the specified node.
-
getMIBs
TabularData getMIBs()
Returns MIB definitions for all parameter set types and notification types that currently exist. This data is returned as TabularData with columns "is-aggregate" (Boolean), "namespace" (String), "parameter-set-type" (String), "filename" (String), and "mib-content" (String).
is-aggregate
Boolean flag indicating if the row is an aggregate MIB.
namespace
The namespace of the parameter set type. 'Null' if the parameter set type is defined in the global environment or if this mib contains Rhino’s SNMP notifications.
parameter-set-type
The name of the parameter set type, or 'null' if this mib contains Rhino’s SNMP notifications.
filename
The suggested filename for the exported MIB.
mib-content
A text string containing the contents of the MIB.
-
getAgentState
TabularData getAgentState()
Returns the current active state of the SNMP agent on each Rhino node. The data returned is TabularData with the columns "node" (Integer), "running" (Boolean) and "addresses" (Tabular).
node
The node id for which this data is relevant.
running
Is true if the SNMP agent is running on the specified Rhino node.
addresses
A tabular type representing the list of bound addresses for this node. Contains the fields 'host' (String) and 'port' (Integer).
-
getOIDMappings
@Deprecated TabularData getOIDMappings() throws ConfigurationException
Deprecated.Returns the current active parameter set type → OID mappings. The data returned is TabularData with the columns "oid" (String) and "type-name" (String). oid The oid the parameter set type is mapped to. type-name The name of the parameter set type for which this data is relevant. in-use A flag indicating whether this configuration is actively being use.
- Throws:
ConfigurationException
-
setOIDMapping
@Deprecated void setOIDMapping(String parameterSetTypeName, String OID) throws ConfigurationException, IllegalArgumentException
Deprecated.UseSNMPParameterSetTypeMBean.setOIDMapping(String)instead.Maps the parameter set type to the specified OID.
-
clearOIDMapping
@Deprecated void clearOIDMapping(String parameterSetTypeName) throws ConfigurationException, IllegalArgumentException
Deprecated.UseSNMPParameterSetTypeMBean.clearOIDMapping()instead.Clears the OID mapping for the specified parameter set type.
-
getOIDMapping
@Deprecated String getOIDMapping(String parameterSetTypeName) throws ConfigurationException, IllegalArgumentException
Deprecated.UseSNMPParameterSetTypeMBean.getOIDMapping()instead.Returns the OID which the specified Parameter Set Type name is mapped to.
-
getCounterMappings
@Deprecated TabularData getCounterMappings() throws ConfigurationException
Deprecated.Gets the current active counter mappings. The data returned is TabularData with the columns "type-name" (String), "counter-name" (String) and "mapping" (Integer).
type-name
The name of the parameter set type for which this data is relevant.
counter-name
The name of the counter for which this data is relevant.
mapping
The last digit of the OID this type and counter are mapped to.
- Throws:
ConfigurationException
-
setCounterMapping
@Deprecated void setCounterMapping(String parameterSetTypeName, String counterName, int index) throws ConfigurationException, IllegalArgumentException
Deprecated.Maps the specified parameter set type name and counter name to the specified value.
-
clearCounterMapping
@Deprecated void clearCounterMapping(String parameterSetTypeName, String counterName) throws ConfigurationException, IllegalArgumentException
Deprecated.Clears the counter mapping for the specified parameter set type and counter name.
-
getCounterMapping
@Deprecated int getCounterMapping(String parameterSetTypeName, String counterName) throws ConfigurationException, IllegalArgumentException
Deprecated.UseSNMPParameterSetTypeMBean.getCounterMapping(String)instead.Returns the value to which the specified counter from the named parameter set type is mapped to.
-
getNotificationTypeNames
String[] getNotificationTypeNames() throws ConfigurationException
Returns an array of strings containing the type names which can be used with setNotificationFilter and getNotificationFilter.
- Throws:
ConfigurationException
-
setNotificationConfig
void setNotificationConfig(String type, boolean enabled) throws ConfigurationException, IllegalArgumentException
Sets whether SNMP notifications will be sent for the specified notification type. Valid type names can be determined via getSNMPNotificationTypeNames().
- Throws:
IllegalArgumentException- if an invalid type name is specfified.ConfigurationException
-
getNotificationConfig
boolean getNotificationConfig(String type) throws ConfigurationException, IllegalArgumentException
Returns true if an SNMP notification will be sent for the specified notification type. Valid type names can be determined via getSNMPNotificationTypeNames().
- Throws:
IllegalArgumentException- if an invalid type name is specfified.ConfigurationException
-
getNotificationConfigs
TabularData getNotificationConfigs() throws ConfigurationException
Returns the current notification configs as TabularData. The return TabularData has columns "type" (String) and "enabled" (Boolean). type The type of the notification configuration. enabled Whether the notification type will be delivered (true) via SNMP or not (false).
- Throws:
ConfigurationException
-
setProtocolVersionsEnabled
void setProtocolVersionsEnabled(String[] versions, boolean enabled) throws ConfigurationException, IllegalArgumentException
Enables or disables the specified SNMP protocol versions. The 'version' argument may be 'v1', 'v2c', or 'v3'.
-
getEnabledProtocolVersions
String[] getEnabledProtocolVersions() throws ConfigurationException
Returns a string array containing the currently enabled SNMP protocol versions. This array can contain the values 'v1', 'v2c', and 'v3'.
- Throws:
ConfigurationException
-
setCommunity
void setCommunity(String communityName) throws ConfigurationException
Sets the SNMP community name.
- Throws:
ConfigurationException
-
getCommunity
String getCommunity() throws ConfigurationException
Returns the SNMP community name.
- Throws:
ConfigurationException
-
setv3Username
void setv3Username(String username) throws ConfigurationException
Sets the SNMP v3 username.
- Throws:
ConfigurationException
-
getv3Username
String getv3Username() throws ConfigurationException
Returns the SNMP v3 username.
- Throws:
ConfigurationException
-
setv3AuthenticationDetails
void setv3AuthenticationDetails(String protocol, String key) throws ConfigurationException, IllegalArgumentException
Sets the SNMP v3 authentication protocol.
-
getv3AuthenticationProtocol
String getv3AuthenticationProtocol() throws ConfigurationException
Returns the SNMP v3 authentication protocol.
- Throws:
ConfigurationException
-
getv3AuthenticationProtocols
String[] getv3AuthenticationProtocols() throws ConfigurationException
Returns the valid SNMP v3 authentication protocols.
- Throws:
ConfigurationException
-
setv3PrivacyDetails
void setv3PrivacyDetails(String protocol, String key) throws ConfigurationException, IllegalArgumentException
Sets the SNMP v3 privacy protocol.
-
getv3PrivacyProtocol
String getv3PrivacyProtocol() throws ConfigurationException
Returns the SNMP v3 privacy protocol.
- Throws:
ConfigurationException
-
getv3PrivacyProtocols
String[] getv3PrivacyProtocols() throws ConfigurationException
Returns the valid SNMP v3 privacy protocols.
- Throws:
ConfigurationException
-
setv3AuthenticationKey
void setv3AuthenticationKey(String value) throws ConfigurationException
Sets the SNMP v3 authentication key.
- Throws:
ConfigurationException
-
getv3AuthenticationKey
String getv3AuthenticationKey() throws ConfigurationException
Returns the SNMP v3 authentication key.
- Throws:
ConfigurationException
-
setv3PrivacyKey
void setv3PrivacyKey(String value) throws ConfigurationException
Sets the SNMP v3 privacy key.
- Throws:
ConfigurationException
-
getv3PrivacyKey
String getv3PrivacyKey() throws ConfigurationException
Returns the SNMP v3 privacy key.
- Throws:
ConfigurationException
-
getEngineBoots
int getEngineBoots() throws ConfigurationExceptionReturns the V3 EngineBoots count.
- Throws:
ConfigurationException
-
getEngineTime
int getEngineTime() throws ConfigurationExceptionReturns the V3 EngineTime.
- Throws:
ConfigurationException
-
setv3UserDetails
void setv3UserDetails(String name, String authenticationProtocol, String authenticationKey, String privacyProtocol, String privacyKey) throws ConfigurationException, IllegalArgumentException
Sets the SNMP v3 user details.
-
getEngineIDs
Map<Integer,String> getEngineIDs() throws ConfigurationException
Returns a map of node IDs to local engine IDs.
- Throws:
ConfigurationException
-
setUserEngineID
void setUserEngineID(String octetString) throws ConfigurationException
Sets the user specifiable portion of the EngineID used on each node. The argument should be 6 octets in length in the form: 12:34:56:78:9a:bc. The final engine ID is determined by the OpenCloud enterprise ID (first 4 octets), the current node ID (2 octets), and then the 6 octets specified by this method. The default value of the user portion of the EngineID is 00:00:00:00:00:00.
- Throws:
ConfigurationException
-
getUserEngineID
String getUserEngineID() throws ConfigurationException
Returns the user specified portion of the EngineID.
- Throws:
ConfigurationException
-
setNotificationTarget
@Deprecated void setNotificationTarget(String address, int port) throws ConfigurationException, IllegalArgumentException
Deprecated.
-
setNotificationAddress
@Deprecated void setNotificationAddress(String address) throws ConfigurationException, IllegalArgumentException
Deprecated.
-
getNotificationAddress
@Deprecated String getNotificationAddress() throws ConfigurationException
Deprecated.- Throws:
ConfigurationException
-
setNotificationPort
@Deprecated void setNotificationPort(int port) throws ConfigurationException, IllegalArgumentException
Deprecated.
-
getNotificationPort
@Deprecated int getNotificationPort() throws ConfigurationException
Deprecated.- Throws:
ConfigurationException
-
-