#!/bin/sh
#############################################################
# This gives basic sysinfo
############################################################
echo "The System-Hostname=`hostname`"
echo "The System-Uptime= `uptime|awk '{ print ,, }'`"
sm=`prtconf -pv|grep banner-name|awk -F"'" '{ print }'`
echo "The system-make=$sm"
mm=`prtconf -pv|grep Mem|awk ' { print , }'`
echo "The system-memory=$mm"
ps=`psrinfo|grep on-line|wc -l`
echo "The Sytem-process-count=,$ps"
mc=`ifconfig -a|awk '/ether/ { print }'`
echo "The System-MacAddress=$mc"
bt=`isainfo -kv`
echo "The System- kernel-type=$bt"
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/