Вы находитесь на странице: 1из 17

Netwell

.
, ,
.
Netwell NetApp.

NETAPP TECHNICAL REPORT

:
SNMP
Colin Chute, NetApp
Eyal Horowitz, NetApp
2013 | TR-4149

:
,
NetApp,
,
.
, .


1 .................................................................................................................................................. 3
1.1 ................................................................................................................................................. 3
1.2 SNMP ..................................................................................................................................... 3
1.3 SNMP Traps ........................................................................................................................................ 4
1.4 MIB ..................................................................................................................................................... 4
2 Traps 7-Mode ............................................................. 5
2.1 SNMP .............................................................................................................................. 5
2.2 Community Name SNMPv1 .......................................................................................... 5
2.3 SNMPv3 .............................................................................. 5
2.4 SNMP .......................................................................................... 6
2.5 Trap Hosts ........................................................................................................................... 6
2.6 ......................................................................................................................... 6
2.7 (User-Defined) Traps .................................................................... 7
3 SNMP Clustered Data ONTAP .......................................................... 7
3.1 SNMP .............................................................................................................................. 7
3.2 Community Name SNMPv1 .......................................................................................... 8
3.3 SNMPv3 .............................................................................. 8
3.4 SNMP .......................................................................................... 8
3.5 Traphost .............................................................................................................................. 8
4 SNMP OnCommand System Manager GUI (Data ONTAP 7-Mode and Clustered
Data ONTAP) ................................................................................................................................................. 9
4.1 OnCommand System Manager .............................................................................................. 9
4.2 SNMP Configuration ........................................................................................... 9
4.3 SNMP GUI ............................................................................................... 9
5 SNMP OnCommand Operations Manager GUI (Data ONTAP 7-Mode Clustered
Data ONTAP) ...............................................................................................................................................13
5.1 Operations Manager ............................................................................................................13
5.2 SNMP Configuration ..........................................................................................13
5.3 SNMP GUI .............................................................................................14
5.4 (Alarms) ..................................................................................16

1
Simple Network Management Protocol (SNMP)
NetApp Data ONTAP 7-Mode, clustered Data ONTAP,
OnCommand (GUI).
SNMP .

1.1
SNMP
. ,
SNMP, , , ,
. , Data ONTAP 7-Mode, Clustered Data
ONTAP, OnCommand
SNMP.
, SNMP :

SNMP manager. Network management system (NMS). NMS


SNMP agent.
SNMP managed device. , .
SNMP agent. SNMP manager. SNMP agent OS
, .
SNMP manager Management information base (MIB).
Management information base (MIB). ,
manager agent. MIB ,
. Q
. - : " Q ?"
( MIB) : ", Q
17 ." MIB, , .

, SNMP Data ONTAP, SNMP manager


SNMP ( MIB
MIB-II). SNMP agent SNMP manager
SNMP.
SNMP agent trap,
, traps SNMP manager. SNMP manager , ,
.

1.2 SNMP
, Data ONTAP SNMP agent,
SNMP 1 3. SNMPv1
community. , community public.
SNMP . community
, , ,
. SNMPv3 , ,
. SNMPv3 MIB-II.

1.3 SNMP Traps


SNMP traps Data ONTAP.
MIB , trap
, traphost list. , traphost list
, SNMP Manager, traps.
traps Data ONTAP:

trap
trap

(built-in) traps Data ONTAP. ,


, trap , traphost.
traps :

RFC 1213, traps, coldStart, linkDown, linkUp,


authenticationFailure
Traps, MIB , diskFailedShutdown, cpuTooBusy,
volumeNearlyFull

traps snmp trap FilerView SNMP


Traps. proxy trap ID 11 18,
trap- MIB.

1.4 MIB
MIB , SNMP traps. MIB-
. Data ONTAP ,
SNMP.
Data ONTAP 7-Mode Clustered Data ONTAP MIB:

Custom MIB (/etc/mib/netapp.mib)


iSCSI MIB (/etc/mib/iscsi.mib)

Data ONTAP (object


identifier, OID) : /etc/mib/traps.dat.
, traps.
: Data ONTAP MIBs traps.dat
NetApp Support (http://support.netapp.com/). ,
SNMP Data ONTAP.
SNMP Data ONTAP.
Data ONTAP MIB OnCommand <installationdirectory>/NTAPdfm/misc .
OnCommand MIB trapID OnCommand. ,
OnCommand traps , IBM Tivoli
HP OpenView.
OnCommand MIB (dfm.mib) <installationdirectory>/NTAPdfm/misc .

2 Traps 7-Mode
2.1 SNMP
options snmp.enable on

2.2 Community Name SNMPv1


snmp community add {rocommunity}

community SNMP agent Data ONTAP public.


, , ro (readonly).

2.3 SNMPv3
1. login-snmp:
useradmin role add role_name -a login-snmp
role_name login-snmp.

:
useradmin role add myrole1 -a login-snmp

2. :
useradmin group add group_name -r role_name
group_name , , , role_name.

:
useradmin group add mygroup1 -r myrole1

3.
:
useradmin user add user_name -g group_name
user_name , group_name.

:
useradmin user add myuser1 -g mygroup1

4. . , .
5. snmpwalk MIB:
snmpwalk -v 3 -u user_name -l authNoPriv -A password storage_system system
password , 4. storage_system a

, MIB-.
:
snmpwalk -v 3 -u myuser1 -l authNoPriv -A johndoe123 host1 system

2.4 SNMP
options snmp.access access_spec
access_spec .

, IP .
: SNMP e0, e1,
and e2, :
options snmp.access if=e0,e1,e2

2.5 Trap Hosts


snmp traphost [{add|delete} { hostname|ipaddress}]

(add) (delete) SNMP, Data


ONTAP.
IPv6, IPv6
traphost. IPv6 ( ), IPv6 traphost.
traphost Data ONTAP.

2.6
, Data ONTAP
,
traphost. 1 SNMP .
SNMP,
. ,
.
1 SNMP.
1) SNMP.

