Skip to content

Instantly share code, notes, and snippets.

@strophy
Created April 2, 2020 05:00
Show Gist options
  • Save strophy/886de72727961402dcf47d1ab1446b50 to your computer and use it in GitHub Desktop.
Save strophy/886de72727961402dcf47d1ab1446b50 to your computer and use it in GitHub Desktop.
Suggested sample output of mn status commands
$ mn status
{
"hostname": "", # hostname
"uptime": "", # uptime
"distro": "", # cat /etc/issue
"user": "", # whoami
"loadAverage": "", # uptime
"diskFree": "", # df -h /
"memFree": "", # free -h
"cpus": , # lscpu | grep 'CPU(s)' -m 1
"ipAddress": "", # dig +short myip.opendns.com @resolver1.opendns.com
"collateralHash": "", # dash-cli masternode status | grep 'collateralHash'
"collateralIndex": "", # dash-cli masternode status | grep 'collateralIndex'
"proTxHash": "", # dash-cli masternode status | grep 'proTxHash'
"status": "", # dash-cli masternode status | grep 'status'
"blockHeight": "", # dash-cli getblockcount
"nextPayment": "" # dash-cli
}
$ mn status core
{
"status": {
"dashdVersion": "", # dash-cli --version
"dashdLatest": "", #
"status": "" # dash-cli masternode status | grep 'status'
},
"config": {
"network": "",
"service": "",
"ownerAddress": "",
"votingAddress": "",
"pubKeyOperator": ",
"payoutAddress": "",
"operatorPayoutAddress": ""
},
"blockchain": {
"localHeight": ,
"externalHeight": ,
"registeredHeight": ,
"lastPaidHeight": ,
"PoSePenalty": 0,
"PoSeRevivedHeight": 229223,
"PoSeBanHeight": -1
},
"network": {
"mnsyncStatus": "",
"p2pPort": ,
"rpcPort": ,
"zmqPort": ,
"peersConnected": ,
},
"sentinel": {
"crontab": "",
"result": ""
}
}
$ mn status platform
{
"status": {
"nginx": "",
"envoy": "",
"dapi": "",
"tendermint": "",
"machine": "",
"drive": "",
"insight": "",
"mongodb": ""
},
"network": {
"tendermintRpcPort": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment