Sign inSign up free

1457. Build an Ops Toolkit, Stage 1: A Real Command Line

easy 10 XP ~12 minHands-on lab

This is stage 1 of 8 of the opskit project. Over the stages you'll build one command-line tool that the ops team uses every day: configuration, log analysis, health checks, alerts and reports. Your code lives in ~/opskit, is saved as you work, and carries over from stage to stage. At the end you can download it.

Right now ~/opskit holds an empty package. Run it from that folder with python3 -m opskit.

Task

  • python3 -m opskit --version prints opskit 0.1.0 (use __version__ from opskit/__init__.py).
  • python3 -m opskit hello NAME prints hello NAME.
  • Without a command, or with an unknown one, it prints a usage message to stderr and exits 2.
  • Build it so commands can be added later: every next stage adds one (config, logs, health, ...).

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Project: Build an Ops Toolkit in Python · stage 1 of 8

Create a free account to keep your code between stages.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.