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

Argument

<nodeID|all>

What it does

Clears the saved configuration for:

  • an individual node (for example, clearsnmpsavedconfig 101

  • or the entire cluster (clearsnmpsavedconfig all).

setsnmpsavedconfig

Arguments

<node-id> <addresses|default> <port|default>

What it does

Sets the interface addresses (comma-separated) and port binding that the SNMP agent uses for the specified 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.5.0