SNMP в Cisco
Материал из Xgu.ru
Содержание |
[править] Описание протокола
- Основная страница: SNMP
[править] Настройка SNMP
dyn1(config)# snmp-server community private rw
[править] Настройка SNMPv3
[править] Настройка view
dyn1(config)# snmp-server view <view-name> <oid-tree> <included | excluded>
Пример настройки:
dyn1(config)# snmp-server view test internet included
dyn1# sh snmp view test internet - included nonvolatile active *ilmi system - included permanent active *ilmi atmForumUni - included permanent active v1default iso - included permanent active v1default internet.6.3.15 - excluded permanent active v1default internet.6.3.16 - excluded permanent active v1default internet.6.3.18 - excluded permanent active v1default ciscoMgmt.394 - excluded permanent active v1default ciscoMgmt.395 - excluded permanent active v1default ciscoMgmt.399 - excluded permanent active v1default ciscoMgmt.400 - excluded permanent active
[править] Настройка групп
dyn1(config)# snmp-server group TESTGR v3 auth write test
dyn1# sh snmp group
groupname: ILMI security model:v1
readview : *ilmi writeview: *ilmi
notifyview: <no notifyview specified>
row status: active
groupname: ILMI security model:v2c
readview : *ilmi writeview: *ilmi
notifyview: <no notifyview specified>
row status: active
groupname: TESTGR security model:v3 auth
readview : v1default writeview: test
notifyview: <no notifyview specified>
row status: active
groupname: private security model:v1
readview : v1default writeview: v1default
notifyview: <no notifyview specified>
row status: active
groupname: private security model:v2c
readview : v1default writeview: v1default
notifyview: <no notifyview specified>
row status: active
[править] Настройка пользователей
dyn1(config)# snmp-server user TESTUSER TESTGR v3 auth md5 testpass
dyn1#sh snmp user User name: TESTUSER Engine ID: 80000009030000163E010001 storage-type: nonvolatile active Authentication Protocol: MD5 Privacy Protocol: None Group-name: TESTGR
[править] Просмотр информации
dyn1# show snmp
dyn1# show snmp engineID
dyn1# show snmp group
dyn1# show snmp pending
dyn1# show snmp sessions
dyn1# show snmp user
dyn1# show management event