Can anyone answer following questions? Thanks!
8. Please ignore that artificial line feeds introduced by Word in the following question:
We have a web log from apache httpd server which can be like:
128.249.149.23 - - [19/Mar/2002:17:14:06 -0500] "GET
/entrez/query.fcgi?cmd=Retrieve&db=OMIM&dopt=Detailed&tmpl=dispomimTemplate&list
_uids=602321 HTTP/1.0" 200 12299 1
"http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi?SUBMIT=y"
62.219.219.182 - - [19/Mar/2002:17:14:06 -0500] "GET /corehtml/ncbi_test.css
HTTP/1.1" 304 - 0 "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=&DB=PubMed"
62.219.219.182 - - [19/Mar/2002:17:14:21 -0500] "GET
/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=10236068&dopt=Abstract
HTTP/1.1" 200 16082 0
"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=&DB=PubMed"
132.239.159.125 - - [19/Mar/2002:17:14:22 -0500] "GET /corehtml/transparent.gif
HTTP/1.0" 304 - 0
"http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi?CMD=search&DB=PubMed"
132.239.159.125 - - [19/Mar/2002:17:14:22 -0500] "GET /corehtml/GoUp2.gif
HTTP/1.0" 304 - 0
"http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi?CMD=search&DB=PubMed"
132.239.159.125 - - [19/Mar/2002:17:14:22 -0500] "GET /entrez/query/gifs/2.gif
HTTP/1.0" 200 93 0
"http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi?CMD=search&DB=PubMed"
18.79.0.32 - - [19/Mar/2002:17:14:22 -0500] "GET
/entrez/utils/fref.fcgi?
http://www.pnas.org/cgi/pmidlookup?...ull&pmid=937176
8 HTTP/1.0" 302 318 0
"http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_ui
ds=9371768&dopt=Abstract"
155.41.134.187 - - [19/Mar/2002:17:14:23 -0500] "POST
/entrez/query.fcgi?SUBMIT=y HTTP/1.1" 200 35998 1
"http://www4.ncbi.nlm.nih.gov/PubMed/"
130.207.65.145 - - [19/Mar/2002:17:14:24 -0500] "GET /blast/html/corner_bl.gif
HTTP/1.0" 200 196 0
"http://www.ncbi.nlm.nih.gov/blast/Blast.cgi?CMD=Web&LAYOUT=TwoWindows&AUTO_FORM
AT=Semiauto&PAGE=Nucleotides&NCBI_GI=yes&FILTER=L&HITLIST_SIZE=100&SHOW_OVERVIEW
=yes&AUTO_FORMAT=yes"
129.100.249.27 - - [19/Mar/2002:17:14:24 -0500] "GET /corehtml/bkgd.gif
HTTP/1.0" 304 - 0
"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=
11803231&dopt=Abstract"
The log is huge and updated continuously by the server.
The problem is to find:
a) how to roughly estimate the number of requests processed per second.
b) top ten hosts who send most of the requests to us for last 30 minutes.
The unix text processing tools like sort, awk, uniq, cut, sed should be used.
9. How can I check, on a Unix system, the number of network interfaces?
10. How to find out the IP address and netmask associated with network
interface?
11. A user complains that his or her machine has become quite slow, compared to its previous performance. What commands may be used to find why the machine slowed?
12. How can I check what dynamic libraries are needed to run the particular binary file on linux/solaris?
13. What's the difference between a system call and library function?