退出打印视图
trapsink host communitystring trapport
trap2sink host communitystring trapport
下面的示例显示了向 snmpd.conf 文件添加行来使用 SNMP 版本 2 配置 SNMP 陷阱:
trap2sink 10.18.141.22 public 162