Install SNMP Centos (Yum)

by Perk1z on July 8, 2008


[root@titik ~]# yum install net-snmp net-snmp-libs net-snmp-utils
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for net-snmp to pack into transaction set.
net-snmp-5.1.2-11.el4_6.1 100% |=========================| 36 kB 00:01
—> Package net-snmp.i386 0:5.1.2-11.el4_6.11.2 set to be updated
—> Downloading header for net-snmp-utils to pack into transaction set.
net-snmp-utils-5.1.2-11.e 100% |=========================| 26 kB 00:00
—> Package net-snmp-utils.i386 0:5.1.2-11.el4_6.11.2 set to be updated
–> Running transaction check
–> Processing Dependency: libsensors.so.3 for package: net-snmp
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for lm_sensors to pack into transaction set.
lm_sensors-2.8.7-2.40.5.i 100% |=========================| 23 kB 00:01
—> Package lm_sensors.i386 0:2.8.7-2.40.5 set to be updated
–> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
net-snmp i386 5.1.2-11.el4_6.11.2 update 505 k
net-snmp-utils i386 5.1.2-11.el4_6.11.2 update 157 k
Installing for dependencies:
lm_sensors i386 2.8.7-2.40.5 base 426 k

Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.1 M
Is this ok [y/N]:
Downloading Packages:
(1/3): lm_sensors-2.8.7-2 100% |=========================| 426 kB 00:12
(2/3): net-snmp-5.1.2-11. 100% |=========================| 505 kB 00:17
(3/3): net-snmp-utils-5.1 100% |=========================| 157 kB 00:06
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: lm_sensors ######################### [1/3]
Installing: net-snmp ######################### [2/3]
Installing: net-snmp-utils ######################### [3/3]

Installed: net-snmp.i386 0:5.1.2-11.el4_6.11.2 net-snmp-utils.i386 0:5.1.2-11.el4_6.11.2
Dependency Installed: lm_sensors.i386 0:2.8.7-2.40.5
Complete!

[root@titik etc]# cd snmp/
[root@titik snmp]# pwd
/etc/snmp

snmpd.conf
rocommunity titik

[root@titik log]# snmpwalk -c titik -v 1 localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux titik.org 2.6.9-67.0.1.ELsmp #1 SMP Wed Dec 19 16:01:12 EST 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (7245) 0:01:12.45
SNMPv2-MIB::sysContact.0 = STRING: root@localhost
SNMPv2-MIB::sysName.0 = STRING: titik.org
SNMPv2-MIB::sysLocation.0 = STRING: Unknown
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00

[root@titik log]# chkconfig –add snmpd
[root@titik log]# service snmpd restart
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]

Popularity: 4% [?]


Web Hosting Pal - www.webhostingpal.com

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image