dmv

command module
v0.0.0-...-4c8e958 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

DMV

A simple registry server and client in one. The purpose is to be able to easily stand up a single server which can record and report (JSON format) basic info about any system that registers itslef.

Example Use

  • system A, the DMV registry server: dmv serve

  • system B, a client: dmv register -n $HOST -s [IP/hostname of DMV registry server] -OR- in a browser, open http://[IP/hostname of DMV registry server]/register/[HOSTNAME] (You must supply [HOSTNAME] in this case)

  • get a report of registered systems: dmv list -s [IP/hostname of DMV registry server] -OR- in a browser, open http://[IP/hostname of DMV registry server] example result:

{
    "system1":{"hostname":"system1","remoteAddr":"192.168.168.101","requestURI":"/register/system1"},
    "system2":{"hostname":"system2","remoteAddr":"192.168.168.102","requestURI":"/register/system2"},
    "system3":{"hostname":"system3","remoteAddr":"192.168.168.103","requestURI":"/register/system3"}
}
Usage:
  dmv [command]

Available Commands:
  delete      A brief description of your command
  help        Help about any command
  list        A brief description of your command
  register    A brief description of your command
  serve       stand up a DMV http server

Flags:
      --config string   config file (default is $HOME/.dmv.yaml)
  -h, --help            help for dmv
  -t, --toggle          Help message for toggle

Use "dmv [command] --help" for more information about a command.

Documentation

Overview

Copyright © 2019 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL