From 2a627b9a975e7156f74d8e0d6c358d5ef4b65c26 Mon Sep 17 00:00:00 2001 From: "dn3250@student.uni-lj.si" Date: Fri, 12 Dec 2014 22:37:03 +0000 Subject: Next instructions HOWTO. git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@66 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/snmp_agent_uptime/howtos/en/index.html | 87 +++++++++++++++++++--- 1 file changed, 76 insertions(+), 11 deletions(-) (limited to 'kpov_judge/tasks/snmp_agent_uptime/howtos') diff --git a/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html b/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html index f063d6d..e6ecc16 100644 --- a/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html +++ b/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html @@ -64,21 +64,86 @@

Set up of SNMPServer

  1. - a -
      -
    1. - aa -
    2. -
    3. - aaa -
    4. -
    + Install snmpd and snmp packages and tools for inspecting the + data available over SNMP. +
      +
    1. + command apt-get install snmpd snmp snmp-mibs-downloader +
    2. +
    +
  2. + RECOMMENDATION! Before doing any changes to your /etc/snmp/snmpd.conf + file take a copy of original file. +
      +
    1. + command cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig +
    2. +
    +
  3. +
  4. + Set up the snmp server to allow all other computers to access it = edit + snmpd.conf file. +
      +
    1. + command nano /etc/snmp/snmpd.conf + (you can use different editor) +
    2. +
    3. + (un)comment these four lines as below:
      + # Listen for connections from the local system only
      + #agentAddress udp:127.0.0.1:161
      + # Listen for connections on all interfaces (both IPv4 *and* IPv6)
      + agentAddress udp:161,udp6:[::1]:161
      +
    4. +
    +
  5. +
  6. + Add a group (community) of computers we deem to be worthy of + accessing all data. This group will be called students = again edit + snmpd.conf file. +
      +
    1. + rocommunity students 0.0.0.0/0 +
    2. +
    +
  7. +
  8. + OPTIONAL CONFIGURATION. Lower in the same file you can set the + location of the computer snmpd is running on and the name + of the administrator. +
      +
    1. + find under # SYSTEM INFORMATION +
    2. +
    +
  9. +
  10. + You need to restart the snmp services. +
      +
    1. + command /etc/init.d/snmpd restart +
    2. +
  11. +
  12. + You can test your configuration. +
      +
    1. + command snmpwalk localhost -c public -v1 +
    2. +
    +

Set up of SNMPClient

  1. - a + Install snmp package on client side and tools for inspecting the + data available over SNMP. +
      +
    1. + command apt-get install snmp snmp-mibs-downloader +
    2. +
  2. aa @@ -107,7 +172,7 @@ exit 0
  3. - don't forget to make the program runtable:
    + don't forget to make the program runnable:
    command chmod +x /home/test/upminutes
  4. -- cgit v1.2.1