SNMP,
init, community, contact, traphost.
snmp authtrap [0|1]
: ( 1) (
0) traps authentication failure SNMP agent.
: authtrap
Data ONTAP.
snmp community
communities.
snmp community add
community.
rocommunity
: community SNMP
agent Data ONTAP public.
SMTP - ro (read-only).
snmp community delete communities.
snmp

{all|rocommunity}

snmp
[contact]

contact

: contact name
.
( ) .
255 .
: contact name
Data ONTAP.
snmp init [0|1]
: ( 1) (
0) traps snmp traps.
: snmp init
Data ONTAP.
: , SNMP traps Data
ONTAP; snmp init 0.
snmp
location : location
[location]
.
( ) .
location 255 .
: Data ONTAP.
snmp traphost
: SNMP,
[{add|delete}
traps Data ONTAP.
{hostname|ipaddress}] IPv6,
traphosts IPv6. IPv6,
, traphosts IPv6.
: traphosts Data
ONTAP.
snmp traps [options]
traps Data ONTAP

2.7 (User-Defined) Traps


User-defined traps Data ONTAP.
traps ,
traps Data ONTAP. trap
Data ONTAP MIB, trap
.
: SNMP ,
traps
. trap,
OnCommand,
. traps OnCommand
.
user-based traps, Data ONTAP Network Management
Guide, NetApp Support site (http://support.netapp.com/).

3 SNMP Clustered Data ONTAP


3.1 SNMP
, 7-Mode.
options snmp.enable on

3.2 Community Name SNMPv1


community name .
system snmp community add -community-name thecommunity

3.3 SNMPv3
.
: , .
.
security login create -username mysnmpuser -application snmp -authmethod usm -role
readonly -vserver Cluster01
Enter the authoritative entity's EngineID [local EngineID]: Enter

.
Which authentication protocol do you want to choose (none, md5, sha) [none]: md5
Enter the authentication protocol password (minimum 8 characters long):
Enter the authentication protocol password again: .
Which privacy protocol do you want to choose (none, des) [none]: Enter

none.

3.4 SNMP
Clustered Data ONTAP, SNMP
. IP
.
system services firewall policy modify -policy data -service snmp -action allow -iplist 172.17.0.0/16

: , .
.

3.5 Traphost
IP- traphost.
system snmp traphost add 172.17.68.4

SNMP Clustered Data ONTAP.

4 SNMP OnCommand System Manager GUI (Data


ONTAP 7-Mode and Clustered Data ONTAP)
4.1 OnCommand System Manager

4.2 SNMP Configuration

4.3 SNMP GUI


1. Edit.

2. Edit SNMP Settings. Contact and Location details.

3. SNMPv1, 4. SNMPv3, 5.
4. SNMPv1, Add community name.
OK .

5. SNMPv3, SNMPv3. Add.

6. Add SNMPv3 User.


o
o

User Name.
Engine ID.

o
o
o
o

, md5 .
.
.
Privacy Protocol none.
OK.

7. trap host, Trap Hosts.


o
o
o

Enable Traps.
Add IP- trap host.
OK.

8. OK .
SNMP home screen , .

9. Data ONTAP 7-Mode, 10. Clustered


Data ONTAP, 9.
Advanced SNMP service
, .

10. Data ONTAP 7-Mode, HA .


Clustered Data ONTAP, ,
.
: SNMP
Clustered Data ONTAP.
. , Clustered Data ONTAP
, .

, SNMP .

5 SNMP OnCommand Operations Manager GUI


(Data ONTAP 7-Mode Clustered Data ONTAP)
5.1 Operations Manager

5.2 SNMP Configuration


o

Setup > Network Credentials.

Network Credentials:

5.3 SNMP GUI


1. SNMPv1, :
o
o
o
o

.
Preferred SNMP Version SNMPv1.
SNMP Community.
Add.

.
2. SNMPv3, :
o
o
o

o
o
o
o

.
Preferred SNMP Version SNMPv3.
SNMP Community name . , MD5
. ,
.
Login.
Password.
Privacy Password .
OK.

3. SNMP
, OnCommand.
community public. ,
community v3
OnCommand, community public,
.

4. SNMP .

5.4 (Alarms)
, (alarms)
Operations Manager SNMP traps - .
.
1. Setup > Alarms.

2. Alarms:

3. .
SNMP Trap Hosts, IP- trap host Add.

, Operations Manager SNMP traps


trap host.

Вам также может понравиться