고독을 즐기는 진정한 아웃사이더
basic sysinfo 본문
#!/bin/sh
#############################################################
# This gives basic sysinfo
############################################################
echo "The System-Hostname=`hostname`"
echo "The System-Uptime= `uptime|awk '{ print $3,$4,$5 }'`"
sm=`prtconf -pv|grep banner-name|awk -F"'" '{ print $2 }'`
echo "The system-make=$sm"
mm=`prtconf -pv|grep Mem|awk ' { print $3,$4 }'`
echo "The system-memory=$mm"
ps=`psrinfo|grep on-line|wc -l`
echo "The Sytem-process-count=,$ps"
mc=`ifconfig -a|awk '/ether/ { print $2 }'`
echo "The System-MacAddress=$mc"
bt=`isainfo -kv`
echo "The System- kernel-type=$bt"
#############################################################
# This gives basic sysinfo
############################################################
echo "The System-Hostname=`hostname`"
echo "The System-Uptime= `uptime|awk '{ print $3,$4,$5 }'`"
sm=`prtconf -pv|grep banner-name|awk -F"'" '{ print $2 }'`
echo "The system-make=$sm"
mm=`prtconf -pv|grep Mem|awk ' { print $3,$4 }'`
echo "The system-memory=$mm"
ps=`psrinfo|grep on-line|wc -l`
echo "The Sytem-process-count=,$ps"
mc=`ifconfig -a|awk '/ether/ { print $2 }'`
echo "The System-MacAddress=$mc"
bt=`isainfo -kv`
echo "The System- kernel-type=$bt"
출처: http://www.sun.com/bigadmin/scripts/submittedScripts/basic_sys_info.txt
(solaris 용 입니다)
'Computer > Linux' 카테고리의 다른 글
HANDY ONE-LINERS FOR SED (Unix stream editor) (0) | 2005.05.25 |
---|---|
Linux Explorer - Linux System Information Gathering Tool (0) | 2005.05.25 |
GMail 을 1GB 하드로 사용하기 (0) | 2005.05.25 |
IPTraf 로 네트워크 모니터링 하기 (0) | 2005.05.25 |
다른 사용자 계정으로 명령어 실행하기 (0) | 2005.05.25 |
Comments