Guest User

Untitled

a guest
Apr 14th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <?php
  2. // ==============================
  3. // Server Uptime And Hardware Information |
  4. // ==============================
  5. ?>
  6.  
  7. <html>
  8. <head>
  9. <title><?php echo $SERVER_NAME; ?> - Server Information</title>
  10. <STYLE type=text/css>
  11. BODY { FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
  12. </STYLE>
  13. </head>
  14. <body>
  15. <pre>
  16. <b>Uptime:</b>
  17. <?php system("uptime"); ?>
  18.  
  19. <b>System Information:</b>
  20. <?php system("uname -a"); ?>
  21. <?php system("cat /etc/redhat-release"); ?>
  22.  
  23. <?php system("cat /var/log/dmesg | grep DMI:"); ?>
  24.  
  25. <b>Memory Usage (MB):</b>
  26. <?php system("free -m"); ?>
  27. <?php system("grep -i memory /var/run/dmesg.boot"); ?>
  28.  
  29. <b>Disk Usage:</b>
  30. <?php system("df -h"); ?>
  31. <?php system("cat /proc/partitions"); ?>
  32.  
  33. <b>RAID:</b>
  34. <?php system("cat /proc/mdstat"); ?>
  35. <?php system("cat /proc/scsi/scsi"); ?>
  36. <?php system("grep -i Controller /var/run/dmesg.boot"); ?>
  37.  
  38. <b>CPU Information:</b>
  39. <?php system("cat /proc/cpuinfo | grep name | sort -u"); ?>
  40. <?php system("cat /proc/cpuinfo | grep KB | sort -u"); ?>
  41. <?php system("cat /proc/cpuinfo | grep cores | sort -u"); ?>
  42. <?php system("cat /proc/cpuinfo | grep processor"); ?>
  43. <?php system("grep -i GHz /var/run/dmesg.boot"); ?>
  44. <?php system("grep -i CPU: /var/run/dmesg.boot"); ?>
  45. <?php system("grep -i CPUs /var/run/dmesg.boot"); ?>
  46.  
  47. <b>Disk Information:</b>
  48. <?php system("cat /var/log/dmesg | grep ANSI"); ?>
  49.  
  50. <b>System temperature:</b>
  51. <?php system("sensors | grep high"); ?>
  52. <?php system("sensors | grep Core"); ?>
  53.  
  54.  
  55.  
  56.  
  57. </pre>
  58.  
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment