Skip to main content
ONTAP MetroCluster
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

MetroCluster IP 스위치의 상태를 모니터링하기 위해 SNMPv3 구성

기여자 netapp-aoife

MetroCluster IP 구성에서 IP 스위치의 상태를 모니터링하도록 SNMPv3을 구성할 수 있습니다.

이 절차에서는 스위치에서 SNMPv3를 구성하는 일반적인 단계를 보여줍니다. 나열된 일부 스위치 펌웨어 버전은 MetroCluster IP 구성에서 지원되지 않을 수 있습니다.

MetroCluster IP 구성에서 지원되는 스위치 펌웨어 버전에 대한 단계를 따라야 합니다 . "Hardware Universe" 지원되는 펌웨어 버전을 확인하세요.

참고
이 작업에 대해

다음 명령은 * Broadcom *, * Cisco * 및 * NVIDIA * 스위치에서 SNMPv3 사용자 이름을 구성하는 데 사용됩니다.

Broadcom 스위치

Broadcom BES-53248 스위치에서 SNMPv3 사용자 이름 네트워크 운영자를 구성합니다.

참고 ONTAP 9.20.1 버전부터 Broadcom 스위치에서 SHA-512 인증을 구성할 수 있습니다.
  • 인증 없음 * 의 경우:

    snmp-server user <snmpv3-user> NETWORK-OPERATOR noauth
  • *MD5/SHA/SHA-512 인증*의 경우:

    snmp-server user <snmpv3-user> NETWORK-OPERATOR [auth-md5|auth-sha|auth-sha512]
  • *AES/DES 암호화를 사용하는 MD5/SHA/SHA-512 인증*의 경우:

    snmp-server user <snmpv3-user> NETWORK-OPERATOR [auth-md5|auth-sha|auth-sha512] [priv-aes128|priv-des]

다음 명령을 실행하면 ONTAP 측에서 SNMPv3 사용자 이름이 구성됩니다.

security login create -user-or-group-name <snmpv3-user> -application snmp -authentication-method usm -remote-switch-ipaddress <address>

다음 명령을 실행하면 CSHM에서 SNMPv3 사용자 이름이 설정됩니다.

cluster1::*> system switch ethernet modify -device <switch-name> -snmp-version SNMPv3 -community-or-username <snmpv3-user>
예시 단계
  1. SHA 인증 및 AES-128 암호화를 사용하도록 스위치에서 SNMPv3 사용자를 설정합니다:

    (sw1)(Config)# snmp-server user SNMPv3shaAes128 NETWORK-OPERATOR auth-sha priv-aes128
    
    (sw1)(Config)# show snmp user snmp SNMPv3shaAes128
    
         Name            Group Name      Auth       Priv
                                         Meth       Meth    Remote Engine ID                 Remote IP Address
    ----------------- ------------------ -------    ------ -------------------------------- -------------------------
    SNMPv3shaAes128   NETWORK-OPERATOR   SHA        AES128 800XXXXXXXXXXXXXXXXXX1
  2. ONTAP 측에서 SNMPv3 사용자를 설정합니다.

    cluster1::*> security login create -user-or-group-name SNMPv3shaAes128 -application snmp -authentication-method usm -remote-switch-ipaddress 192.0.2.10
    
    Enter the authoritative entity's EngineID [remote EngineID]:
    
    Which authentication protocol do you want to choose (none, md5, sha, sha2-256, sha512) [none]: sha
    
    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, aes128) [none]: aes128
    
    Enter privacy protocol password (minimum 8 characters long):
    
    Enter privacy protocol password again:
  3. 새로운 SNMPv3 사용자와 함께 모니터링하도록 CSHM을 구성합니다.

    cluster1::*> system switch ethernet modify -device "sw1" -snmp-version SNMPv3 -community-or-username SNMPv3shaAes128
  4. CSHM 폴링 기간이 지난 후 "모니터링하지 않는 이유"가 "없음"으로 설정되어 있는지 확인하십시오.

    cluster1::*> system switch ethernet polling-interval show
    Polling Interval (in minutes): 5
    
    cluster1::*> system switch ethernet show-all -device "sw1" -instance
                                       Device Name: sw1
                                        IP Address: 192.0.2.10
                                      SNMP Version: SNMPv3
                                     Is Discovered: true
    DEPRECATED-Community String or SNMPv3 Username: -
               Community String or SNMPv3 Username: SNMPv3shaAes128
                                      Model Number: BES-53248
                                    Switch Network: cluster-network
                                  Software Version: 3.14.1.1
                         Reason For Not Monitoring: None  <---- should display this if SNMP settings are valid
                          Source Of Switch Version: CDP/ISDP
                                    Is Monitored ?: true
                       Serial Number of the Device: QTFXXXXXXXXXC
                                       RCF Version: RCF BES-53248 v1.14a 1-CLUSTER
Cisco 스위치

Cisco Nexus 스위치에서 SNMPv3 사용자 이름을 <snmpv3-user> 구성합니다.

참고 ONTAP 9.20.1 버전부터 Cisco 스위치에서 SHA-512 또는 SHA-256 인증을 구성할 수 있습니다.
  • 인증 없음 * 의 경우:

    snmp-server user <snmpv3-user> NoAuth
  • *MD5/SHA/SHA-256/SHA-512 인증*의 경우:

    snmp-server user <snmpv3-user> auth [md5|sha|sha-256|sha-512] <auth-password>
  • *AES/DES 암호화를 사용하는 MD5/SHA/SHA-256/SHA-512 인증*의 경우:

    snmp-server user <snmpv3-user> AuthEncrypt auth [md5|sha|sha-256|sha-512] <auth-password> priv [aes-128|des] <priv-password>

다음 명령을 실행하면 ONTAP 측에서 SNMPv3 사용자 이름이 구성됩니다.

security login create -user-or-group-name <snmpv3-user> -application snmp -authentication-method usm -remote-switch-ipaddress <address>

다음 명령을 실행하면 CSHM에서 SNMPv3 사용자 이름이 설정됩니다.

cluster1::*> system switch ethernet modify -device <switch-name> -snmp-version SNMPv3 -community-or-username <snmpv3-user>
예시 단계
  1. SHA 인증 및 AES-128 암호화를 사용하도록 스위치에서 SNMPv3 사용자를 설정합니다:

    (sw1)(Config)# snmp-server user SNMPv3shaAes128 auth sha <auth_password> priv aes-128 <priv_password>
    
    (sw1)(Config)# show snmp use  SNMPv3shaAes128
    User                Auth      Priv(enforce) Groups              Auth Mode   acl_filter
    _                                     _   __
    SNMPv3shaAes128     sha       aes-128(no)   network-operator    Local
    
    (sw1)(Config)#
  2. ONTAP 측에서 SNMPv3 사용자를 설정합니다.

    cluster1::*> security login create -user-or-group-name SNMPv3shaAes128 -application snmp -authentication-method usm -remote-switch-ipaddress 192.0.2.10
    
    Enter the authoritative entity's EngineID [remote EngineID]:
    
    Which authentication protocol do you want to choose (none, md5, sha, sha2-256, sha512) [none]: sha
    
    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, aes128) [none]: aes128
    
    Enter privacy protocol password (minimum 8 characters long):
    
    Enter privacy protocol password again:
  3. 새로운 SNMPv3 사용자와 함께 모니터링하도록 CSHM을 구성합니다.

    cluster1::*> system switch ethernet modify -device "sw1" -snmp-version SNMPv3 -community-or-username SNMPv3shaAes128
  4. CSHM 폴링 기간이 지난 후 "모니터링하지 않는 이유"가 "없음"으로 설정되어 있는지 확인하십시오.

    cluster1::*> system switch ethernet polling-interval show
    Polling Interval (in minutes): 5
    
    cluster1::*> system switch ethernet show-all -device "sw1" -instance
                                       Device Name: sw1
                                        IP Address: 192.0.2.10
                                      SNMP Version: SNMPv3
                                     Is Discovered: true
       SNMPv2c Community String or SNMPv3 Username: SNMPv3shaAes128
                                      Model Number: N9K-C9336C-FX2
                                    Switch Network: cluster-network
                                  Software Version: Cisco NX-OS(tm) Nexus9000 C9336C-FX2, Software (NXOS 64-bit), Version 10.2(4), RELEASE SOFTWARE Copyright (c) 2002-2022 by Cisco Systems, Inc. Compiled 9/20/2022 12:00:00
                         Reason For Not Monitoring: None  <---- should display this if SNMP settings are valid
                          Source Of Switch Version: CDP/ISDP
                                    Is Monitored ?: true
                       Serial Number of the Device: FDOXXXXXXX1
                                       RCF Version: RCF NX9336C-FX2 v1.14 1-CLUSTER 2-STORAGE
