How to register an SNMP device type
In the current setting, a type of device using SNMP is configured by uploading MIBs and defining a MeasurementDevice custom resource.
The operator generates SNMP module config (snmp.yml) and triggers a reload of chantico-snmp.
In our First use-case (see goal.md) this corresponds to the registerPDU phase.
- Upload the MIBS:
- If you have created the cluster using the local development setup howto, you can use
make cluster-mibsto copy all the MIB files in thedev/mibsfolder into the persistent volume claim. - Otherwise, browse to the filebrowser. Either use the port-forward from the kind-config (if you have a KinD cluster) or use the port-forward command:
- Login with (user: admin, password: admin)
- Upload your MIBS files in
snmp/mibs
- If you have created the cluster using the local development setup howto, you can use
- Create the MeasurementDevice matching the required type of MeasurementDevice
-
Create a
measurement_device.yamlfile -
Apply the yaml file
-
- Verify the new device setting
- Wait for the SNMP generator job to complete
- The generated config is stored on the shared volume at
snmp/yml/snmp.yml. - Port-forward the SNMP exporter
- Check that the config (http://localhost:9116/config) include the registered device as a module