OutputPBNJ

From aldeid
Jump to navigation Jump to search


You are here:
OutputPBNJ

Description

OutputPBNJ uses a query yaml config file to execute queries against the PBNJ 2.0 database. OutputPBNJ returns the result in various output types (csv, tab and html).

Apart of PBNJ 2.0 suite of tools to monitor changes on a network.

Installation

$ sudo apt-get install pbnj

Usage

Basic syntax

$ outputpbnj [Query Options] [Config Options] [General Options]

Query Options

-q --query <name>
Perform sql query
-t --type <type>
Output Type [csv,tab,html]
-f --file <filename>
Store the result in file otherwise stdout
--both
Print results and store them in a file
--dir <dir>
Store the result in this directory [def .]
-l --lookup <name>
Lookup descrition based on name
--list
List of names and descriptions
-n --name
Lookup all the names
-d --desc
Lookup all the descriptions
-s --sql
Lookup all the sql queries

Config Options

--qconfig <file>
Config of sql queries [def query.yaml]
--dbconfig <file>
Config for accessing database [def config.yaml]
--configdir <dir>
Directory for the database config file
--data <file>
SQLite Database override [def data.dbl]

General Options

--test <level>
Testing information
--debug <level>
Debug information
-v --version
Display version
-h --help
Display this information

Example

INCOMPLETE SECTION OR ARTICLE
This section/article is being written and is therefore not complete.
Thank you for your comprehension.

Comments

Talk:OutputPBNJ