in reply to DBI Mysql : Get amount of data transfered

Hrllo sectokia,

I am not an expert on this but I found this Cisco::UCS::Common::EthernetPort.

According to the documentation:

print "FI A port 1/2 operational_speed is " . $ucs->interconnect(A)->card(1)->eth_port(2)->oper_sp +eed; . ', total bytes transmitted is " . $ucs->interconnect(A)->card(1)->eth_port(1)->tx_tota +l_bytes . ".\n"; # Prints: # FI A port 1/2 operational_speed is 10gbps, total bytes transmitt +ed is 120230320434028

Update: I also found Bandwidth-statistics maybe it can help you also.

From the documentation:

This is a small PERL script that calculate network bandwidth with some + stats.

Update 2: Similarly measuring IN/OUT traffic on your computer maybe it can help you also.

Description:

Sometimes you need to see how much data your computer gets through a c +ertain device(at least I do). I've put together this script that does + just that

Hope this helps.

Seeking for Perl wisdom...on the process of learning...not there...yet!