Linux 平台上使用的net-snmp 提供多种Agent 编写方式,较复杂的,可用C 调用其提供的API
接口来实现简单的情况,可利用shell 脚本,借助net-snmp 提供的接口脚本来实现。这些,可参
考/etc/snmp/snmpd.conf 中提供的说明。
例子: