From 35d2396715fdf6d2183c99103886eaa4bfc43ce4 Mon Sep 17 00:00:00 2001 From: "dn3250@student.uni-lj.si" Date: Fri, 12 Dec 2014 19:15:18 +0000 Subject: Added another instructions in HOWTO. git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@59 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/snmp_agent_uptime/howtos/en/index.html | 69 ++++++++++++++++++++-- 1 file changed, 64 insertions(+), 5 deletions(-) (limited to 'kpov_judge/tasks/snmp_agent_uptime/howtos/en') 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 14562f8..f063d6d 100644 --- a/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html +++ b/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html @@ -27,23 +27,24 @@ SNMPClient in the home directory of the user test.

Instructions

+

Set up of VM VirtualBox

    -
  1. Download the following virtual images (*.vid) from the - directory +
  2. + Download the following virtual images (*.vid) from the directory with images of virtual computers:
    1. - simpleArbiterDhcp.vdi (1.5 GB) + simpleArbiterDhcp.vdi
    2. - base-student-console-2014.vdi (1.5 GB) – twice, one for SNMPServer + some-bash-console.vdi – twice, one for SNMPServer and second for SNMPClient
  3. VM VirtualBox WARNING! If you want to use one same virtual image - (base-student-console-2014.vdi) for two virtual computers + (some-bash-console.vdi) for two virtual computers (SNMPServer and SNMPClient), you must change UUID of one image.
      @@ -59,5 +60,63 @@
    + +

    Set up of SNMPServer

    +
      +
    1. + a +
        +
      1. + aa +
      2. +
      3. + aaa +
      4. +
      +
    2. +
    +

    Set up of SNMPClient

    +
      +
    1. + a +
    2. +
    3. + aa +
    4. +
    5. + aaa +
    6. +
    7. Create the user test with password test +
        +
      1. + command adduser test +
      2. +
      +
    8. +
    9. Login as user test and create program upminutes + in the home directory. This program should output the uptime of the + computer in minutes. +
        +
      1. + command nano upminutes (you can use different editor) +
      2. +
      3. + add the source code:
        + #!/bin/bash
        + echo $(awk '{print $1}' /proc/uptime) / 60 | bc
        + exit 0 +
      4. +
      5. + don't forget to make the program runtable:
        + command chmod +x /home/test/upminutes +
      6. +
      7. + test the program (it should output the uptime of the + computer in minutes)
        + command /home/test/upminutes +
      8. +
      +
    10. +
    -- cgit v1.2.1