Skip to content

Commit 5643466

Browse files
Merge pull request #222240 from miashapan/agent-configurations
Agent configurations
2 parents f756104 + d716bdc commit 5643466

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

articles/defender-for-iot/device-builders/concept-micro-agent-configuration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ Configure the micro agent using the following collector-specific properties and
5454
|--|--|--|--|
5555
| **SystemInformation_Disabled** | `True`/`False` | Disables the System Information collector. | `False` |
5656
| **SystemInformation_MessageFrequency** | `Low`/`Medium`/`High` | Defines the frequency in which to send System Information events. | `Low` |
57+
| **SystemInformation_HardwareVendor** | string | Set hardware vendor information. | `None` |
58+
| **SystemInformation_HardwareModel** | string | Set hardware model information. | `None` |
59+
| **SystemInformation_HardwareSerialNumber** | string | Set hardware serial number information. | `None` |
60+
| **SystemInformation_FirmwareVendor** | string | Set firmware vendor information. | `None` |
61+
| **SystemInformation_FirmwareVersion** | string | Set firmware version information. | `None` |
5762

5863
### SBoM collector-specific settings
5964

@@ -91,6 +96,7 @@ Configure the micro agent using the following collector-specific properties and
9196
| **NetworkActivity_MessageFrequency** | `Low`/`Medium`/`High` | Defines the frequency in which to send Network Activity events. | `Medium` |
9297
| **NetworkActivity_Devices** | A list of the network devices separated by a comma. <br><br>For example `eth0,eth1` | Defines the list of network devices (interfaces) that the agent will use to monitor the traffic. <br><br>If a network device isn't listed, the network raw events won't be recorded for the missing device.| `eth0` |
9398
| **NetworkActivity_CacheSize** | Positive integer | The number of Network Activity events (after aggregation) to keep in the cache between send intervals. Beyond that number, older events will be dropped (lost).| `256` |
99+
| **NetworkActivity_PacketBufferSize** | Positive integer | Tonfigure the buffer size (in bytes) that will be used to capture packets for a single device per direction (incoming or outcoming traffic). | `2097152 (=2MB)` |
94100

95101
### Process collector-specific settings
96102

articles/defender-for-iot/device-builders/tutorial-standalone-agent-binary-installation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,26 @@ This procedure describes additional steps required to support the AMQP protocol.
137137
sudo systemctl restart defender-iot-micro-agent.service
138138
```
139139

140+
**To add AMQP over web socket protocol support**:
141+
142+
1. On your micro-agent machine, open the `/etc/defender_iot_micro_agent/conf.json` file and add the following content:
143+
144+
```json
145+
{
146+
"IothubModule_TransportProtocol": "AMQP_WebSocket_Protocol"
147+
}
148+
```
149+
1. Delete any cached file at **/var/lib/defender_iot_micro_agent/cache.json**.
150+
151+
1. Restart the micro-agent. Run
152+
153+
```bash
154+
sudo systemctl restart defender-iot-micro-agent.service
155+
```
156+
157+
The agent will use this protocol, and communicate with the IoT Hub on port 443.
158+
Http Proxy configuration is supported for this protocol, in the case that proxy is also configured, the port of communication with the proxy will be as defined in the proxy configuration.
159+
140160
## Authenticate the micro agent
141161

142162
There are two options that can be used to authenticate the Defender for IoT micro agent:

0 commit comments

Comments
 (0)