Code Monkey home page Code Monkey logo

panloadmonitor's Introduction

panloadmonitor

Small tool to get last 24hour performance metrics of panos devices

installation

Use either the binaries in https://github.com/xhoms/panloadmonitor/tree/master/bin or get the source into your GO workspace

go get github.com/xhoms/panloadmonitor

usage

Basic usage requires just the following command line switches

  • -h (host) : either in FQDN or IP address format
  • -k (key) : API key to be used.
  • -u (user) : you can provide user and password instead of API key
  • -p (password)
  • -i (interactive) : provide information about the progress in stdout

Example of basic usage

$ ./panloadmonitor -h 172.16.214.199 -u admin -p admin -i
Sample prefix will be 20170510
Saving 20170510.csv

Other command line switches

  • -loop : once a run is completed keep waiting for another run after 24 hours
  • -panorama : loop through all devices connected to a Panorama and generate a csv file for each one
  • -d (debug) : provide API interaction verbosity

Example of loop panorama usage

$ ./panloadmonitor -h 172.16.214.203 -u admin -p admin -i -panorama -loop
Sample prefix will be 20170510
Attempting to get the list of connected devices
Switching to device serial number 007000000021636
Saving 20170510_007000000021636.csv
Switching to device serial number 015300000425
Saving 20170510_015300000425.csv
Going to sleep until next tick ...

panloadmonitor's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.