I want to write a program to find out what resources an IIS server has and how many hits are there on each resource. The resource can be anything from a html page to files like sound clips, pictures , etc. I want to find out a list of all these resources and then i got to calculate the traffic as well. So can this be done without using any existing tool. I am not allowing myself to use any tools. I looked into WMI classes, but they do not give very detailed data like i want. I also thought about using ISAPI Filters to log each request. But i am finding it very difficult to learn. So is that a good way to go ? or shall i look at some thing else ?
f you were to use existing tools, you would need to find all DocRoot and Virtual Directories and then enumerate them (to list all the resources), and then use LogParser (or something like it) to count the hits. Using an ISAPI filter to log hits would be silly, since IIS already does that part for you
If you're going to write this all yourself, then you would do the same thing but without using LogParser. Will you allow yourself to use 3rd-party libraries? What is the purpose of doing this yourself? Is it just for a learning exercise?