Difference between revisions of "Cisco SNMP"

From HackerNet
Jump to: navigation, search
m
Line 25: Line 25:
 
Skapa user
 
Skapa user
 
  snmp-server user SNMPUSER v3GROUP v3 auth sha SECRETKEY priv aes 128 SECRETKEY
 
  snmp-server user SNMPUSER v3GROUP v3 auth sha SECRETKEY priv aes 128 SECRETKEY
 +
Maintain ifindex values across reboots
 +
snmp-server ifindex persist
 +
 +
Verify
 +
show snmp
 +
show snmp group
 +
show snmp community
 +
show snmp mib ifmib ifindex
 +
show snmp view
  
 
[[Category:Cisco]]
 
[[Category:Cisco]]

Revision as of 18:38, 26 March 2016

Simple Network Management Protocol. En SNMP-agent är en router eller en switch med information som kan frågas om med SNMP. Vilken typ av information som hålls av enheten kallas en MIB (Management Information Base).

SNMPv3

Med SNMPv3 används både autentisering och kryptering.

  • NoAuthNoPriv
  • AuthNoPriv
  • AuthPriv

NX-OS

SNMPv3

Privacy

snmp-server globalEnforcePriv

Skapa user

snmp-server user SNMPUSER network-operator auth sha SECRETKEY priv aes-128 SEVRETKEY
show snmp user

VRF

snmp-server host 10.1.2.4 use-vrf management

Traps

snmp-server host 10.1.2.4 traps version 3 priv SNMPUSER

IOS XE

Skapa grupp för v3

snmp-server group v3GROUP v3 priv

Skapa user

snmp-server user SNMPUSER v3GROUP v3 auth sha SECRETKEY priv aes 128 SECRETKEY

Maintain ifindex values across reboots

snmp-server ifindex persist

Verify

show snmp
show snmp group
show snmp community
show snmp mib ifmib ifindex
show snmp view