엔비디아 - CL 5.4.0

CL 5.4.0을 실행하는 NVIDIA Cumulus 스위치에서 SNMPv3 사용자 이름 `<snmpv3-user>`을 구성하십시오:

  • 인증 없음 * 의 경우:

    nv set service snmp-server username <snmpv3-user> auth-none
  • MD5/SHA 인증 * 의 경우:

    nv set service snmp-server username <snmpv3-user> [auth-md5|auth-sha] <auth-password>
  • AES/DES 암호화를 사용하는 * MD5/SHA 인증 *:

    nv set service snmp-server username <snmpv3-user> [auth-md5|auth-sha] <auth-password> [encrypt-aes|encrypt-des] <priv-password>

다음 명령을 실행하면 ONTAP 측에서 SNMPv3 사용자 이름이 구성됩니다.

security login create -user-or-group-name <snmpv3-user> -application snmp -authentication-method usm -remote-switch-ipaddress <address>

다음 명령을 실행하면 CSHM에서 SNMPv3 사용자 이름이 설정됩니다.

cluster1::*> system switch ethernet modify -device <switch-name> -snmp-version SNMPv3 -community-or-username <snmpv3-user>
예시 단계
  1. SHA 인증 및 AES-128 암호화를 사용하도록 스위치에서 SNMPv3 사용자를 설정합니다:

    cumulus@sw1:~$ net show snmp status
    Simple Network Management Protocol (SNMP) Daemon.
    ---------------------------------  ----------------
    Current Status                     active (running)
    Reload Status                      enabled
    Listening IP Addresses             all vrf mgmt
    Main snmpd PID                     4318
    Version 1 and 2c Community String  Configured
    Version 3 Usernames                Not Configured
    ---------------------------------  ----------------
    cumulus@sw1:~$
    cumulus@sw1:~$ net add snmp-server username SNMPv3shaAes128 auth-sha <auth-password> encrypt-aes <priv-password>
    cumulus@sw1:~$ net commit
    --- /etc/snmp/snmpd.conf        2020-08-02 21:09:34.686949282 +0000
    +++ /run/nclu/snmp/snmpd.conf   2020-08-11 00:13:51.826126655 +0000
    @@ -1,26 +1,28 @@
     # Auto-generated config file: do not edit. #
     agentaddress udp:@mgmt:161
     agentxperms 777 777 snmp snmp
     agentxsocket /var/agentx/master
     createuser _snmptrapusernameX
    +createuser SNMPv3shaAes128 SHA <auth-password> AES <priv-password>
     ifmib_max_num_ifaces 500
     iquerysecname _snmptrapusernameX
     master agentx
     monitor -r 60 -o laNames -o laErrMessage "laTable" laErrorFlag != 0
     pass -p 10 1.3.6.1.2.1.1.1 /usr/share/snmp/sysDescr_pass.py
     pass_persist 1.2.840.10006.300.43 /usr/share/snmp/ieee8023_lag_pp.py
     pass_persist 1.3.6.1.2.1.17 /usr/share/snmp/bridge_pp.py
     pass_persist 1.3.6.1.2.1.31.1.1.1.18 /usr/share/snmp/snmpifAlias_pp.py
     pass_persist 1.3.6.1.2.1.47 /usr/share/snmp/entity_pp.py
     pass_persist 1.3.6.1.2.1.99 /usr/share/snmp/entity_sensor_pp.py
     pass_persist 1.3.6.1.4.1.40310.1 /usr/share/snmp/resq_pp.py
     pass_persist 1.3.6.1.4.1.40310.2 /usr/share/snmp/cl_drop_cntrs_pp.py
     pass_persist 1.3.6.1.4.1.40310.3 /usr/share/snmp/cl_poe_pp.py
     pass_persist 1.3.6.1.4.1.40310.4 /usr/share/snmp/bgpun_pp.py
     pass_persist 1.3.6.1.4.1.40310.5 /usr/share/snmp/cumulus-status.py
     pass_persist 1.3.6.1.4.1.40310.6 /usr/share/snmp/cumulus-sensor.py
     pass_persist 1.3.6.1.4.1.40310.7 /usr/share/snmp/vrf_bgpun_pp.py
    +rocommunity cshm1! default
     rouser _snmptrapusernameX
    +rouser SNMPv3shaAes128 priv
     sysobjectid 1.3.6.1.4.1.40310
     sysservices 72
    -rocommunity cshm1! default
    
    
    net add/del commands since the last "net commit"
    
    User             Timestamp                   Command
    ---------------  --------------------------  -------------------------------------------------------------------------
    SNMPv3shaAes128  2020-08-11 00:13:51.826987  net add snmp-server username SNMPv3shaAes128 auth-sha <auth-password> encrypt-aes <priv-password>
    
    cumulus@sw1:~$
    cumulus@sw1:~$ net show snmp status
    Simple Network Management Protocol (SNMP) Daemon.
    ---------------------------------  ----------------
    Current Status                     active (running)
    Reload Status                      enabled
    Listening IP Addresses             all vrf mgmt
    Main snmpd PID                     24253
    Version 1 and 2c Community String  Configured
    Version 3 Usernames                Configured     <---- Configured here
    ---------------------------------  ----------------
    cumulus@sw1:~$
  2. ONTAP 측에서 SNMPv3 사용자를 설정합니다.

    cluster1::*> security login create -user-or-group-name SNMPv3shaAes128 -application snmp -authentication-method usm -remote-switch-ipaddress 192.0.2.10
    
    Enter the authoritative entity's EngineID [remote EngineID]:
    
    Which authentication protocol do you want to choose (none, md5, sha, sha2-256, sha512) [none]: sha
    
    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, aes128) [none]: aes128
    
    Enter privacy protocol password (minimum 8 characters long):
    
    Enter privacy protocol password again:
  3. 새로운 SNMPv3 사용자와 함께 모니터링하도록 CSHM을 구성합니다.

    cluster1::*> system switch ethernet modify -device "sw1" -snmp-version SNMPv3 -community-or-username SNMPv3shaAes128
  4. CSHM 폴링 기간이 지난 후 "모니터링하지 않는 이유"가 "없음"으로 설정되어 있는지 확인하십시오.

    cluster1::*> system switch ethernet polling-interval show
    Polling Interval (in minutes): 5
    
    cluster1::*> system switch ethernet show-all -device "sw1" -instance
                                       Device Name: sw1
                                        IP Address: 192.0.2.10
                                      SNMP Version: SNMPv3
                                     Is Discovered: true
    DEPRECATED-Community String or SNMPv3 Username: -
               Community String or SNMPv3 Username: SNMPv3shaAes128
                                      Model Number: MSN2100-CB2FC
                                    Switch Network: cluster-network
                                  Software Version: Cumulus Linux version 5.4.0 running on Mellanox Technologies Ltd. MSN2100
                         Reason For Not Monitoring: None  <---- should display this if SNMP settings are valid
                          Source Of Switch Version: LLDP
                                    Is Monitored ?: true
                       Serial Number of the Device: MT2110X06399
                                       RCF Version: RCF MSN2100 v1.14 1-CLUSTER
