sqlizer wrote:
Haloo..
Bagaimana caranya melihat spesifikasi komputer di linux, misal
processor,jumlah memory,vga,LAN,dll...saya cuma bisa terhubung dengan
ssh jadi tidak bisa memakai xwindows.
--
sp_sqlizer
Save list di bawah ini pada editor kesayangan Anda
menjadi sebuah skrip yang dapat diexecute.
Lalu jalankan, maka Anda mendapatkan Hardware Report
berupa file HTML.
#!/bin/sh
# Description: Linux 8.0 System Information Report in HTML format
# Useage: sysreport report.html
# License: BSD
# Author: Greg Ippolito
cat HEAD
HTML
HEADTITLESystem Report/TITLE/HEAD
BODY bgcolor=#c0c0c0 text=#00
HR size=5
P
H1System Report for
HEAD
echo `hostname`
cat BODY1
/H1
P
HR size=5
P
BODY1
cat HOSTNAME
H3OS System Configuration:/H3
Bhostname: /B
HOSTNAME
/bin/hostname
if [ -x /usr/bin/hostid ]; then
cat HOSTID
P
Bhostid: /B
HOSTID
/usr/bin/hostid
fi
# Specific to Red Hat distribution
if [ -f /etc/redhat-release ]; then
cat DISTRO
P
BDistribution version: /B
DISTRO
cat /etc/redhat-release
fi
cat UNAME
P
Buname -a: /B
UNAME
uname -a
if [ -x /sbin/chkconfig ]; then
cat CHKCONFIG
P
BSystem services: (chkconfig)/B
DLDD
SMALL
PRE
CHKCONFIG
/sbin/chkconfig --list|grep on
cat CHKCONFIGEND
/PRE
/SMALL
/DL
P
CHKCONFIGEND
fi
if [ -f /etc/crontab ]; then
cat CRONTAB
P
BFile: TT/etc/crontab/TT/B
DLDD
SMALL
PRE
CRONTAB
cat /etc/crontab
cat CRONTABEND
/PRE
/SMALL
/DL
P
CRONTABEND
fi
echo PHRP
echo H3Network Configuration:/H3
if [ -f /etc/hosts ]; then
cat HOSTS
P
BFile: TT/etc/hosts/TT: /B
DLDD
SMALL
PRE
HOSTS
cat /etc/hosts
cat HOSTSEND
/PRE
/SMALL
/DL
P
HOSTSEND
fi
if [ -f /etc/nsswitch.conf ]; then
cat SWITCH
BFile: TT/etc/nsswitch.conf/TT: /B
DLDD
SMALL
PRE
SWITCH
cat /etc/nsswitch.conf
cat SWITCHEND
/PRE
/SMALL
/DL
P
SWITCHEND
fi
if [ -f /etc/resolv.conf ]; then
cat RESOLV
BFile: TT/etc/resolv.conf/TT: /B
DLDD
SMALL
PRE
RESOLV
cat /etc/resolv.conf
cat RESOLVEND
/PRE
/SMALL
/DL
P
RESOLVEND
fi
if [ -x /sbin/ifconfig ]; then
cat IFCONFIG
Bifconfig: /B
DLDD
SMALL
PRE
IFCONFIG
/sbin/ifconfig
cat IFCONFIGEND
/PRE
/SMALL
/DL
P
IFCONFIGEND
fi
if [ -x /sbin/route ]; then
cat ROUTE
B/sbin/route: /B
DLDD
SMALL
PRE
ROUTE
/sbin/route
cat ROUTEEND
/PRE
/SMALL
/DL
P
ROUTEEND
fi
if [ -d /etc/sysconfig/network-scripts ]; then
cat IFCFG
BFiles TT/etc/sysconfig/network-scripts/ifcfg-eth*/TT: /B
DLDD
SMALL
PRE
IFCFG
cat /etc/sysconfig/network-scripts/ifcfg-eth*
cat IFCFGEND
/PRE
/SMALL
/DL
P
IFCFGEND
fi
echo PHRP
cat DF
H3Storage:/H3
Bdf -k: /B
DLDD
SMALL
PRE
DF
df -k
cat DFEND
/PRE
/SMALL
/DL
P
DFEND
if [ -x /sbin/fdisk ]; then
cat FDISK
BDisk Partitions: TT/sbin/fdisk -l/TT:/B
DLDD
SMALL
PRE
FDISK
/sbin/fdisk -l
cat FDISKEND
/PRE
/SMALL
/DL
P
FDISKEND
fi
if [ -f /etc/fstab ]; then
cat FSTAB
BFile: TT/etc/fstab/TT: /B
DLDD
SMALL
PRE
FSTAB
cat /etc/fstab
cat FSTABEND
/PRE
/SMALL
/DL
FSTABEND
fi
echo PHRP
if [ -a /proc/cpuinfo ];then
cat HARDWARE
H3Hardware Configuration:/H3
BCPU info: /B
DLDD
SMALL
PRE
HARDWARE
cat /proc/cpuinfo
fi
if [ -a /proc/meminfo ]; then
cat SWAP
/PRE
/SMALL
/DL
P
BTotal Swap Memory: /B
DLDD
SWAP
grep SwapTotal /proc/meminfo
cat MEM
/DL
P
BSystem Memory: /B
DLDD
MEM
grep MemTotal /proc/meminfo
cat MEMEND
/DL
P
MEMEND
fi
if [ -x /sbin/lspci ]; then
cat PCI
B/sbin/lspci: /B
DLDD
SMALL
PRE
PCI
/sbin/lspci
cat PCIEND
/PRE
/SMALL
/DL
P
PCIEND
fi
if [ -f /etc/sysconfig/hwconf ]; then
cat HWCONF
BDevices:/B
DLDD
BFile: TT/etc/sysconfig/hwconf/TT/B
SMALL
PRE
HWCONF
cat /etc/sysconfig/hwconf
cat HWCONFEND
/PRE
/SMALL
/DL
P
HWCONFEND
fi
cat BODYEND
P
HR
P
/BODY
/HTML
BODYEND
--
Linux helloween 2.6.12.4 #3 Mon Aug 6 13:11:31 WIT 2005 i686 i386 GNU/Linux
-
THE CHANCE you got comes never twice, Do your best and Do it right
Time will come but you don't hide, You are on your way
-
We've got the POWER We are divine, We have the guts to follow the sign
Extracting tensions from sources unknown, We are the ones to cover the throne
-
Registered Linux User #355718 = Get the SOURCE with you !!!
-
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x9C8FFDBEA9FC002E
-
signature.asc
Description: OpenPGP digital signature