summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html
diff options
context:
space:
mode:
authordn3250@student.uni-lj.si <dn3250@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-12 19:15:18 +0000
committerdn3250@student.uni-lj.si <dn3250@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-12 19:15:18 +0000
commit35d2396715fdf6d2183c99103886eaa4bfc43ce4 (patch)
tree0af83956f93bd61d3f1369e9011574b8f217d7eb /kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html
parent88ed3fd5588263fb4022f68291947375382d5ee5 (diff)
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
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html')
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html69
1 files changed, 64 insertions, 5 deletions
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.
</p>
<h2>Instructions</h2>
+ <h3>Set up of VM VirtualBox</h3>
<ol>
- <li>Download the following virtual images (*.vid) from the
- <a href="http://polz.si/media/uploads/kpov/virtualke/">directory</a>
+ <li>
+ Download the following virtual images (*.vid) from the directory
with images of virtual computers:
<ol type="disc">
<li>
- simpleArbiterDhcp.vdi (1.5 GB)
+ simpleArbiterDhcp.vdi
</li>
<li>
- base-student-console-2014.vdi (1.5 GB) – twice, one for SNMPServer
+ some-bash-console.vdi – twice, one for SNMPServer
and second for SNMPClient
</li>
</ol>
</li>
<li>
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 <strong>change UUID</strong>
of one image.
<ol type="disc">
@@ -59,5 +60,63 @@
<img src="..\images\01.png" width="800">
</li>
</ol>
+
+ <h3>Set up of SNMPServer</h3>
+ <ol>
+ <li>
+ a
+ <ol type="disc">
+ <li>
+ aa
+ </li>
+ <li>
+ aaa
+ </li>
+ </ol>
+ </li>
+ </ol>
+ <h3>Set up of SNMPClient</h3>
+ <ol>
+ <li>
+ a
+ </li>
+ <li>
+ aa
+ </li>
+ <li>
+ aaa
+ </li>
+ <li>Create the user <i>test</i> with password <i>test</i>
+ <ol type="disc">
+ <li>
+ command <i>adduser test</i>
+ </li>
+ </ol>
+ </li>
+ <li>Login as user <i>test</i> and create program <i>upminutes</i>
+ in the home directory. This program should output the uptime of the
+ computer in minutes.
+ <ol type="disc">
+ <li>
+ command <i>nano upminutes</i> (you can use different editor)
+ </li>
+ <li>
+ add the source code:<br>
+ <i>#!/bin/bash</i><br>
+ <i>echo $(awk '{print $1}' /proc/uptime) / 60 | bc</i><br>
+ <i>exit 0</i>
+ </li>
+ <li>
+ don't forget to make the program runtable:<br>
+ command <i>chmod +x /home/test/upminutes</i>
+ </li>
+ <li>
+ test the program (it should output the uptime of the
+ computer in minutes)<br>
+ command <i>/home/test/upminutes</i>
+ </li>
+ </ol>
+ </li>
+ </ol>
</body>
</html>