added current_settings_to_ismas()
This commit is contained in:
parent
0571498503
commit
f70e4946d7
@ -60,6 +60,40 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
|
|||||||
log_debug "$func:${LINENO}: data=$data"
|
log_debug "$func:${LINENO}: data=$data"
|
||||||
echo $((echo "$data"; sleep 1) | nc localhost $APISM_DB_PORT)
|
echo $((echo "$data"; sleep 1) | nc localhost $APISM_DB_PORT)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
current_settings_to_ismas () {
|
||||||
|
local func="${FUNCNAME[0]}"
|
||||||
|
local p=("$@")
|
||||||
|
local data="#M=APISM#C=CMD_SENDVERSION#J=
|
||||||
|
{
|
||||||
|
\"TARIFF\": {
|
||||||
|
\"VERSION\" : \"\",
|
||||||
|
\"PROJECT\" : \"\",
|
||||||
|
\"ZONE\" : 0,
|
||||||
|
\"INFO\" : \"\"
|
||||||
|
},
|
||||||
|
\"HARDWARE\" : {
|
||||||
|
\"DEVICES\" : [
|
||||||
|
\"PTU5\", \"DC\", \"PRINTER\", \"BNA\"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
\"OS\" : {
|
||||||
|
\"$(uname)\": \"$(uname -a)\"
|
||||||
|
},
|
||||||
|
\"CONFIG\" : {
|
||||||
|
\"PTU5\" : {
|
||||||
|
},
|
||||||
|
\"DC\" : {
|
||||||
|
},
|
||||||
|
\"PRINTER\" : {
|
||||||
|
},
|
||||||
|
\"BNA\" : {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}"
|
||||||
|
log_debug "$func:${LINENO}: data=$data"
|
||||||
|
echo $((echo "$data"; sleep 1) | nc localhost $APISM_DB_PORT)
|
||||||
|
}
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user