access: set up SNMP for FS S5800 switches
This commit is contained in:
parent
4385ad4ff4
commit
beaa977e21
2 changed files with 40 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
hostname {{ inventory_hostname }}
|
||||
|
||||
{# disable encryption until we figure out the hash function, otherwise we can’t create SNMP users idempotently #}
|
||||
no service password-encryption
|
||||
|
||||
service http disable
|
||||
service telnet disable
|
||||
|
||||
|
@ -10,7 +13,11 @@ vlan database
|
|||
{% for vlan in del_vlans %}
|
||||
no vlan {{ vlan }}
|
||||
{% endfor %}
|
||||
exit
|
||||
|
||||
snmp-server enable
|
||||
snmp-server system-location {{ rack }}
|
||||
snmp-server engineID {{ snmp_engine_id }}
|
||||
snmp-server access public security-model usm priv read _all_
|
||||
|
||||
{# sort to ensure LAG interfaces are added last #}
|
||||
{% for iface in interfaces | sort(attribute="type.value") | sort(attribute="mgmt_only") %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue