local ok=$(jq '(.error|not) and (.result| [has("consensHeight"),true])'<<<"$resp")
ok=$(jq '(.error|not) and (.result| [has("consensHeight"),true])'<<<"$resp")
["$ok"==true]
local rst=$?
echo_rst "$FUNCNAME""$rst"
}
function paracross_GetNodeGroupAddrs(){
local resp=$(curl -s--data-binary'{"jsonrpc":"2.0","id":2,"method":"paracross.GetNodeGroupAddrs","params":[{"title":"user.p.para."}]}'-H'content-type:text/plain;'${UNIT_HTTP})
local ok=$(jq '(.error|not) and (.result| [has("key","value"),true])'<<<"$resp")
ok=$(jq '(.error|not) and (.result| [has("key","value"),true])'<<<"$resp")
["$ok"==true]
local rst=$?
echo_rst "$FUNCNAME""$rst"
}
function paracross_GetNodeGroupStatus(){
local resp=$(curl -s--data-binary'{"jsonrpc":"2.0","id":2,"method":"paracross.GetNodeGroupStatus","params":[{"title":"user.p.para."}]}'-H'content-type:text/plain;'${UNIT_HTTP})
local ok=$(jq '(.error|not) and (.result| [has("status"),true])'<<<"$resp")
ok=$(jq '(.error|not) and (.result| [has("status"),true])'<<<"$resp")
["$ok"==true]
local rst=$?
echo_rst "$FUNCNAME""$rst"
}
function paracross_ListNodeGroupStatus(){
local resp=$(curl -s--data-binary'{"jsonrpc":"2.0","id":2,"method":"paracross.ListNodeGroupStatus","params":[{"title":"user.p.para.","status":'2'}]}'-H'content-type:text/plain;'${UNIT_HTTP})
local ok=$(jq '(.error|not) and (.result| [has("status"),true])'<<<"$resp")
ok=$(jq '(.error|not) and (.result| [has("status"),true])'<<<"$resp")
["$ok"==true]
local rst=$?
echo_rst "$FUNCNAME""$rst"
...
...
@@ -182,9 +222,12 @@ function paracross_ListNodeGroupStatus() {
function paracross_ListNodeStatus(){
local resp=$(curl -s--data-binary'{"jsonrpc":"2.0","id":2,"method":"paracross.ListNodeStatus","params":[{"title":"user.p.para.","status":'4'}]}'-H'content-type:text/plain;'${UNIT_HTTP})