18-May-2007, 01:21 PM
|
#1 (permalink)
|
|
مدير عام
تاريخ التسجيل: May 2007
المشاركات: 614
|
سكربت صغير بلغة الشل لتشييك على السيرفر
كود PHP:
echo ' /*--statekit--* ';
echo 'helo $USER .... thanks to use my program .... alqursan';
echo '--------------{ hostname }----------------';
echo 'name of the DNS domain : ';hostname -d
echo 'the FQDN (Fully Qualified Domain Name) : ';hostname -f
echo 'the IP address of the host : ';hostname -i
echo 'the short hostname : ';hostname -s
echo '----------{ operating system }---------';
echo 'operating system name :'; uname
echo 'operating system version:'; uname -v
echo 'operating system release : '; uname -r
echo 'machine (hardware) :'; uname -m
echo 'host processor type:'; uname -p
echo '***************************************';
echo '--------------{ service }--------------';
echo 'Display status of all the system services';
service
echo '***************************************';
echo '--------{ tree of processes }----------';
pstree
echo '***************************************';
echo '---------{ process status }------------';
ps
echo '***************************************';
echo '----------{ virtual memory }------------';
vmstat
echo '***************************************';
echo '------------{ Used Memory }-------------';
free
echo '***************************************';
echo '--------------{ uptime }---------------';
echo 'Tell how long the system has been running. Also number of users and system's load average.';
uptime
echo '***************************************';
echo '----------------{ w }------------------';
echo 'Show who is logged on and what they are doing';
w
echo '***************************************';
echo '-----------{ kernel modules }-----------';
echo 'List all currently loaded kernel modules';
lsmod
echo '***************************************';
echo '-----{ tank u 4 chose my program}------';
echo '***************************************;
|
|
|