Introducción
Este documento describe cómo agregar el acceso convergido (5760/3850/3650) para preparar la infraestructura con el v2 y el v3 del Simple Network Management Protocol (SNMP).
Prerrequisitos
Requisitos
Cisco recomienda que tenga conocimiento sobre estos temas:
- 5760/3850/3650) versión 3.3.x y posterior convergida o Denali 16.x del ® del Cisco IOS del acceso (
- Versión 2.0 o posterior primera de la infraestructura
Componentes Utilizados
Este documento no tiene restricciones específicas en cuanto a versiones de software y de hardware.
La información que contiene este documento se creó a partir de los dispositivos en un ambiente de laboratorio específico. Todos los dispositivos que se utilizan en este documento se pusieron en funcionamiento con una configuración verificada (predeterminada). Si la red está funcionando, asegúrese de haber comprendido el impacto que puede tener cualquier comando.
Configure (infraestructura primera 2.2 y anteriores)
Configuración del v2 SNMP en un Switch
GUI
Elija la configuración > el regulador > la Administración > el SNMP > a las comunidades > nuevo.


CLI
Ingrese estos comandos:
conf t
snmp-server community V2Community RW
Configuración del v3 SNMP en un Switch
CLI
Ingrese estos comandos:
conf t
snmp-server group V3Group v3 auth read V3Read write V3Write
snmp-server user V3User V3Group v3 auth sha Password1 priv aes 128 Password1
snmp-server view V3Read iso included
snmp-server view V3Write iso included
snmp-server host 10.201.234.170 version 3 auth V3User
snmp-server enable traps
Prepare la infraestructura
Nota: Utilice la opinión del ciclo vital.
Elija actúan > dispositivo del centro de trabajo del dispositivo > Add.

V2 SNMP

V3 SNMP

Nota: Si los parámetros telnet/del Secure Shell no se ingresan, la infraestructura primera no recogerá el inventario del Switch.
Configuración (infraestructura primera 3.x y posterior)
Configuración SNMP en un Switch (Denali 16.x)
GUI
Elija las opciones generales > la Administración > el SNMP.
Habilite el SNMP.

Configuración del v2 GUI SNMP en un Switch (Denali 16.x)

Configuración del v2 CLI SNMP en un Switch (Denali 16.x)
Ingrese estos comandos:
conf t
snmp-server community V2Community RW
Configuración del v3 GUI SNMP en un Switch (Denali 16.x)

Configuración del v3 CLI SNMP en un Switch (Denali 16.x)
Ingrese estos comandos:
conf t
snmp-server user V3user V3Group v3 auth sha Password1 priv aes 128 Password1
snmp-server view V3Read iso included
snmp-server view V3Write iso included
snmp-server host 10.201.236.107 version 3 auth V3user
snmp-server enable traps
Prepare la infraestructura
V2 SNMP

V3 SNMP

Verificación
Use esta sección para confirmar que su configuración funciona correctamente.
El analizador del CLI de Cisco (clientes registrados solamente) apoya los ciertos comandos show. Utilice el analizador del CLI de Cisco para ver una análisis de la salida del comando show.
Configuración del v2 SNMP en un Switch (Cisco IOS XE)
Ingrese este comando:
5760-79b#show snmp community
Community name: V2Community
Community Index: V2Community
Community SecurityName: V2Community
storage-type: nonvolatile active
Configuración del v3 SNMP en un Switch (Cisco IOS XE)
Ingrese estos comandos:
5760-79b#show snmp user
User name: V3User
Engine ID: 80000009030068BC0C5A8F80
storage-type: nonvolatile active
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: V3Group
5760-79b#show snmp group
groupname: V3Group security model:v3 auth
contextname: <no context specified> storage-type: nonvolatile
readview : V3Read writeview: V3Write
notifyview: <no notifyview specified>
row status: active
Nota: El CLI se prefiere sobre el GUI para la configuración del v3 SNMP en el acceso convergido por algunos problemas conocidos que se aborden en el Id. de bug Cisco CSCuo52406.
Infraestructura primera (2.2 y anteriores)

Configuración del v2 SNMP en un Switch (Denali 16.x)
Ingrese este comando:
polaris-3850#show snmp community
Community name: v2community
Community Index: v2community
Community SecurityName: v2community
storage-type: nonvolatile active
Configuración del v3 SNMP en un Switch (Denali 16.x)
Ingrese estos comandos:
polaris-3850#show snmp user
User name: v3user
Engine ID: 80000009030068BC0C5A8F80
storage-type: nonvolatile active
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: V3Group
polaris-3850#show snmp group
groupname: V3Group security model:v3 auth
contextname: <no context specified> storage-type: nonvolatile
readview : V3Read writeview: V3Write
notifyview: <no notifyview specified>
row status: active
Prepare la infraestructura

Troubleshooting
En esta sección encontrará información que puede utilizar para solucionar problemas de configuración.
Del acceso convergido
El comando show logging muestra los paquetes activos enviados a la dirección IP primera de la infraestructura del WLC.
Ingrese estos comandos:
polaris-3850#debug snmp packets
Polaris-3850#show logging
entPhysicalEntry.7.2042 = Gi2/0/1
*Jun 10 15:58:51.817: SNMP: Packet sent via UDP to 10.201.236.107
*Jun 10 15:58:51.819: SNMP: Packet received via UDP from 10.201.236.107 on Vlan1105
*Jun 10 15:58:51.825: SNMP: Get-bulk request, reqid 945449769, nonrptr 0, maxreps 10
Jun 10 15:58:51.904: SNMP: Packet sent via UDP to 10.201.236.107
*Jun 10 15:58:51.927: SNMP: Packet received via UDP from 10.201.236.107 on Vlan1105
*Jun 10 15:58:51.928: SNMP: Get-bulk request, reqid 945449775, nonrptr 0, maxreps 10
entPhysicalEntry.7.2062 = NULL TYPE/VALUE
*Jun 10 15:58:51.931: SNMP: Response, reqid 945449775, errstat 0, erridx 0
entPhysicalEntry.7.2063 = Gi2/0/22
entPhysicalEntry.7.2064 = Gi2/0/23
entPhysicalEntry.7.2065 = Gi2/0/24
entPhysicalEntry.7.2066 = Switch 2 FRU Uplink Module 1
--More-- ????????? ????????? entPhysicalEntry.7.2067 = Gi2/1/1 Container
entPhysicalEntry.7.2068 = Gi2/1/2 Container
entPhysicalEntry.7.2069 = Te2/1/3 Container
entPhysicalEntry.7.2070 = Te2/1/4 Container
entPhysicalEntry.8.1 = V01
*Jun 10 15:58:51.951: SNMP: Packet sent via UDP to 10.201.236.107
*Jun 10 15:58:51.974: SNMP: Packet received via UDP from 10.201.236.107 on Vlan1105
*Jun 10 15:58:51.975: SNMP: Get-bulk request, reqid 945449777, nonrptr 0, maxreps 10
ciscoEnvMonTemperatureStatusEntry.3 = NULL TYPE/VALUE
*Jun 10 15:58:51.978: SNMP: Response, reqid 945449777, errstat 0, erridx 0
ciscoEnvMonTemperatureStatusEntry.3.2008 = 28
ciscoEnvMonTemperatureStatusEntry.3.2009 = 40
ciscoEnvMonTemperatureStatusEntry.3.2010 = 44
ciscoEnvMonTemperatureStatusEntry.6.2008 = 1
--More-- ????????? ?????????*Jun 10 15:58:52.001: SNMP: Packet sent via UDP to 10.201.236.107
De la infraestructura primera
SNMPWALK entre los dispositivos.
Ingrese estos comandos:
PrimeInfrastructurejoker/admin# shell
Enter shell access password :
Starting bash shell ...
ade # snmpwalk -v2c -c v2community 10.201.234.36 sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (238833753) 27 days, 15:25:37.53
v2community = comunidad SNMP
10.201.234.36 = IP DEL WLC
Éste es el resultado si el reachablity está allí:
DISMAN-EVENT-MIB:: sysUpTimeInstance = Timeticks: xx.xxx