Correcting SNMP configuration in templates

This commit is contained in:
Dom 2023-11-15 22:29:08 +00:00
parent d9ff111d3a
commit 6a4adab6af
2 changed files with 35 additions and 28 deletions

View File

@ -155,6 +155,11 @@ no ip http secure-server
! !
snmp-server group neteng-snmp v3 priv read ViewDefault snmp-server group neteng-snmp v3 priv read ViewDefault
snmp-server view ViewDefault iso included snmp-server view ViewDefault iso included
snmp-server user snmp-user neteng-snmp v3 auth sha Juniper1 priv aes 128 Juniper1
snmp-server ifindex persist
snmp-server trap-source GigabitEthernet8
snmp-server source-interface informs GigabitEthernet8
snmp-server ip precedence 7
! !
! !
! !

View File

@ -95,42 +95,44 @@ routing-options {
route 192.168.0.0/24 next-hop 10.0.0.0; route 192.168.0.0/24 next-hop 10.0.0.0;
} }
} }
v3 { snmp {
usm { v3 {
local-engine { usm {
user snmp-user { local-engine {
authentication-sha { user snmp-user {
authentication-key "$9$qf5Fp0BSlKpudb2gJZp0O1RSM8X7Nbrl4aUjq.5QFnp0B1hSlKhcwYoaUD9At0RhM8X7NbXxUjiHmP0B1ISrWLxN-wLXDiHkPfRhcSKM8LNdVYIE-V"; ## SECRET-DATA authentication-sha {
} authentication-key "$9$qf5Fp0BSlKpudb2gJZp0O1RSM8X7Nbrl4aUjq.5QFnp0B1hSlKhcwYoaUD9At0RhM8X7NbXxUjiHmP0B1ISrWLxN-wLXDiHkPfRhcSKM8LNdVYIE-V"; ## SECRET-DATA
privacy-aes128 { }
privacy-key "$9$i.mTCtuESrCA7-ws4oCtp0BEevWLX-cSYgJGiHmfTzCtu0IESrIRdb2gJZn/9tBIevWLX-W8JGUDkqtu0OEcKM8XxdMW"; ## SECRET-DATA privacy-aes128 {
privacy-key "$9$i.mTCtuESrCA7-ws4oCtp0BEevWLX-cSYgJGiHmfTzCtu0IESrIRdb2gJZn/9tBIevWLX-W8JGUDkqtu0OEcKM8XxdMW"; ## SECRET-DATA
}
} }
} }
} }
} vacm {
vacm { security-to-group {
security-to-group { security-model usm {
security-model usm { security-name snmp-user {
security-name snmp-user { group view-all;
group view-all; }
} }
} }
} access {
access { group view-all {
group view-all { default-context-prefix {
default-context-prefix { security-model usm {
security-model usm { security-level privacy {
security-level privacy { read-view view-all;
read-view view-all; notify-view view-all;
notify-view view-all; }
} }
} }
} }
} }
} }
} }
} view view-all {
view view-all { oid .1 include;
oid .1 include; }
} trap-options;
trap-options; }