NVIDIA - CL 5.11.0+

CLI 5.11.0 이상을 실행하는 NVIDIA Cumulus 스위치에서 SNMPv3 사용자 이름 <snmpv3-user> 구성:

  • 인증 없음 * 의 경우:

    nv set system snmp-server username <snmpv3-user> auth-none
  • MD5/SHA 인증 * 의 경우:

    nv set system snmp-server username <snmpv3-user> [auth-md5|auth-sha] <auth-password>
  • AES/DES 암호화를 사용하는 * MD5/SHA 인증 *:

    nv set system snmp-server username <snmpv3-user> [auth-md5|auth-sha] <auth-password> [encrypt-aes|encrypt-des] <priv-password>

다음 명령을 실행하면 ONTAP 측에서 SNMPv3 사용자 이름이 구성됩니다.

security login create -user-or-group-name <snmpv3-user> -application snmp -authentication-method usm -remote-switch-ipaddress <address>

다음 명령을 실행하면 CSHM에서 SNMPv3 사용자 이름이 설정됩니다.

cluster1::*> system switch ethernet modify -device <switch-name> -snmp-version SNMPv3 -community-or-username <snmpv3-user>
예시 단계
  1. SHA 인증 및 AES-128 암호화를 사용하도록 스위치에서 SNMPv3 사용자를 설정합니다:

    cumulus@sw1:~$ nv set system snmp-server username SNMPv3shaAes128 auth-sha <auth-password> encrypt-aes <priv-password>
    created [rev_id: 14]
    cumulus@sw1:~$ nv config apply
    applied_and_saved [rev_id: 14]
    cumulus@sw1:~$ nv show system snmp-server username SNMPv3shaAes128
                applied
    ----------  ---------------------------------------
    [auth-sha]  $nvsec$836XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  2. ONTAP 측에서 SNMPv3 사용자를 설정합니다.

    cluster1::*> security login create -user-or-group-name SNMPv3shaAes128 -application snmp -authentication-method usm -remote-switch-ipaddress 192.0.2.10
    
    Enter the authoritative entity's EngineID [remote EngineID]:
    
    Which authentication protocol do you want to choose (none, md5, sha, sha2-256, sha512) [none]: sha
    
    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, aes128) [none]: aes128
    
    Enter privacy protocol password (minimum 8 characters long):
    
    Enter privacy protocol password again:
  3. 새로운 SNMPv3 사용자와 함께 모니터링하도록 CSHM을 구성합니다.

    cluster1::*> system switch ethernet modify -device "sw1" -snmp-version SNMPv3 -community-or-username SNMPv3shaAes128
  4. CSHM 폴링 기간이 지난 후 "모니터링하지 않는 이유"가 "없음"으로 설정되어 있는지 확인하십시오.

    cluster1::*> system switch ethernet polling-interval show
    Polling Interval (in minutes): 5
    
    cluster1::*> system switch ethernet show-all -device "sw1" -instance
                                       Device Name: sw1
                                        IP Address: 192.0.2.10
                                      SNMP Version: SNMPv3
                                     Is Discovered: true
    DEPRECATED-Community String or SNMPv3 Username: -
               Community String or SNMPv3 Username: SNMPv3shaAes128
                                      Model Number: MSN2100-CB2FC
                                    Switch Network: cluster-network
                                  Software Version: Cumulus Linux version 5.11.0 running on Mellanox Technologies Ltd. MSN2100
                         Reason For Not Monitoring: None  <---- should display this if SNMP settings are valid
                          Source Of Switch Version: LLDP
                                    Is Monitored ?: true
                       Serial Number of the Device: MT2110X06399
                                       RCF Version: RCF MSN2100 v1.14 1-CLUSTER