Manage the SNMP configuration on network devices.
codeauthor: | Mircea Ulinic <mircea@cloudflare.com> |
---|---|
maturity: | new |
depends: | napalm |
platform: | unix |
Configures the SNMP on the device as specified in the SLS file.
SLS Example:
snmp_example: netsnmp.managed: - config: location: Honolulu, HI, US - defaults: contact: [email protected]
Output example (for the SLS above, e.g. called snmp.sls under /router/):
$ sudo salt edge01.hnl01 state.sls router.snmp test=True edge01.hnl01: ---------- ID: snmp_example Function: snmp.managed Result: None Comment: Testing mode: configuration was not changed! Started: 13:29:06.872363 Duration: 920.466 ms Changes: ---------- added: ---------- chassis_id: None contact: [email protected] location: Honolulu, HI, US Summary for edge01.hnl01 ------------ Succeeded: 1 (unchanged=1, changed=1) Failed: 0 ------------ Total states run: 1 Total run time: 920.466 ms
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.netsnmp.html