Example of mmpmon nlist add request

This topic is an example of the nlist add request to add node names to a list of nodes for mmpmon processing and the output that displays.

A two- node cluster has nodes node1 (199.18.1.2), a non-quorum node, and node2 (199.18.1.5), a quorum node. A remote cluster has node node3 (199.18.1.8). The mmpmon command is run on node1.

Assume that commandFile contains this line:
nlist add n2 199.18.1.2
and this command is issued:
mmpmon -p -i commandFile

Note in this example that an alias name n2 was used for node2, and an IP address was used for node1. Notice how the values for _ni_ and _nx_ differ in these cases.

The output is similar to this:
_nlist_ _n_ 199.18.1.2 _nn_ node1 _req_ add _rc_ 0 _t_ 1121955894 _tu_ 261881 _c_ 2
_nlist_ _n_ 199.18.1.2 _nn_ node1 _req_ add _rc_ 0 _t_ 1121955894 _tu_ 261881 _ni_ n2 _nx_
node2 _nxip_ 199.18.1.5
_nlist_ _n_ 199.18.1.2 _nn_ node1 _req_ add _rc_ 0 _t_ 1121955894 _tu_ 261881 _ni_
199.18.1.2 _nx_ node1 _nxip_ 199.18.1.2
_nlist_ _n_ 199.18.1.2 _nn_ node1 _req_ add _rc_ 0 _t_ 1121955894 _tu_ 261881 _did_ 2 _nlc_
2
If the -p flag is not specified, the output is similar to:
mmpmon node 199.18.1.2 name node1 nlist add
initial status 0
name count 2
timestamp 1121955879/468858
node name n2, OK (name used: node2, IP address 199.18.1.5)
node name 199.18.1.2, OK (name used: node1, IP address 199.18.1.2)
final status 0
node names processed 2
current node list count 2

The requests nlist add and nlist sub behave in a similar way and use the same keyword and response format.

These requests are rejected if issued while quorum has been lost.