[Ilugc] doubt on ssh connection
Sai Kiran Kanuri
saikiranrgda at gmail.com
Mon Apr 5 22:04:43 IST 2010
On Mon, Apr 5, 2010 at 2:47 PM, venkat raman <infoappu.linux at gmail.com>
> 1.how do we restart the 20 apache servers within 2 minutes using
> ssh connection.
You might want to look at FUNC. but this would need initial setup.
alternatively u can go the SSH path. setup key based logins & any simple
script should do.
> 2.how do we find out how many connections established to mysql
> database or apache server(number of hits)
netstat might be a simple way. I am not sure if MYSQL let's u query that.
> 3.when we using the top command on what basis it will give
> to display the process
CPU, but you can change the sorting order.. check manpage
> 5.how do we filter the warning log message from /var/log/maillog
One way is you can setup your syslog to log the messages to a different
file. the default Syslog/rsyslog, doesn't offer you much room, you can look
at syslog-ng. It is pretty good & might just meet you requirement.
> 6.Is it necessary a windows user having id in linux box for
> accesing a file using in samba server
> 7.Default block size in linux
4K i guess. Not sure
> 8. A system has 2 nic cards..how do we check which one is up or
> which one is down
More information about the ilugc