Skip to main content

A utility for command line MaaS interrogation

Project description

|Version||Status||Downloads|Build Status

maas utility for a 1.8 maas region installation

Summary

Provide misc command line stuff for maas. The first one I need is the ability to determine the system_id given the machine name.

Usage

usage: maasutil.py [-h] [-p] [-t {json,yaml,text}]
                [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-s]

optional arguments:
  -h, --help            show this help message and exit
  -p, --pretty
                        Pretty only works if the output is json
  -t|--type {json,yaml,text}
                        Output type, json, yaml or text, text is the default
  -l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Log level (DEBUG,INFO,WARNING,ERROR,CRITICAL) default
                        is: INFO
  -s, --save            save select command line arguments (default is always)
                        in "/home/gfausak/.maasutil.conf" file
maasutil.py node_by_name nodename

Arguments

  • –pretty, make the output (json) pretty. yaml is already pretty. text is ugly. default is false.
  • –help, the usage message is printed.
  • –type, json or yaml or text (this is the OUTPUT type), default text.
  • —loglevel, for debugging, default INFO.
  • –save, save current arguments to persistent file in home directory, this file will be read as if it came from the command line in subsequent invocations of this program. To remove it you have to remove the ~/.maasutil.conf file manually. Do this for making pretty default, for example. the default is no save is done.

Notes

none yet

Examples

maasutil.py node_by_name

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for maasutil, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size maasutil-0.0.9.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page