Lab 2 of 30 · 20 min · Beginner · Objectives 1.2, 1.1
Inventory a server before its migration
Scenario
Kestrel Valley Water has a small relay in the cabinet of each pump station. ps-relay02 was installed in 2014: a 32-bit x86 board that collects the pumps' readings over its serial lines and passes them on. This winter the relays are replaced with AArch64 boards, and before anyone touches this one, operations wants it inventoried: what kernel it runs, how it boots, what hardware the kernel found, and which of its directories hold data that must move to the new board.
The inventory form is /root/inventory/report.txt, one name=value line per item with the values still empty, and /root/inventory/migrate.txt lists the directories to decide on. Take every value from what the system itself reports — uname, /proc, /sys and dmesg — not from memory or a data sheet: the checks read the same places and compare.
This lab machine is that relay: a small 32-bit PC, emulated in your browser tab. Everything you find on it is really this machine's.
Tasks
0 of 5 tasks done
Look at the form with
cat /root/inventory/report.txt. Fill inkernelwith the kernel's release,archwith the machine's hardware name, andbitswith32or64: whether that architecture is a 32-bit or a 64-bit one.uname -aprints everything at once;uname -randuname -mprint the two values alone. Edit the form withvi, or letsedput a command's own answer in:sed -i "s/^kernel=.*/kernel=$(uname -r)/" /root/inventory/report.txt.
Your work is checked each time you run a command.
The machine is new each time you open the lab. A lab you completed stays completed. The machine is a small Linux system (Buildroot, BusyBox) running in the v86 emulator, inside this tab. Licenses and source code