1 $ monmaptool --create --add a 10.10.10.10:1234 /tmp/test.monmap.1234
2 monmaptool: monmap file /tmp/test.monmap.1234
3 monmaptool: generated fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
4 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
6 $ monmaptool --feature-list --feature-list plain --feature-list parseable /tmp/test.monmap.1234
7 monmaptool: monmap file /tmp/test.monmap.1234
14 supported: [kraken(1),luminous(2)]
15 persistent: [kraken(1),luminous(2)]
22 supported: [kraken(1),luminous(2)]
23 persistent: [kraken(1),luminous(2)]
24 monmap:persistent:[none]
25 monmap:optional:[none]
26 monmap:required:[none]
27 available:supported:[kraken(1),luminous(2)]
28 available:persistent:[kraken(1),luminous(2)]
30 $ monmaptool --feature-set foo /tmp/test.monmap.1234
31 unknown features name 'foo' or unable to parse value: Expected option value to be integer, got 'foo'
32 usage: [--print] [--create [--clobber][--fsid uuid]]
33 [--generate] [--set-initial-members]
34 [--add name 1.2.3.4:567] [--rm name]
35 [--feature-list [plain|parseable]]
36 [--feature-set <value> [--optional|--persistent]]
37 [--feature-unset <value> [--optional|--persistent]] <mapfilename>
40 $ monmaptool --feature-set kraken --feature-set 16 --optional --feature-set 32 --persistent /tmp/test.monmap.1234
41 monmaptool: monmap file /tmp/test.monmap.1234
42 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
44 $ monmaptool --feature-list /tmp/test.monmap.1234
45 monmaptool: monmap file /tmp/test.monmap.1234
47 persistent: [kraken(1),unknown(32)]
48 optional: [unknown(16)]
49 required: [kraken(1),unknown(16),unknown(32)]
52 supported: [kraken(1),luminous(2)]
53 persistent: [kraken(1),luminous(2)]
55 $ monmaptool --feature-unset 32 --optional --feature-list /tmp/test.monmap.1234
56 monmaptool: monmap file /tmp/test.monmap.1234
58 persistent: [kraken(1),unknown(32)]
59 optional: [unknown(16)]
60 required: [kraken(1),unknown(16),unknown(32)]
63 supported: [kraken(1),luminous(2)]
64 persistent: [kraken(1),luminous(2)]
65 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
67 $ monmaptool --feature-unset 32 --persistent --feature-unset 16 --optional --feature-list /tmp/test.monmap.1234
68 monmaptool: monmap file /tmp/test.monmap.1234
70 persistent: [kraken(1)]
75 supported: [kraken(1),luminous(2)]
76 persistent: [kraken(1),luminous(2)]
77 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
79 $ monmaptool --feature-unset kraken --feature-list /tmp/test.monmap.1234
80 monmaptool: monmap file /tmp/test.monmap.1234
87 supported: [kraken(1),luminous(2)]
88 persistent: [kraken(1),luminous(2)]
89 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
91 $ rm /tmp/test.monmap.1234