hmLoadTopic({
hmKeywords:"snmp,snmp 服務配置,snmp 陷阱服務,snmp 陷阱軟體配置",
hmTitle:"如何配置 SNMP 陷阱服務",
hmDescription:"若要成功接收 SNMP 訊息，則必須配置 SNMP 陷阱服務。在適當情況下，針對作業系統依照下列配置步驟：",
hmPrevLink:"admin_ntf_distribution.html",
hmNextLink:"fs_post_installation_tasks.html",
hmParentLink:"admin_ntf_notifications.html",
hmBreadCrumbs:"<a href=\"using.html\">使用 ESET PROTECT On-Prem<\/a> &gt; <a href=\"working_with_era.html\">ESET PROTECT On-Prem 主功能表<\/a> &gt; <a href=\"admin_ntf_notifications.html\">通知<\/a>",
hmTitlePath:"使用 ESET PROTECT On-Prem > ESET PROTECT On-Prem 主功能表 > 通知 > 如何配置 SNMP 陷阱服務",
hmHeader:"<h1 class=\"p_Heading1\"><span class=\"f_Heading1\">如何配置 SNMP 陷阱服務<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_Normal\">若要成功接收 SNMP 訊息，則必須配置 SNMP 陷阱服務。在適當情況下，針對作業系統依照下列配置步驟：<\/p>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Windows<\/span><\/h2>\n\r<h3 class=\"p_Heading3\" style=\"page-break-after: avoid;\"><span class=\"f_Heading3\">先決條件<\/span><\/h3>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 13px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"font-family: Arial,\'Lucida Sans Unicode\',\'Lucida Grande\',\'Lucida Sans\';display:inline-block;width:13px;margin-left:-13px\">&#8226;<\/span><span class=\"f_UI\">簡易網路管理通訊協定 (SNMP)<\/span><span class=\"f_NormalList\"> 服務必須安裝在已安裝 ESET PROTECT 伺服器的機器上，且該機器上也將安裝 SNMP 陷阱軟體。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 13px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"font-family: Arial,\'Lucida Sans Unicode\',\'Lucida Grande\',\'Lucida Sans\';display:inline-block;width:13px;margin-left:-13px\">&#8226;<\/span><span class=\"f_NormalList\">上述兩種電腦都必須位在相同的子網路。<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 32px; margin-left: 0;\"><span class=\"f_NormalList\" style=\"font-family: Arial,\'Lucida Sans Unicode\',\'Lucida Grande\',\'Lucida Sans\';display:inline-block;width:13px;margin-left:-13px\">&#8226;<\/span>ESET PROTECT 伺服器電腦上必須設定 SNMP 服務。<\/p>\n\r<h3 class=\"p_Heading3\" style=\"page-break-after: avoid;\"><span class=\"f_Heading3\">SNMP 服務設定 (ESET PROTECT 伺服器)<\/span><\/h3>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">1.<\/span><span class=\"f_NormalList\">按下 Windows 按鍵 + R 來開啟執行中對話方塊，在 <\/span><span class=\"f_UI\">[開啟]<\/span><span class=\"f_NormalList\"> 欄位中鍵入 <\/span><span class=\"f_Term\">Services.msc<\/span><span class=\"f_NormalList\">，再按下 <\/span><span class=\"f_UI\">[Enter]<\/span><span class=\"f_NormalList\">。搜尋 SNMP Service。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">2.<\/span><span class=\"f_NormalList\">開啟 <\/span><span class=\"f_UI\">[陷阱]<\/span><span class=\"f_NormalList\"> 索引標籤，在 <\/span><span class=\"f_UI\">[群體名稱]<\/span><span class=\"f_NormalList\"> 欄位中鍵入 <\/span><span class=\"f_UI\">[公開]<\/span><span class=\"f_NormalList\">，再按一下 <\/span><span class=\"f_UI\">[新增到清單]<\/span><span class=\"f_NormalList\">。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">3.<\/span><span class=\"f_NormalList\">按一下 <\/span><span class=\"f_UI\">[新增]<\/span><span class=\"f_NormalList\">，並針對已安裝 SNMP 陷阱軟體電腦在適當欄位中鍵入<\/span><span class=\"f_UI\">主機名稱、IP 或 IPX 位址<\/span><span class=\"f_NormalList\">，接著再按一下 <\/span><span class=\"f_UI\">[新增]<\/span><span class=\"f_NormalList\">。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">4.<\/span><span class=\"f_NormalList\">前往 <\/span><span class=\"f_UI\">[安全性]<\/span><span class=\"f_NormalList\"> 索引標籤。按一下 <\/span><span class=\"f_UI\">[新增]<\/span><span class=\"f_NormalList\"> 來顯示 <\/span><span class=\"f_UI\">[SNMP 服務配置]<\/span><span class=\"f_NormalList\"> 視窗。在 <\/span><span class=\"f_UI\">[群體名稱]<\/span><span class=\"f_NormalList\"> 欄位中鍵入 <\/span><span class=\"f_UI\">[公開]<\/span><span class=\"f_NormalList\">，再按一下 <\/span><span class=\"f_UI\">[新增]<\/span><span class=\"f_NormalList\">。權限將設為 <\/span><span class=\"f_UI\">[唯讀]<\/span><span class=\"f_NormalList\">，此為正常設定。<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 39px; margin-left: 0;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">5.<\/span>確定 <span class=\"f_UI\">[從下列主機接受 SNMP 封包]<\/span> 已選取，再按一下 <span class=\"f_UI\">[確定]<\/span> 以進行確認。SNMP 服務尚未配置。<\/p>\n\r<h3 class=\"p_Heading3\" style=\"page-break-after: avoid;\"><span class=\"f_Heading3\">SNMP 陷阱軟體配置 (用戶端)<\/span><\/h3>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">1.<\/span><span class=\"f_NormalList\">確保已在 SNMP 伺服器已安裝在用戶端機器上。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">2.<\/span><span class=\"f_NormalList\">安裝陷阱接收器應用ˊ程式。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">3.<\/span><span class=\"f_NormalList\">配置陷阱接收器應用程式，以便從 ESET PROTECT 伺服器 (這包含 ESET PROTECT 伺服器 IP 位址和連接埠設定)。<\/span><\/p>\n\r<p class=\"p_NormalList\" style=\"text-indent: 0; page-break-inside: avoid; page-break-after: avoid; padding-left: 20px; margin-left: 19px;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">4.<\/span><span class=\"f_NormalList\">確定用戶端機械上的防火牆可讓透過在之前步驟設定的 SNMP 通訊進行網路通訊。<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 39px; margin-left: 0;\"><span class=\"f_NormalList\" style=\"display:inline-block;width:20px;margin-left:-20px\">5.<\/span>陷阱接收器應用程式現在可讓您從 ESET PROTECT 伺服器接收訊息。<\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 10px 0;\"><table class=\"Table_note\" >\n\r<tr class=\"Table_note\">\n\r<td class=\"Table_note\" style=\"width:4px; background-color:#3DAAE1;\"><br \/>\n\r<\/td>\n\r<td class=\"Table_note\" style=\"width:20px;\"><p class=\"p_Normal\"><img alt=\"注意\" title=\"注意\" width=\"20\" height=\"20\" style=\"margin:2px 0 0 0;width:20px;height:20px;border:none\" src=\".\/images\/note.svg\"\/><\/p>\n\r<\/td>\n\r<td class=\"Table_note\"><p class=\"p_Normal\">ESET PROTECT 虛擬設備中不支援 SNMP 陷阱。<\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Linux<\/span><\/h2>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">1.<\/span>執行下列一個命令來安裝 snmpd 套件：<br \/>\n\r<span class=\"f_CodeHighlighted\">apt install snmpd snmp<\/span> (Debian 和 Ubuntu 發送)<br \/>\n\r<span class=\"f_CodeHighlighted\">yum install net-snmp<\/span> (紅帽)<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">2.<\/span>開啟 <span class=\"f_Path\">\/etc\/default\/snmpd<\/span> 檔案，並進行下列屬性編輯：<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">#SNMPDOPTS=\'-Lsd&nbsp;-Lf&nbsp;\/dev\/null&nbsp;-u&nbsp;snmp&nbsp;-g&nbsp;snmp&nbsp;-I&nbsp;-smux&nbsp;-p&nbsp;\/var\/run\/snmpd.pid\'<\/span><\/p>\n\r<p class=\"p_Normal\">新增 <span class=\"f_Term\"># <\/span>將完全停用這一行。<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">SNMPDOPTS=\'-Lsd&nbsp;-Lf&nbsp;\/dev\/null&nbsp;-u&nbsp;snmp&nbsp;-I&nbsp;-smux&nbsp;-p&nbsp;\/var\/run\/snmpd.pid&nbsp;-c&nbsp;\/etc\/snmp\/snmpd.conf\'<\/span><\/p>\n\r<p class=\"p_Normal\">新增這一行到檔案中。<\/p>\n\r<p class=\"p_Normal\"><span class=\"f_CodeHighlighted\">TRAPDRUN=yes<\/span><br \/>\n\r變更 <span class=\"f_Term\">trapdrun<\/span> 屬性成 <span class=\"f_Term\">yes<\/span>。<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">3.<\/span>建立原始 <span class=\"f_Term\">snmpd.conf<\/span> 檔案的備份。檔案將於稍後編輯。<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">mv&nbsp;\/etc\/snmp\/snmpd.conf&nbsp;\/etc\/snmp\/snmpd.conf.original<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">4.<\/span>建立新的 <span class=\"f_Term\">snmpd.conf<\/span> 檔案，並新增下面這些行：<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">rocommunity&nbsp;public<\/span><br \/>\n\r<span class=\"f_CodeHighlighted\">syslocation&nbsp;&quot;Testing&nbsp;ESET&nbsp;PROTECT&nbsp;On-Prem&quot;<\/span><br \/>\n\r<span class=\"f_CodeHighlighted\">syscontact&nbsp;administrator@eset_protect.com<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">5.<\/span>開啟 <span class=\"f_Path\">\/etc\/snmp\/snmptrapd.conf<\/span> 檔案，並在檔案結尾新增下列行：<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">authCommunity&nbsp;log,execute,net&nbsp;public<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">6.<\/span>鍵入下列命令來開啟 SNMP 管理員服務，並記錄外來的陷阱：<\/p>\n\r<p class=\"p_Normal\" style=\"margin: 0 0 10px 26px;\"><span class=\"f_CodeHighlighted\">\/etc\/init.d\/snmpd restart<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"margin: 0 0 10px 26px;\">或<\/p>\n\r<p class=\"p_Normal\" style=\"margin: 0 0 10px 26px;\"><span class=\"f_CodeHighlighted\">service snmpd restart<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 20px; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:20px;margin-left:-20px\">7.<\/span>若要檢查陷阱是否正常運作以及獲取訊息，請執行下面命令：<\/p>\n\r<p class=\"p_CodeHighlighted\" style=\"page-break-inside: avoid;\"><span class=\"f_CodeHighlighted\">tail&nbsp;-f&nbsp;\/var\/log\/syslog&nbsp;|&nbsp;grep&nbsp;-i&nbsp;TRAP<\/span><\/p>\n\r"
})
