gvolinfojson

command module
v0.0.0-...-5ca3e2f Latest Latest
Warning

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

Go to latest
Published: May 9, 2014 License: BSD-3-Clause Imports: 6 Imported by: 0

README

gvolinfojson

A utility to convert xml output of gluster volume info to json.

Install

Download binary from here and copy to /usr/local/bin(or any other directory, which is available in PATH).

wget https://github.com/aravindavk/gvolinfojson/releases/download/1.0/gvolinfojson
sudo cp gvolinfojson /usr/local/bin/
chmod +x /usr/local/bin/gvolinfojson

If you have golang installed, then(make sure $GOPATH/bin is available in PATH)

go get github.com/aravindavk/gvolinfojson

Usage

Run gluster volume info command and pipe its output to gvolinfojson.

sudo gluster volume info --xml | gvolinfojson

If you need to print pretty JSON output, then

sudo gluster volume info --xml | gvolinfojson --pretty

Source

git clone https://github.com/aravindavk/gvolinfojson.git

Blogs

  1. gvolinfojson - A utility to convert xml output of gluster volume info to json

Documentation

Overview

gvolinfojson.go Convert xml output of gluster volume info command to json :copyright: (c) 2014 by Aravinda VK :license: The BSD 3-Clause License, see LICENSE for more details. INSTALL: go build gvolinfojson.go sudo cp gvolinfojson /usr/local/bin/ USAGE: sudo gluster volume info --xml | gvolinfojson sudo gluster volume info --xml | gvolinfojson --pretty

Jump to

Keyboard shortcuts

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