Manages SNMP on network devices.
| codeauthor: | Mircea Ulinic <mircea@cloudflare.com> |
|---|---|
| maturity: | new |
| depends: | napalm |
| platform: | unix |
See also
New in version 2016.11.0.
salt.modules.napalm_snmp.config(**kwargs)¶Returns the SNMP configuration
CLI Example:
salt '*' snmp.config
salt.modules.napalm_snmp.remove_config(chassis_id=None, community=None, contact=None, location=None, test=False, commit=True, **kwargs)¶Removes a configuration element from the SNMP configuration.
| Parameters: |
|
|---|
| Parameters: |
|
|---|---|
| Raises: | MergeConfigException – If there is an error on the configuration sent. |
| Returns: | A dictionary having the following keys: |
CLI Example:
salt '*' snmp.remove_config community='abcd'
salt.modules.napalm_snmp.update_config(chassis_id=None, community=None, contact=None, location=None, test=False, commit=True, **kwargs)¶Updates the SNMP configuration.
| Parameters: |
|
|---|
| Parameters: |
|
|---|---|
| Raises: | MergeConfigException – If there is an error on the configuration sent. |
| Return a dictionary having the following keys: | |
CLI Example:
salt 'edge01.lon01' snmp.update_config location="Greenwich, UK" test=True
Output example (for the CLI example above):
edge01.lon01:
----------
already_configured:
False
comment:
Configuration discarded.
diff:
[edit snmp]
- location "London, UK";
+ location "Greenwich, UK";
result:
True
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2018.3.3
salt.modules.napalm_route module