ZFS(Zettabyte File System) Pool Status Convert to JSON File with node js

in #utopian-io7 years ago (edited)

zpoolConvertJson
ZFS pool status convert to JSON file

ZFS Pool Status Convert to JSON format
An application that I can use to transfer the states of the pools I created in ZFS to JSON format and then saves it to a file.

What's ZFS?
ZFS(Zettabyte File System) is an open source file system.

Where can I use this application?
ZFS, which is used on high performance and backup unified storage systems and on personal storage systems (dropbox, etc.), allows you to efficiently use the situations of the pools.

Download
Github source

a.png

Application Requirements

  • apt-get install nodejs
  • apt-get install npm
  • npm install lodash
  • npm intall child_process
  • require('fs')

How to use ?

  • Run convertJson.js file with root privilages :
  • sudo node convertJson.js

Example Screenshot

  • ZFS installation.
    a.png

  • Create a ZFS pool.
    b.png

  • List of exist pools.
    c.png

-I get an output like this with the "Zpool Status" command.
d.png

  • I get output in JSON format after running the application.
    b.png

c.png

  • Saved to file.
    d.png



Posted on Utopian.io - Rewarding Open Source Contributors

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.027
BTC 59538.61
ETH 2658.79
USDT 1.00
SBD 2.45