Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーションから (net-snmp API を使用して) トラップを送信するコードを作成する必要があります。ありがとう、ギル
Net-snmpには、トラップの生成に使用できるsnmptrapというコマンドライン アプリケーションが含まれています。ここでチュートリアルを見て、そのソースをここからダウンロードできます。\net-snmp-5.5\apps\snmptrap.cは 395 行の長さなので、「簡単なサンプル コード」と見なすことができます。