summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/snmp_agent_uptime/howtos/en
diff options
context:
space:
mode:
authorao6744@student.uni-lj.si <ao6744@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-08-29 10:10:33 +0000
committerao6744@student.uni-lj.si <ao6744@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-08-29 10:10:33 +0000
commit858a51fd42864351d399cd7b011c85b5a1fa4e07 (patch)
treedeaaa8bc30d724af52705935f8ddecdcfdbf7736 /kpov_judge/tasks/snmp_agent_uptime/howtos/en
parent23fbc1adf3a374f40e52898117d71e34723b803a (diff)
popravljena navodila
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@304 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime/howtos/en')
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html27
1 files changed, 18 insertions, 9 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 756cc72..bef6792 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html
+++ b/kpov_judge/tasks/snmp_agent_uptime/howtos/en/index.html
@@ -19,7 +19,7 @@
</p>
<p>
Write a script called beri.sh that reads the value from the
- OID 1.3.6.1.4.1.8072.1.3.2.4.1.4 on SNMPServer. Set it up on
+ OID 1.3.6.1.4.1.8072.1.3.2.4.1.2 on SNMPServer. Set it up on
SNMPClient in the home directory of the user test.
</p>
<h2>Instructions</h2>
@@ -60,6 +60,8 @@
<h3>Set up of SNMPServer machine</h3>
<ol>
<li>
+ setup network as “Bridged Adapter” -> Machine-> Settings ->Network
+
Install snmpd and snmp packages and tools for inspecting the
data available over SNMP.
<ol type="disc">
@@ -85,7 +87,7 @@
(you can use different editor)
</li>
<li>
- (un)comment these four lines as below:<br>
+ Check this 4 rows and make sure they look like this:<br>
<i># Listen for connections from the local system only<br>
# agentAddress udp:127.0.0.1:161<br>
# Listen for connections on all interfaces (both IPv4 *and* IPv6)<br>
@@ -102,7 +104,7 @@
rocommunity students 0.0.0.0/0
</li>
<li>
- write correct network address = command <i>ifconfig -a</i>
+ change 0.0.0.0./0 into correct address <i>ifconfig -a</i>
</li>
</ol>
</li>
@@ -170,7 +172,7 @@
1.3.6.1.4.1.8072.1.3.2.4.1.2</i>
</li>
<li>
- it should return one strings with "Uptime in seconds: xyz"
+ you should get string: "Uptime in seconds: xyz"
</li>
</ol>
</li>
@@ -271,7 +273,7 @@
uptime=$(&lt;/proc/uptime)<br>
uptime=${uptime%%.*}<br>
minutes=$(( uptime / 60 ))<br>
- echo "Uptime in minutes:" $minutes<br>
+ echo $minutes<br>
exit 0</i>
</li>
<li>
@@ -285,9 +287,9 @@
</li>
</ol>
</li>
- <li><strong>[NOT 100 % DONE YET]</strong> As user <i>test</i> and create next script called
+ <li><strong> As user <i>test</i> and create next script called
<i>beri.sh</i> that reads the value from the OID
- 1.3.6.1.4.1.8072.1.3.2.4.1.4. on SNMPServer. Set it up on SNMPClient
+ 1.3.6.1.4.1.8072.1.3.2.4.1.2. on SNMPServer. Set it up on SNMPClient
in the home directory of the user test.
<ol type="disc">
<li>
@@ -296,15 +298,22 @@
<li>
add the source code:<br>
<i>#!/bin/bash<br>
- snmpwalk -c students -v1 IPaddressOfServer 1.3.6.1.4.1.8072.1.3.2.4.1.4<br>
+ snmpwalk -c students -v1 IPServerAddress 1.3.6.1.4.1.8072.1.3.2.4.1.2<br>
exit 0</i>
</li>
<li>
don't forget to make the program runnable:<br>
command <i>chmod +x /home/test/upminutes</i>
+ you can test it with <i>./beri.sh</i>
</li>
</ol>
</li>
- </ol>
+ </ol>
+
+ <h3> Setting SimpleArbiter </h3>
+ User: tester
+ Password: test
+
+ apt-get install libsnmp-python
</body>
</html>