NetWorker:SNMP 陷阱接收器报告“未知陷阱”
Summary: NetWorker Simple Network Management Protocol (SNMP) 通知使用 nsrtrap 进行配置。陷阱接收器未正确接收通知,并报告“未知陷阱”
Symptoms
SNMP 通知通过 NetWorker 进行配置:NetWorker:如何配置、创建和修改 SNMP 通知
SNMP 陷阱接收器报告它从 NetWorker 服务器收到“未知陷阱”:

Cause
该NETWORKER-MIB.txt定义了 nwServerNotification 作为一个 OBJECT-TYPE 陷阱:
--(.1.3.6.1.4.1.160.0)
nwServerNotification OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"nwServerNotification"
::= { networker 1 }
nwNotifications OBJECT IDENTIFIER ::= { networker 2 }
policyNotification OBJECT IDENTIFIER ::= { nwNotifications 1 }
workflowNotification OBJECT IDENTIFIER ::= { policyNotification 1 }
restoreNotification OBJECT IDENTIFIER ::= { nwNotifications 2 }
actionNotificationprefix OBJECT IDENTIFIER ::= { workflowNotification 1 }
actionNotificationObjects OBJECT IDENTIFIER ::= { workflowNotification 2 }
restoreNotificationprefix OBJECT IDENTIFIER ::= { restoreNotification 1 }
restoreNotificationObjects OBJECT IDENTIFIER ::= { restoreNotification 2 }
某些陷阱接收器仅映射陷阱对象标识 (OID) NOTIFICATION-TYPE 陷阱,不解释遗留 OBJECT-TYPE 陷阱。例如: NOTIFICATION-TYPE 陷阱在 NETWORKER-MIB 中定义:
--(.1.3.6.1.4.1.160.0.2.1.1.1) successfulActionNotification NOTIFICATION-TYPE OBJECTS { server, client, jobtype, jobid, status, severity, exitcode, starttime, endtime } STATUS current DESCRIPTION "workflow notification" ::= { actionNotificationprefix 1 } failedActionNotification NOTIFICATION-TYPE OBJECTS { server, client, jobtype, jobid, status, severity, exitcode, starttime, endtime } STATUS current DESCRIPTION "workflow notification" ::= { actionNotificationprefix 2 } didnotrunActionNotification NOTIFICATION-TYPE OBJECTS { server, client, jobtype, jobid, status, severity, exitcode, starttime, endtime } STATUS current DESCRIPTION "action notification for did not run." ::= { actionNotificationprefix 3 }
上述陷阱应在陷阱接收器中接收。
Resolution
无需 NetWorker作。观察到的功能取决于陷阱接收器。
NetWorker Administration Guide 声明以下内容:

这意味着,陷阱接收器仍应接收到 NOTIFICATION-TYPE 从 NetWorker 服务器发送时的陷阱。例如,当备份策略失败时。您应该会收到一个 failedActionTypeNotification 包含有关作业的结构化信息的陷阱。
无论是 nwServerNotification 和 failedActionTypeNotification 陷阱包含基本相同的细节;但是,NOTIFICATION-TYPE 陷阱更具结构化,其中 OBJECT-TYPE 通知是一个字符串中的原始数据。例如:
NOTIFICATION-TYPE failedActionNotification:

OBJECT-TYPE nwServerNotification 对于同一作业:
NetWorker 管理指南提供了有关 NetWorker SNMP 陷阱的更多详细信息。适用于NetWorker的支持 |手册和文档
可以忽略“未知陷阱”消息。请咨询陷阱接收器文档或支持团队,了解是否可以禁止显示这些消息。