Ticket #43009: patch-net-snmp-Portfile.diff
File patch-net-snmp-Portfile.diff, 1.2 KB (added by jul_bsd@…, 10 years ago) |
---|
-
net/net-snmp/Portfile
old new 5 5 6 6 name net-snmp 7 7 version 5.7.3 8 revision 1 8 9 categories net 9 10 license BSD 10 11 platforms darwin … … 92 93 } 93 94 } 94 95 96 install.asroot yes 97 98 notes-append " 99 To finish configuring snmp server 100 # ${prefix}/bin/snmpconf -g basic_setup 101 # mv snmpd.conf ${prefix}/etc/ 102 $ sudo port load net-snmp 103 104 Check it with 105 $ snmpwalk -v2c -c 'your-community-string' 127.0.0.1 system 106 107 You are advise to use snmp V3 for authentication and read-only configuration unless necessary. 108 $ snmpwalk -v3 -On -u <user> -l AuthPriv -a SHA -A <auth_password> -X <encryption_password> <HOST_IP> system 109 110 " 111 95 112 startupitem.create yes 96 startupitem.executable ${prefix}/sbin/snmpd -f 113 startupitem.executable ${prefix}/sbin/snmpd -c ${prefix}/etc/snmpd.conf -p ${prefix}/var/run/snmpd.pid -f 114 startupitem.pidfile ${prefix}/var/run/snmpd.pid 97 115 98 116 livecheck.type regex 99 117 livecheck.url ${homepage}download.html