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')
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
- - Download the following virtual images (*.vid) from the
- directory
+
-
+ Download the following virtual images (*.vid) from the directory
with images of virtual computers:
-
- simpleArbiterDhcp.vdi (1.5 GB)
+ simpleArbiterDhcp.vdi
-
- base-student-console-2014.vdi (1.5 GB) – twice, one for SNMPServer
+ some-bash-console.vdi – twice, one for SNMPServer
and second for SNMPClient
-
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
+
+ -
+ a
+
+ -
+ aa
+
+ -
+ aaa
+
+
+
+
+ Set up of SNMPClient
+
+ -
+ a
+
+ -
+ aa
+
+ -
+ aaa
+
+ - Create the user test with password test
+
+ -
+ command adduser test
+
+
+
+ - Login as user test and create program upminutes
+ in the home directory. This program should output the uptime of the
+ computer in minutes.
+
+ -
+ command nano upminutes (you can use different editor)
+
+ -
+ add the source code:
+ #!/bin/bash
+ echo $(awk '{print $1}' /proc/uptime) / 60 | bc
+ exit 0
+
+ -
+ don't forget to make the program runtable:
+ command chmod +x /home/test/upminutes
+
+ -
+ test the program (it should output the uptime of the
+ computer in minutes)
+ command /home/test/upminutes
+
+
+
+