From c5a8b2c72841ad0b58fb36870624737634778056 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 13 Oct 2018 03:10:03 +0200 Subject: HTMLize instructions and use jinja2 to render them Only fixed tasks for the kpov_2018 class for now. --- kpov_judge/tasks/snmp_agent_uptime/task.py | 81 ++++++++++++++++-------------- 1 file changed, 43 insertions(+), 38 deletions(-) (limited to 'kpov_judge/tasks/snmp_agent_uptime/task.py') diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py index 7b3143c..919fcb4 100644 --- a/kpov_judge/tasks/snmp_agent_uptime/task.py +++ b/kpov_judge/tasks/snmp_agent_uptime/task.py @@ -2,44 +2,49 @@ # TODO: finish this. instructions = { - 'si':""" -Naloga: Postavi tri navidezne racunalnike: -- SimpleArbiter s sliko diska simpleArbiterDhcpGW, -- SNMPServer in -- SNMPClient. -Napiši program upminutes, ki bo izpisal v minutah koliko casa je racunalnik -vklopljen. - -Postavi ga na SNMPClient v domaci imenik uporabnika test z geslom test. - -Poskrbi, da bo SNMP strežnik prek SNMP pod -OID {SNMP_UPTIME_OID} sporočal, koliko casa je vklopljen -v sekundah. - -Napiši skripto, poimenovano beri.sh, ki prek SNMP prebere vrednost s -simpleArbiterDhcpGWSNMP na OID {SNMP_CLIENT_OID} kot član skupnosti -"testers". - -Postavi jo na SNMP klienta, v domaci imenik uporabnika test z geslom test. - -Poskrbi, da bodo podatki na SNMPServer dostopni za skupino (community) studentje. -""", - 'en':""" -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. - -Make sure that the SNMP server reports it's uptime in seconds over SNMP under -OID {SNMP_UPTIME_OID}. - -Write a script called beri.sh that reads the value from the OID -{SNMP_CLIENT_OID} on simpleArbiterDhcpGWSNMP as a member of the -community "testers". -Set it up on SNMPClient in the home directory of the user test. - -Make all the data available over SNMP readable by the "studentje" community. -""" + 'si': '''\ +

+Postavi tri navidezne računalnike: SimpleArbiter, SNMPServer in SNMPClient. + +

+Napiši program upminutes, ki bo izpisal v minutah, koliko časa je racunalnik vklopljen. Postavi ga na SNMPClient v domači imenik uporabnika test z geslom test. + +

+Poskrbi, da bo strežnik SNMP pod OID + +

{{SNMP_UPTIME_OID}}
+ +

+sporočal, koliko časa je vklopljen v sekundah. + +

+Napiši skripto, poimenovano beri.sh, ki prek SNMP prebere vrednost s simpleArbiterDhcpGWSNMP na OID + +

{{SNMP_CLIENT_OID}}
+ +

+kot član skupnosti testers. Postavi jo na SNMPClient, v domači imenik uporabnika test. Poskrbi, da bodo podatki na SNMPServer dostopni za skupino (angl. community) studentje. +''', + 'en': '''\ +

+Set up three virtual computers: SimpleArbiter, 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. + +

+Make sure that the SNMP server reports its uptime in seconds over SNMP under OID + +

{{SNMP_UPTIME_OID}}
+ +

+Write a script called beri.sh that reads the value from the OID + +

{{SNMP_CLIENT_OID}}
+ +

+on simpleArbiterDhcpGWSNMP as a member of the community testers. Set it up on SNMPClient in the home directory of the user test. Make all the data available over SNMP readable by the community studentje. +''', } computers = { -- cgit v1.2.1