<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 8/29/2019 4:01 PM, xiuzhi wrote:<br>
</div>
<blockquote type="cite"
cite="mid:tencent_2C97DABC4F44BB346BFBDE36@qq.com">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<div>Hi Ratan,</div>
<div> I am try to test the snmp trap feature on openbmc
2.8.0-dev.</div>
<div>There is no more snmp util commands such as snmptrap etc.
expect phosphor-network-snmpconf .</div>
</blockquote>
<p>You need to configure the snmp trap endpoint via the REST
api(phosphor-rest-server),Please look at the configuration command
at the following link</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-snmp/blob/master/docs/snmp-configuration.md">https://github.com/openbmc/phosphor-snmp/blob/master/docs/snmp-configuration.md</a></p>
We also had a configuration in phosphor-dbus-monitor where it is
configured that for which D-bus event, snmp traps need to be sent.<br>
<p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-dbus-monitor/blob/master/src/example/example.yaml">https://github.com/openbmc/phosphor-dbus-monitor/blob/master/src/example/example.yaml</a></p>
<p>phosphor-dbus-monitor, monitors the D-bus event, and as per the
phosphor-event configuration,snmp trap is sent.</p>
Once you configure the SNMP trap endpoint and the
phosphor-dbus-event then you need to run the snmptrapd outside the
BMC to receive the SNMP traps .<br>
<p>You may run the snmptrapd inside the BMC also.</p>
NOTE: Make sure that wherever you are running the snmptrapd,
firewall is not blocking the packets.<br>
<blockquote type="cite"
cite="mid:tencent_2C97DABC4F44BB346BFBDE36@qq.com">
<div> The document ,</div>
<div> <a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-snmp/blob/master/docs/snmp-configuration.md">https://github.com/openbmc/phosphor-snmp/blob/master/docs/snmp-configuration.md</a>
, does not guide me to do the snmp trap test.</div>
<div> Would you like to give me a detail instruction to do the
snmp trap test?<font face="arial" color="#333333"><span
style="font-size: 16px;"> </span></font></div>
<div><font face="arial" color="#333333"><span style="font-size:
16px;"><br>
</span></font></div>
<div><font face="arial" color="#333333"><span style="font-size:
16px;">Best,</span></font></div>
<div><font face="arial" color="#333333"><span style="font-size:
16px;">Xiuzhi</span></font></div>
</blockquote>
</body>
</html>