Skip to content

ServerPilot user bandwidth cli tool

Notifications You must be signed in to change notification settings

thriveweb/sp-bandwidth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm badge

Show ServerPilot user bandwidth information via cli.

Installation

npm i -g sp-bandwidth

Commands

Run when logged in as the ubuntu user

  • sp-log-import: Parse the serverpilot logs and spit them out in ~/logs as JSON. Run when you wish to update. Requires a ~/logs/ directory.
  • sp-bandwidth: Display the parsed info in the terminal.

Installation prerequisites

echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list
wget -O - http://deb.goaccess.io/gnugpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install goaccess

You need to update the GoAccess config in /etc/goaccess.conf.
Uncomment the following lines:
13: time-format %H:%M:%S
36: date-format %d/%b/%Y
70: log-format %h %^[%d:%t %^] "%r" %s %b

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

About

ServerPilot user bandwidth cli tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.1%
  • Shell 13.9%