hurricane-electric-bandwidth
v2.0.0
Published
Retrieve the current 95th percentile bandwidth usage from a given switch port in Hurricane Electric.
Readme
hurricane-electric-bandwidth
What is this?
Programatic method to retrieve your 95th percentile bandwidth usage.
Typical Usage
In your code
Add to your project
npm install hurricane-electric-bandwidthUse it
var HurricaneElectricBandwidth = require('hurricane-electric-bandwidth');Get bandwidth usage in bytes per second
HurricaneElectricBandwidth.bandwidthBytes('ABC==').then(bandwidthBytes => {
console.log(bandwidthBytes);
});1001000
Get bandwidth usage raw string
HurricaneElectricBandwidth.scrapBandwidthText('ABC==').then(bandwidthText => {
console.log(bandwidthText);
});1001 kb/s
Command line interface
Install
npm install -g hurricane-electric-bandwidthPrint in bytes
hurricane-electric-bandwidth ABC1231001000
Print as the raw string
hurricane-electric-bandwidth ABC123 --raw1001 kb/s
