To clear or modify the saved per-node SNMP configuration, use the following rhino-console commands.

Note
Viewing the saved per-node state

Saved per-node state displays in the output of the snmpstatus command. For example:

Saved per-node configuration
=============================
101 <default>:16100

Here node 101 has a saved address/port binding of <default>:16100. This <default> is a special case, which means to use the defaults as per the options described earlier, rather than using a fixed address. The port however here remains static for node 101.

clearsnmpsavedconfig

Command

clearsnmpsavedconfig <node1,node1,...|all>
  Description
    Clears saved per-node SNMP configuration for the specified nodes (or all nodes).

Example

To clear the saved configuration for node 101

$ ./rhino-console clearsnmpsavedconfig 101
Per-node SNMP configurations cleared for nodes: 101

setsnmpsavedconfig

Command

setsnmpsavedconfig <node-id> <addresses|default> <port|default>
  Description
    Sets the saved address and port configuration used by a node.
Warning This will overwrite any existing configuration for the specified node.
Tip This command can also be used to create saved configuration for nodes that are not currently cluster members. The special address/port <default> may be specified, to use on restart.

Example

To set SNMP agent’s address and port for node-101:

$ ./rhino-console setsnmpsavedconfig 101 localhost 16100
SNMP configuration for node 101 updated.
Previous page Next page
Rhino Version 2.6.0