跳转到主内容

StorageGRID 支持使用 SNMP 测试陷阱吗?

Views:
48
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

适用于

NetApp StorageGRID 11.5 及更低版本

回答

否,StorageGRID 不支持使用 SNMP 测试陷阱。

追加信息

使用以下解决方法之一测试 SNMP 连接,均使用 SNMPv2-MIB:coldStart trap:

  1. 使用 snmptrap 快速测试 SNMP 连接。示例: snmptrap -v1 -c (community string) (Destination address) 1.3.6.1.6.3.1.1.5 "" 0 0 ""

如果 SNMP 管理站收到 SNMP coldStart 陷阱,我们可以得出  网络和 SNMP 管理站配置正确的结论。

注意:如果使用 UDP 端口配置 SNMP 陷阱,则在 SNMP 站的管理员确认之前,如果 SNMP 站已接收到陷阱,则不会向 StorageGRID 给出确认。

在某些情况下,要确认 snmptrap 已成功将 UDP 数据包发送到网络,snmptrap 可以与 -D 'netsnmp_udp'  选项一起使用,用于 UDP 协议的详细调试输出。

示例: snmptrap -v1 -c (community string) -D 'netsnmp_udp' (Destination address) 1.3.6.1.6.3.1.1.5 "" 0 0 ""

registered debug token netsnmp_udp, 1
netsnmp_udpbase: open remote UDP: [x.x.x.x]:162->[0.0.0.0]:0
netsnmp_udpbase: client open UDP: [x.x.x.x]:162->[0.0.0.0]:0
netsnmp_udp: send 45 bytes from 0x55ecaa861743 to UDP: [x.x.x.x]:162->[0.0.0.0]:0 on fd 3

  1. 如果当前配置的连接正在工作,则使用  service snmpd restart  重新启动 SNMP 服务。

如果步骤 2 正常工作,则 SNMP 配置是一个正常工作的配置。

如果问题仍然存在,请检查 SNMP Configuration  并咨询此 KB 中的已知 SNMP 问题

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.