The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DynGig::Util::CLI::OpsDB - CLI for a simple operations database

EXAMPLE

 use DynGig::Util::CLI::OpsDB;

 DynGig::Util::CLI::OpsDB->main
 (
     master => 'hostname',
     database => '/database/path',
 );

SYNOPSIS

$exe --help

$exe --range range [--delete] [--format format]

[echo YAML |] $exe YAML [--delete] [--format format]

[echo YAML |] $exe YAML --update

e.g.

To read help menu

 $exe --help

To display record of host001 to host004, in CSV form by name,colo,rack

 $exe -r host001~4 -f '"%s,%s,%s",name,colo,rack'

To display the records of hosts in area A, cab 6, in raw YAML form

 $exe '{area: A, rack: 6}'

To delete the above records

 $exe '{area: A, rack: 6}' -d

To add/update host008,

 $exe 'host008: {area: A, rack: 6, ..}' -u

NOTE

See DynGig::Util