Depending on the IoTC Agent configuration and the package property for headless execution, there are check points in the device or gateway that may require an OT approval for the campaign to run.
You can configure your OEM or SI application to use these checkpoints to schedule a maintenance window for updates, or for approving the campaign to run the updates. You can monitor the device or gateway's campaign progress from the Campaigns tab in the VMware Pulse IoT Center UI. To view the progress of the campaign, select the campaign from the list and click the Devices tab.
Note: The default interval for the IoTC Agent to fetch new commands from the server is 5 minutes. You can change the interval from the IoTC Agent configuration file iotc-agent.cfg at /opt/VMware/iotc-agent/confg. The setting to control the command fetch interval is commandFetchIntervalSeconds.
Use the following commands to configure the campaign execution settings using the IoTC Agent SDK or the IoTC Agent CLI:
- After the campaign reaches the Waiting for Download Approval state:
iotc-agent-cli schedule --type=download --campaign-id=<campaign Id>Note: Copy the campaign ID from the Campaigns page of the VMware Pulse IoT Center UI.
- After the campaign reaches the Waiting For Execution Approval state:
iotc-agent-cli schedule --type=execution --campaign-id=<campaign Id>
- After the campaign reaches the Waiting For Activation Approval state:
iotc-agent-cli schedule --type=activation --campaign-id=<campaign Id>