CI / test (3.10) (push) Successful in 26s
CI / test (3.11) (push) Successful in 24s
CI / test (3.12) (push) Successful in 26s
CI / test (3.10) (pull_request) Successful in 25s
CI / test (3.11) (pull_request) Successful in 24s
CI / test (3.12) (pull_request) Successful in 25s
The write side NetOrk/netork#799 needs, on both drivers. - Packages: get_packages (FreeBSD `pkg query` with the repository as source, nothing on a classic system without pkg; OpenBSD `pkg_info`), install_package / uninstall_package as root (`pkg install`/`pkg delete`, `pkg_add -I`/`pkg_delete`), names checked before anything is sent, a failure raised with what the tool printed. - Updates: get_available_updates. FreeBSD `pkg upgrade -n`, with `security` from VuXML (`pkg audit`: True for a listed package, False for any other, None when the audit could not run); OpenBSD `pkg_add -u -n -v` (no security verdict). Base-system patches are one `base-system` entry, as decided in #799: OpenBSD's `syspatch -c`, and on a classic FreeBSD what `freebsd-update` has fetched; on pkgbase the base system is packages from FreeBSD-base. - Services: get_services lists the enabled ones (FreeBSD `service ... status` as root, as root-only pidfiles hide daemons otherwise, without root when sudo refuses; OpenBSD `rcctl check`), manage_service runs start/stop/restart/enable/disable as root and returns success and output. Fixtures recorded on the FreeBSD 15.1 and OpenBSD 7.9 VMs with genuinely outdated packages (FreeBSD pointed at the latest branch, an OpenBSD package taken back to its release build). Checked live on both, including a service restart and installing and removing a package.
42 lines
944 B
Plaintext
42 lines
944 B
Plaintext
uname -a
|
|
sysctl -n kern.hostname kern.ostype kern.osrelease kern.version
|
|
sysctl -n hw.model hw.ncpu hw.physmem hw.vendor hw.product hw.serialno hw.uuid
|
|
sysctl -n kern.boottime
|
|
uptime
|
|
ifconfig -a
|
|
netstat -rn
|
|
netstat -rn -f inet
|
|
netstat -rn -f inet6
|
|
arp -an
|
|
ndp -an
|
|
netstat -an -f inet
|
|
netstat -an -f inet6
|
|
sudo fstat -n | head -60
|
|
pkg_info
|
|
pkg_info -q
|
|
sudo pkg_add -u -n
|
|
sudo syspatch -c
|
|
sudo syspatch -l
|
|
rcctl ls on
|
|
rcctl ls started
|
|
rcctl ls failed
|
|
cat /etc/passwd
|
|
ps -axww -o user,pid,ppid,%cpu,%mem,vsz,rss,stat,lstart,command
|
|
cat /etc/crontab
|
|
sudo crontab -l
|
|
df -k
|
|
swapctl -l
|
|
sysctl -n vm.loadavg
|
|
which snmpd
|
|
cat /etc/rc.conf.local
|
|
id
|
|
sudo fstat -n
|
|
fstat -n
|
|
netstat -an -f inet; netstat -an -f inet6
|
|
pkg_info -m
|
|
sudo rcctl ls on/started/failed
|
|
sudo pkg_add -u -n -v (pcre2 downgraded to 10.44)
|
|
pkg_info
|
|
for s in $(rcctl ls on); do if rcctl check $s >/dev/null 2>&1; then r=1; else r=0; fi; printf "%s\t%s\n" "$s" "$r"; done
|
|
sudo syspatch -l
|