Giter Site home page Giter Site logo

immarvin / consoleserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xcat2/goconserver

0.0 3.0 0.0 88 KB

Console server to manage multiple types of the console session, it could be used to log the session content or redirect the session content.

Makefile 1.42% Go 89.15% Python 4.76% Shell 4.67%

consoleserver's Introduction

consoleserver

consoleserver is written in golang and is a part of microservice of xcat3. It can work as a independent tool to provide the terminal session service. Terminal session could run in the background and help logging the terminal content.

Support plugin

consoleserver intent to support multiple types of terminal plugins, currently ssh is support as OpenBMC use ssh as the SOL method and cmd is a general driver to support command session.

Structure

consoleserver can be divided into two parts:

  • daemon part: consoleserver, expose rest api interface to define and control the session node.

  • client part: congo, a command line tool to define session or connect to the session. Multiple client sessions could be shared.

Setup

Requirement

Currently, this tool is in the development stage, there is no binary release. Please setup golang SDK, GOPATH environment variable and glide tool at first.

Build and installation

git clone https://github.com/chenglch/consoleserver.git
cd consoleserver
make install

Setup SSL (optional)

Please refer to ssl

Command Example

Start service

daemon is running in the background. To support a large amount of sessions, please use ulimit -n <number> command to set the number of open files.

consoleserver &

Define testnode node session

congo is the client command. Use congo help to see the detail.

congo create testnode driver=ssh ondemand=false --params user=root,host=10.5.102.73,port=22,password=<password>

or with ssh private key

congo create testnode driver=ssh ondemand=false --params user=root,host=10.5.102.73,port=22,private_key=<priavte_key_path>

or general command driver

congo create testnode driver=cmd ondemand=false --params cmd="ssh -l root -p 22 10.5.102.73"

List or show detail

congo list
congo show testnode

Connect to the testnode session

congo console testnode

Rest API

Please refer to rest api

consoleserver's People

Contributors

chenglch avatar

Watchers

 avatar  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.