SNMP

  679  yum install gcc*
  683  yum install snmp
  684  yum install snmp*
  686  yum install snmpget
  687  yum install snmp*
  690  yum install net-snmp-devel
  692  yum install net-snmp
  693  yum install net-snmp-utils


[root@python ~]# service snmpd start^C
[root@python ~]# chkconfig |grep snmpd
snmpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@python ~]# service snmpd start
Starting snmpd: [  OK  ]

获取时间
[root@python ~]# snmpget localhost -v 2c -c public .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10737) 0:01:47.37

[root@python ~]# snmpget localhost -v 2c -c public .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux python.host.com 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64

[root@python ~]# snmpget localhost -v 2c -c public .1.3.6.1.2.1.4.20
IP-MIB::ipAddrTable = No Such Object available on this agent at this OID


http://www.ireasoning.com/mibbrowser.shtml

  

posted @ 2016-06-10 19:02  similarface  阅读(200)  评论(0编辑  收藏  举报