SRE / sysreseval Documentation¶
Utilisation
Authoring Labs
- Lab Authoring Guide
- The authoring workflow on the CLI
- Identifying a running lab and where its files live
- The four classes at a glance
DataclassFlavorclassNetSchemeclass- State methods
- Lifecycle states:
save/restore @sre_statedecorator- Per-machine operations
- File transfer between host and container
- Host-side operations
- Switch operations
- Multi-step state setup — the
stepparameter - Reading command results —
multi_pass=True - Network config helpers (from
/opt/sre/lib/net_config.py) - State helpers (from
/opt/sre/lib/state_helpers.py)
- Lifecycle states:
Gradeclass- Grading Library Reference
- DHCP helpers (from
/opt/sre/lib/dhcp.py) - Mail helpers (from
/opt/sre/lib/smtp.py) - TLS helpers (from
/opt/sre/lib/tls.py) - DNS helpers (from
/opt/sre/lib/dns.py) - HTTP proxy helpers (from
/opt/sre/lib/http_proxy.py) - VRRP / keepalived helpers (from
/opt/sre/lib/vrrp.py) - VoIP helpers (from
/opt/sre/lib/voip.py) - SNMP helpers (from
/opt/sre/lib/snmp.py) - Nagios helpers (from
/opt/sre/lib/nagios.py) - Prometheus helpers (from
/opt/sre/lib/prometheus.py) - Central logs helpers (from
/opt/sre/lib/rsyslog.py) - NetFlow helpers (from
/opt/sre/lib/netflow.py) - Traffic generator (from
/opt/sre/lib/traffic.py) - TCP port helpers (from
/opt/sre/lib/grade_helpers.py) - OSPF helpers (from
/opt/sre/lib/frr.py) - BGP helpers (from
/opt/sre/lib/frr.py) - RIP helpers (from
/opt/sre/lib/frr.pyand/opt/sre/lib/rip.py) - Standard machine wiring (from
/opt/sre/lib/std.py) - Miscellaneous generators (from
/opt/sre/lib/utils.py) - Network inspection helpers (from
/opt/sre/lib/net_config.py) - Switch helpers (from
/opt/sre/lib/switch.py) - Ping helper (from
/opt/sre/lib/ping.py) - SSH helpers (from
/opt/sre/lib/ssh.py) - Packet capture helpers (from
/opt/sre/lib/pcap_gen.py)
- DHCP helpers (from
- Module-level Attributes
- Complete Minimal Example
- The list of labs
- Hubs, switches and VLANs
- Translating a Lab
Installation and Setup
Reference
- GUI Reference —
sysreseval - CLI Reference —
sre- Global options
- Dual commands
sre start [-d data] [-p] [--flavor … | --flavor-json … | --set-flavor-name …] [--xauth-file <file>] [--instructor-mode] <lab> [data_version]sre stop <running_lab>sre stop-allsre save [-o <file>] [--full-images] <running_lab>sre restore [--instructor-mode] <save_file | ->sre wipesre connect [--shell <shell>] [--exec <argument…>] [--no-records] <running_lab> <device>sre eval [-p path] [--auto-eval] <running_lab>sre state <running_lab> <state_name>
- Admin-only commands
sre exec [--shell <shell>] <running_lab> <device> <command…>sre set-instructor-mode <running_lab>andsre remove-instructor-mode <running_lab>sre eval-all [--display-grades / --no-display-grades]sre check [-p] <lab> [<state>]sre watch [--timeout <sec>] [--interval <sec>] [-H <regexp>] [-S <time>] [-L] <dir…>sre preload-images [--random-delay <sec>] [--progress] <file_or_dir…>sre make-titles [-o <file> | -r] [-d] <directory>sre update [--main | --ref <tag|branch|commit>] [--check | --force] [-y] [--venv]
- Exam management
- Post-exam management
sre cat [options] <file…>sre check-eval [-s <srelab>] <file…>sre re-eval -s <srelab> -p <prefix> [-d <outdir>] [-r] [--update-web] <file_or_dir…>sre sheet -o <output.ods> [-r] [-S <time>] [-F <time>] [--separate-instances] <file_or_dir…>sre outline [-o <summary.ods>] [-d <pdf_dir>] [-r] [-S <time>] [-F <time>] [--lang <lang>] [--no-timeline] [--remaining-time] [--separate-instances] [--users-file <file>] <file_or_dir…>
- Internal commands (GUI-only)
sre list [--with-titles] [--include-exam-only]sre export <running_lab> [--sep <N>] [--curved] [--shapes] [--reverse] [--random-seed <N>]sre report <sheet|outline|summary> [--lang <lang>] [--separate-instances] [--bonus-in-prefix] [--no-timeline] [--remaining-time] [--no-parts] [-o <file>]sre pre-start-examsre start-examsre eval-examsre end-exam
- Exam Reference
- Runtime & Internals