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
- GEMINI_URL: gemini://gemini.susa.net:1965/cgi-bin/serverinfo
- SERVER_NAME: gemini.susa.net
- SERVER_PROTOCOL: GEMINI
- SERVER_SOFTWARE: gemserv
- SCRIPT_NAME: /cgi-bin/serverinfo
- REMOTE_ADDR: ::ffff:64.149.155.184
- REMOTE_HOST: ::ffff:64.149.155.184
- REMOTE_PORT: 33894
- QUERY_STRING:
- PATH_INFO:
- AUTH_TYPE:
- TLS_CLIENT_HASH:
- REMOTE_USER:
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
- GEMINI_URL: ${GEMINI_URL}
- SERVER_NAME: ${SERVER_NAME}
- SERVER_PROTOCOL: ${SERVER_PROTOCOL}
- SERVER_SOFTWARE: ${SERVER_SOFTWARE}
- SCRIPT_NAME: ${SCRIPT_NAME}
- REMOTE_ADDR: ${REMOTE_ADDR}
- REMOTE_HOST: ${REMOTE_HOST}
- REMOTE_PORT: ${REMOTE_PORT}
- QUERY_STRING: ${QUERY_STRING}
- PATH_INFO: ${PATH_INFO}
- AUTH_TYPE: ${AUTH_TYPE}
- TLS_CLIENT_HASH: ${TLS_CLIENT_HASH}
- REMOTE_USER: ${REMOTE_USER}
### Generated by: ${0}
EOGEMINI
echo '```'
cat ${0}
echo '```'