# cat /usr/local/etc/rc.d/snmpd.sh #!/bin/sh if [ -x /usr/local/sbin/snmpd -a -e /usr/local/share/snmp/snmpd.conf ];then /usr/local/sbin/snmpd fi |
[mymachine:/usr/local/src/ucd-snmp-4.2.5]# cp EXAMPLE.conf /usr/local/share/snmp/snmpd.conf [mymachine:/usr/local/src/ucd-snmp-4.2.5]# chown root /usr/local/share/snmp/snmpd.conf [mymachine:/usr/local/src/ucd-snmp-4.2.5]# vi /usr/local/share/snmp/snmpd.conf |
[mymachine:/usr/local/src/ucd-snmp-4.2.5]# /usr/local/sbin/snmpd |
[mymachine:/home/too]% snmpwalk -v 1 localhost [コミュニティ名] system |