Build an asset register that warns before support runs out
Task
Build an asset register for the lab and a set of fictional production servers, with warranty and support end dates, then write the check that lists everything whose support ends within 180 days. Add the licensing arithmetic for one server so the register answers the two questions audits ask: what do we own, and are we covered.
Steps
- Write
lab/assets/register.csvwith headerasset_tag,hostname,model,serial,location,owner,purchased,support_ends,statusfor your lab machines and six fictional servers. Make two of the support dates fall within the next 180 days and one in the past. - Write
lab/assets/expiring.shthat prints every asset whosesupport_endsis within 180 days of today or already past, with the number of days remaining. - Run it and save the output to
lab/assets/expiring.txt. - For a fictional two-socket server with 16 cores per processor, work out the per-core licence count for an operating system that licenses every physical core with a minimum of 16 cores per server, and record
cores:andcore_licences:inlab/assets/licensing.txt. - Record in
lab/assets/decision.txtwhat you would do about the asset whose support has already ended.
Verify
These checks run in a POSIX shell: Terminal on macOS or Linux, and on Windows Git Bash (it comes with Git for Windows) or WSL. A stock Windows PowerShell or Command Prompt has no awk or grep, so there the first line fails.
awk -F, 'NR>1 && NF!=9 {bad++} END {print bad+0" malformed row(s)"}' lab/assets/register.csv
awk -F, 'NR>1 {t[$1]++} END {for (a in t) if (t[a]>1) d++; print d+0" duplicate tag(s)"}' lab/assets/register.csv
grep -c . lab/assets/expiring.txt
grep -Ec '^core_licences: 32$' lab/assets/licensing.txt
grep -Eic 'renew|replace|accept|retire' lab/assets/decision.txt
No malformed rows, no duplicate asset tags, and at least three assets reported as expiring or expired. Two sockets of 16 cores is 32 physical cores, above the 16-core minimum, so 32 core licences. The decision must be one of renew, replace, or knowingly accept the risk -- not "noticed".
Notes
Real registers also track licences and support contracts as items of their own, linked to the assets they cover, so that retiring a server frees its licences instead of leaving them counted against something that no longer exists.
This is an independent study companion for CompTIA Server+ SK0-005 and is not produced by or endorsed by CompTIA.