Page History
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connection to JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root) # get JOC Cockpit version ./operate-joc.sh version "${request_options[@]}" # returns 2.7.2 # get Controller version ./operate-joc.sh version "${request_options[@]}" --controller-id=controller # returns 2.7.2 # get Standalone Agent version ./operate-joc.sh version "${request_options[@]}" --agent-id=StandaloneAgent # returns 2.7.2 # get Agent Cluster version ./operate-joc.sh version "${request_options[@]}" --agent-id=AgentCluster # returns 2.7.2 # get version of specific Controller and of all Agents in Agent Cluster response=$(./operate-joc.sh version "${request_options[@]}" --controller-id=controller --agent-id=AgentCluster --list) # returns response { "agentVersions":[ {"agentId":"AgentCluster","compatibility":"COMPATIBLE","uri":"https://diragent-2-0-primary:4443","version":"2.7.2"}, {"agentId":"AgentCluster","compatibility":"COMPATIBLE","subagentId":"director_primary_001","uri":"https://diragent-2-0-primary:4443","version":"2.7.2"}, {"agentId":"AgentCluster","compatibility":"COMPATIBLE","subagentId":"director_secondary_001","uri":"https://diragent-2-0-secondary:4443","version":"2.7.2"}, {"agentId":"AgentCluster","compatibility":"COMPATIBLE","subagentId":"subagent_primary_001","uri":"https://subagent-2-0-primary:4443","version":"2.7.2"}, {"agentId":"AgentCluster","compatibility":"COMPATIBLE","subagentId":"subagent_secondary_001","uri":"https://subagent-2-0-secondary:4443","version":"2.7.2"}, {"agentId":"AgentCluster","compatibility":"COMPATIBLE","subagentId":"subagent_third_001","uri":"https://subagent-2-0-third:4443","version":"2.7.2"} ], "controllerVersions":[ {"compatibility":"COMPATIBLE","controllerId":"controller","uri":"https://controller-2-0-standalone:4443","version":"2.7.2"} ], "jocVersion":"2.7.2" } # get version of specifc Agent echo "$response" | jq -r '.agentVersions[] | select(.subagentId == "director_primary_001") | .version // empty' |
Switching-over
...
JOC Cockpit Cluster
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connection to JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root) # switch-over active role ./operate-joc.sh switch-over "${request_options[@]}" --controller-id=controller |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connection to JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root) # get settings settings=$(./operate-joc.sh get-settings "${request_options[@]}") # update settings settings=$(echo "${settings}$settings" | jq '.dailyplan.days_ahead_submit.value = "4"') settings=$(echo "${settings}$settings" | jq '.dailyplan.days_ahead_plan.value = "6"') # store settings ./operate-joc.sh store-settings "${request_options[@]}" --settings="${settings}$settings" |
Encrypting and Decrypting
...
Overview
Content Tools