Coder Social home page Coder Social logo

robgonnella / ops Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.61 MB

A terminal UI app for managing on-premise bare-metal servers and VMs

License: GNU General Public License v3.0

Makefile 2.37% Go 97.63%
bare-metal baremetal gplv3 network-scanner on-prem on-premise scanners ssh teminal-application teminal-ui vms arp arpscan arpscanner syn synscan synscanner

ops's Introduction

On-Prem Server Management

Ops is a terminal UI application for managing on-premise bare-metal servers and VMs. It allows you see servers currently on your network and quickly ssh to them. Within the UI, you can create and manage multiple network configurations, you can choose a default set of ssh credentials to use for all servers, and you can override those defaults for individual IPs where needed.

This project is heavily inspired by derailed's amazing work on k9s for managing kubernetes clusters via a terminal ui application.

Runtime Dependencies

Ops has some external runtime dependencies: libpcap.

  • mac
brew install libpcap
  • debian
sudo apt update && sudo apt install -y libpcap-dev

Build Dependencies

If building Ops from source you will need a few other build dependencies.

  • mac
brew install make go git
  • debian
sudo apt update && sudo apt install -y make golang git

Installation

When installing using golang or building from source, you may want to add the following lines to one of your rc files to add your user's go bin to the PATH variable. This will make the ops command available in your shell.

export GOPATH="$HOME/go"
PATH="${GOPATH}/bin:$PATH"
  • install using golang
    • dependencies
      • golang
      • libpcap
      • git
go install github.com/robgonnella/ops@latest
  • build from source
    • dependencies
      • golang
      • make
      • libpcap
      • git
git clone https://github.com/robgonnella/ops.git
cd ops
make install

Usage

On first launch a default configuration will be generated based on your machines default network settings. If your machine is not connected to a network the app will fail to start.

  • start application
# Due to the usage of libpcap, ops must be run with root privileges.
sudo ops
  • clear config file and log file
sudo ops clear
  • show help / usage
ops help
# or
ops --help
# or
ops <cmd> --help

Demo

Files and Config

  • config.json: Stores network configurations for scanning ~/.config/ops/config.json
  • ops.log: Additional logging ~/.config/ops/ops.log

Technologies

  • tview is used to build the frontend. This is a wonderful open source terminal ui library provided by rivo!

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.