Server Info

Mem info

MemTotal: 2003272 kB

MemFree: 134052 kB

MemAvailable: 1170948 kB

CPU info

vendor_id : GenuineIntel

model name : Intel Xeon Processor (Skylake, IBRS)

cpu MHz : 2099.998

cache size : 16384 KB

CGI Vars

Generated by: /home/kevin/gemini/content/cgi-bin/serverinfo

#!/bin/bash

MEMINFO=$(cat /proc/meminfo|grep Mem)
CPUINFO=$(cat /proc/cpuinfo |egrep 'vendor|MHz|model name|cache size')

echo -ne "20 text/gemini\r\n"

cat <<EOGEMINI
# Server Info

## Mem info
${MEMINFO}

## CPU info
${CPUINFO}

## CGI Vars




### Generated by: ${0}
EOGEMINI

echo '```'
cat ${0}
echo '```'