LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-16-2008, 08:04 AM   #1
kishorem666
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Smile Script for getting host information,disk usage and all details o/p should be in html


Hi all,


Please help me to get all information about Linux Server like

Server Information

Host Information
Hardware Interface Information
Network Interface Information
User ID Information
Hosts Information(/etc/hosts)
Netmask Information(/etc/netmasks)
DefaultRouter Information(/etc/defaultrouter)
Ports Services Information(/etc/services)
fstab Information(/etc/fstab)
Version Information
Filesystem Allocation Information
Diskgroup / Volume Allocation Information
External Physical Disk Allocation
Kernel Parameters
Checksum Information



Output has to get in html.
 
Old 09-16-2008, 12:30 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You seem to have most of the information you're looking for -- you listed the files right there!

What kind of version and checksum information are you looking for? What hardware interfaces?
 
Old 09-16-2008, 12:59 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by kishorem666 View Post
Please help me to get all information about Linux Server like
Server Information - What kind of server information???
Host Information - What kind of host information?
Hardware Interface Information - What kind of hardware interface? lspci and lsusb can give you some
Network Interface Information - Check the man page of ifconfig
User ID Information - Cat the /etc/passwd file, and remove any system entries like nobody, apache, etc.
Hosts Information(/etc/hosts) - Cat the file out
Netmask Information(/etc/netmasks) - Cat the file out
DefaultRouter Information(/etc/defaultrouter) - Cat the file out
Ports Services Information(/etc/services) - Cat the file out
fstab Information(/etc/fstab) - Cat the file out
Version Information - Cat the /etc/*release file out. Name depends on what distro of Linux you have.
Filesystem Allocation Information - Check man page on df, df -kP might be what you need.
Diskgroup / Volume Allocation Information
External Physical Disk Allocation - Check man page on mount command, or run df command against USB drives separately.
Kernel Parameters - Check /etc/sysconfig
Checksum Information - Checksum information on what???

Quote:
Output has to get in html.
The commands will give you the information. You'll have to write the web page yourself.
 
Old 09-17-2008, 06:31 AM   #4
kishorem666
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Smile Thanks for your prompt reply

hi can i have your mail-id so that i can be in touch with you.
 
Old 09-17-2008, 08:30 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by kishorem666 View Post
hi can i have your mail-id so that i can be in touch with you.
No, but you are more than welcome to post questions here, so the community can help you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Shell Script To Monitor Disk Usage On Linux and Unix LXer Syndicated Linux News 0 06-04-2008 08:10 AM
script to get 100% cpu/disk usage sidra Programming 9 09-19-2007 04:26 AM
Script to monitor disk usage of a particular folder ajeetraina Linux - Server 3 07-20-2007 03:34 AM
Traffic usage information NixMaster Linux - Networking 1 09-12-2006 06:34 PM
Disk Usage Information on HP-UX anuradha06 Other *NIX 1 05-12-2006 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration