node topo
Lists cluster topology information.
Lists internal nodes only (switches/racks/etc) and not leaf nodes (server nodes).
Syntax
- CLI
-
maprcli node topo [ -cluster <cluster> ] [ -path <path> ]
- REST
-
http[s]://<host>:<port>/rest/node/topo?<parameters>
Parameters
Parameter |
Description |
---|---|
cluster |
The cluster on which to run the command. |
path |
The path on which to list node topology. |
Output
Node topology information.
Sample output
{
"timestamp":1433545849048,
"timeofday":"2015-06-05 11:10:49.048 GMT+0000",
"status":"OK",
"total":4,
"data":[
{
"path":"/"
},
{
"path":"/data"
},
{
"path":"/data/default-rack"
},
{
"path":"/default-rack"
}
]
}
Output Fields
Field |
Description |
---|---|
path |
The physical topology path to the node. |
Examples
- CLI
maprcli node topo
- REST
- https://10.10.82.23:8443/rest/node/topo