On Mon, Apr 5, 2010 at 2:47 PM, venkat raman <[email protected]> wrote:
> hai techies,
>                would pls any one sort out the following questions...
>
>         1.how do we restart the 20  apache servers within 2 minutes using
> ssh connection.

On different machines? Why do you want to do it? Not a good idea.

In case you want to do it, setup automatic keying by

$ ssh-keygen -t rsa
(give no password)
$ cat ~/.ssh/id_rsa.pub | ssh remote "cat >> ~/.ssh/authorized_keys"

And start ssh-agent -s like this in case you use bash. `ssh-agent -s`

This is the hard part. You should see

$ ssh-add -l

should list your key fingerprint.

Then your automated login is working. Then write a simple script like this.

for i in `cat machines`
do
    ssh $i "apachectl restart"

done

That is it.

>         2.how do we find out how many connections established to mysql
> database or apache server(number of hits)

Apache log contains everything. access.log. There are several
visualizers and log
analyzers out there. A simple grep can also take you there.

mysql I dunno. A lot of LUGGies use it. Ask them.

>         3.when we using the top command on what basis it will give priority
> to display the process

top does not assign priorities. OS assigns. Read up the nice command.

Lower the number, higher the priority.

>         4.main difference between linux filesystem vs windows filesystem
>

I dunno how to answer this one. I have not gone deep into either.

A file system should be judged by its ability to perform well with many small
files or few large files and not tire the hard disk.

It should also recover from crashes well. Linux file system was
immature but with
time it is improving I think.

As to Windoze, of course it is worse than linux. When I say Linux file
systems are
 not up to the mark I mean in relation to absolute terms or with other superior
file systems.

Well I am too ignorant to comment any further.

>         5.how do we filter the warning log message from /var/log/maillog
>

Use grep -v.

>         6.Is it necessary  a windows user having id in linux box for
> accesing a file using in samba server

No.

>         7.Default block size in linux
>

Used to 512 bytes. Not sure about now. You can easily find it out.

>        8. A system has 2 nic cards..how do we check which one is up or
> which one is down

Just look at the LEDs. If you see a green and an amber light glowing on one,
you know it is up.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to