Linux-Noob Forums

Full Version: my internet traffic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

have a look :)

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-1-1132949216.jpg" data-fileid="415">[img]<fileStore.core_Attachment>/post-1-1132949216.jpg[/img]</a>


Quote:have a look :)
 

Wow, you sure do get some traffic :).

 

Just out of interest, is that Windows Server 2003 or just XP with Windows Classic theme?

 

I would love to have a play with and learn Windows Server, but I just can't afford to spend all the money on it, then there are all the licensing issues. That was one of my motivations of getting Linux a few years ago, so I could do real server stuff. I mean, Microsoft have released Visual Studio 2005 Express Editions, why not Windows Server Express editions (with limits on number of connections etc).

 

I want to remain cross-platform obviously (I'm not contemplating getting rid of Linux ;) I don't think I ever will now), but it would be nice to see and use Microsoft's server stuff first hand and compare it to good old Linux.

 

Knowing both platforms is always good, as it makes you more employable (apparently, I'm only 15) :).


that is windows 2003 entreprise edition

 

cheers

 

anyweb

hrmm.. script + ifconfig .. and i could produce similar results ;)

hmm correct me if i'm wrong but doesnt the ifconfig for inet traffic loop around 4 GB or so,

 

Quote:[anyweb@www ~]$ /sbin/ifconfigeth0 Link encap:Ethernet HWaddr 00:06:5B:02:02:7E

inet addr:192.168.0.128 Bcast:192.168.0.255 Mask:255.255.255.0

inet6 addr: fe80::206:5bff:fe02:27e/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:25246118 errors:2 dropped:0 overruns:25 frame:2

TX packets:31574704 errors:0 dropped:0 overruns:0 carrier:15

collisions:103626 txqueuelen:1000

RX bytes:2769159334 (2.5 GiB) TX bytes:3375803390 (3.1 GiB)

Interrupt:11 Base address:0xec80

 

[anyweb@www ~]$ w

21:21:45 up 54 days, 9:43, 4 users, load average: 0.00, 0.00, 0.00
at least it does on my server

 

so how could you script it given the looping ?

 

cheers

anyweb


Yes, true. The counter in the ifconfig "overflows", its not a reset. This is due to the fact that its stored in a 32-bit integer (which have a max value of 4,294,967,295). Hence you can easily work it out and handle this :)

 

For instance, last count say "4294967293" next count "32", its easy to see that it overflowed, now of course you could argue that its reset (i.e. the network stopped and restarted) but you can set an easy enough check, say check the errors etc etc, if they have zero'd as well then its a fair guess that its reset.

 

Anyhoo :)

 

Quote:hmm correct me if i'm wrong but doesnt the ifconfig for inet traffic loop around 4 GB or so,