LoginSignup
2
3

More than 5 years have passed since last update.

net-snmp

Last updated at Posted at 2014-01-04

Ubuntu 12.04 でのインストール方法


aptitude install snmp snmpd

公開範囲を変更

とりあえず /etc/snmp/snmpd.conf 49行目 rocommunity public localhost のコメントアウトを外すとlocalhostからのアクセスは全て許可することになる


...
 41 #  ACCESS CONTROL
...
 49 #rocommunity public  localhost
...

取得してみる

snmpwalk


% snmpwalk -v 2c -c public localhost
iso.3.6.1.2.1.1.1.0 = STRING: "Linux ubuntu1204 3.2.0-56-generic-pae #86-Ubuntu SMP Wed Oct 23 17:51:27 UTC 2013 i686"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
...

MIBのOUIがパースされていない。
/etc/snmp/snmp.conf の mibs の行をコメントアウトする


#
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loaging them by commenting out the following line.
mibs :

もう一回


% snmpwalk -v 2c -c public localhost
SNMPv2-MIB::sysDescr.0 = STRING: Linux ubuntu1204 3.2.0-56-generic-pae #86-Ubuntu SMP Wed Oct 23 17:51:27 UTC 2013 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
...

参考リンク

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3