Jump to content

Commands for internet measure

Aquacooolingmac

Could you come with suggestions for a command that would measure internet usage in percent, and a command that would measure how much data is flowing in kb. I would like, if both commands output in numbers only, so i can say 

 

var flow = NSAppleScript(source: "[script here]")!.executeAndReturnError(nil) = (2.453)

var percent = NSAppleScript(source: "[script here]")!.executeAndReturnError(nil) = (43.64)

Link to comment
Share on other sites

Link to post
Share on other sites

...what? You can't measure an internet connection in percentage because speeds frequently change... and command for what? Linux/bash? Java? C++/C#? Python?

Link to comment
Share on other sites

Link to post
Share on other sites

Are you looking for data for just your local computer, or for the whole network? If for the whole network, you should use SNMP to get the traffic levels of the WAN port. To use SNMP, you either need a router that supports it out of the box (may need to be enabled) or one that can be flashed with a firmware like DDWRT or Tomato.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×