4 069
contributi
Riga 102: | Riga 102: | ||
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance | SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance | ||
</pre> | </pre> | ||
===Configurazione dei client=== | |||
Sul lato client è necessario installare i seguenti pacchetti: | |||
<pre> | |||
#apt-get install snmp scli tkmib | |||
</pre> | |||
Quindi occorre modificare il file di configurazione <tt>/etc/snmp/snmp.conf</tt> come segue: | |||
<pre> | |||
nano /etc/snmp/snmp.conf | |||
</pre> | |||
* Sostituite | |||
<pre> | |||
com2sec paranoid default public | |||
#com2sec readonly default public | |||
#com2sec readwrite default private | |||
</pre> | |||
con | |||
<pre> | |||
#com2sec paranoid default public | |||
com2sec readonly 127.0.0.1 public | |||
#com2sec readwrite default private | |||
</pre> | |||
Riavviate il demone: | |||
<pre> | |||
#/etc/init.d/snmp restart | |||
</pre> | |||
e testate la configurazione: | |||
<pre> | |||
#snmpwalk -v 2c -c public indirizzo.ip.del.server system | |||
</pre> | |||
Dovreste ottenere qualcosa di simile: | |||
<pre> | |||
SNMPv2-MIB::sysDescr.0 = STRING: Linux sritest 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686 | |||
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 | |||
SNMPv2-MIB::sysUpTime.0 = Timeticks: (168871) 0:28:08.71 | |||
SNMPv2-MIB::sysContact.0 = STRING: webmaster@debianhelp.co.uk | |||
SNMPv2-MIB::sysName.0 = STRING: debiantest | |||
SNMPv2-MIB::sysLocation.0 = STRING: maindatacenter | |||
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. | |||
</pre>. |