码迷,mamicode.com
首页 > 其他好文 > 详细

SNMP

时间:2016-06-10 20:28:18      阅读:235      评论:0      收藏:0      [点我收藏+]

标签:

  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

  

SNMP

标签:

原文地址:http://www.cnblogs.com/similarface/p/5574066.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!