blob: 14562f81cdeeae4403d89d7ef3a72f26ba68a991 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>snmp_agent_uptime</title>
</head>
<body>
<h1>snmp_agent_uptime</h1>
<h2>Purpose of the assignment</h2>
<p>
???
</p>
<h2>Quick instructions</h2>
<p>
Set up three virtual computers, SimpleArbiter with the disk image
simpleArbiterDhcp, SNMPServer and SNMPClient. Write a program
called upminutes. This program should output the uptime of the
computer in minutes. Set it up on SNMPClient in the home directory
of the user test with the password test.
</p>
<p>
Make sure that the SNMP server reports it's uptime in seconds
over SNMP under NET-SNMP-EXTEND-MIB::nsExtendOutput2Table.
</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
SNMPClient in the home directory of the user test.
</p>
<h2>Instructions</h2>
<ol>
<li>Download the following virtual images (*.vid) from the
<a href="http://polz.si/media/uploads/kpov/virtualke/">directory</a>
with images of virtual computers:
<ol type="disc">
<li>
simpleArbiterDhcp.vdi (1.5 GB)
</li>
<li>
base-student-console-2014.vdi (1.5 GB) – 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
(SNMPServer and SNMPClient), you must <strong>change UUID</strong>
of one image.
<ol type="disc">
<li>
Use this command
<i>vboxmanage internalcommands sethduuid name-of-disk.vdi</i>
to change UUID (<a href="http://www.giannistsakiris.com/2009/05/06/virtualbox-how-to-change-the-uuid-of-virtual-disk-vdi/">hint</a>).
</li>
</ol>
</li>
<li>
Final view of sets VM VirtualBox machines.<br>
<img src="..\images\01.png" width="800">
</li>
</ol>
</body>
</html>
|