LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2008, 10:50 AM   #1
vhcg
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
/proc/diskstats and xinetd services


Hi All:

/proc/diskstats (on FC7 and RHEL5)
I've been trying to determine a quick and easy way to see the number of disks in a system. I've looked in /proc/diskstats on several systems and see a pretty consistent pattern.

Ie, on my single drive system, there is an entry for hda. On my dual drive system, there are entries for hda and hdb (hdb is the master device on the 2nd IDE controller). Is this a good way to get this info or is there something better?

xinetd (on FC7 and RHEL5)
I would like to add (for example, telnetd) to xinetd's list of managed services. On my old RH8 server /etc/xinetd.d is full of services like telnet, tftp, etc. These are all present with a default of "disabled = yes". On my FC7 and RHEL5 boxes, the services are not there at all. I could use the files from the RH8 boxes as templates, but something tells me that there is a better way?

Thanks,
VHCG

Last edited by vhcg; 03-13-2008 at 10:51 AM.
 
Old 03-14-2008, 07:10 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by vhcg View Post
I've been trying to determine a quick and easy way to see the number of disks in a system. (..) Is this a good way to get this info or is there something better?
Sure it's a good way. I usually use 'fdisk -l' or 'diskstat'.


Quote:
Originally Posted by vhcg View Post
I would like to add (for example, telnetd) to xinetd's list of managed services.
Why? You know telnet is insecure. Can't you use SSH?


Quote:
Originally Posted by vhcg View Post
On my old RH8 server /etc/xinetd.d is full of services like telnet, tftp, etc. These are all present with a default of "disabled = yes". On my FC7 and RHEL5 boxes, the services are not there at all. I could use the files from the RH8 boxes as templates, but something tells me that there is a better way?
If the service doesn't install it's own /etc/xinetd.d/%{name} then using any template should do. Just check the configuration conforms to your version of Xinetd.


BTW on LQ it's customary to put questions of a different topic in a different thread. While it may not look that way at first it really is more efficient.
 
Old 03-15-2008, 02:11 AM   #3
vhcg
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you, unSpawn.

I have no plans to use telnet. It was simply a convenient example for xinetd.

VHCG
 
  


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
Interpreting /proc/diskstats rajesht SUSE / openSUSE 8 02-25-2014 03:10 PM
Linux /proc diskstats question benchmarkman Linux - Newbie 1 02-13-2006 04:13 PM
stopping services not in xinetd.d branden_burger Linux - Security 2 04-12-2005 09:34 PM
xinetd /etc/services iftiuk Linux - Networking 7 04-17-2004 01:36 AM
xinetd, ftp, and other services jimi_j Linux - Software 0 03-09-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration