Lists cluster topology information.
Lists internal nodes only (switches/racks/etc) and not leaf nodes (server nodes).
maprcli node topo
[ -cluster <cluster> ]
[ -path <path> ]
| Request Type | GET |
| Request URL | |
| Parameter | Description |
|---|---|
cluster |
The cluster on which to run the command. |
path |
The path on which to list node topology. |
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. |
# maprcli node topo
path
/
/data
/data/default-rack
/default-rack # curl -k -X GET 'https://abc.sj.us:8443/rest/node/topo' --user mapr:mapr
{"timestamp":1529382835319,"timeofday":"2018-06-18 09:33:55.319 GMT-0700 PM","status":"OK","total":4,"data":[{"path":"/"},{"path":"/data"},{"path":"/data/default-rack"},{"path":"/default-rack"}]}