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

Ixchel::Actions::extend_smart_config - Generates the config for the SMART SNMP extend.

VERSION

Version 0.1.0

CLI SYNOPSIS

ixchel -a extend_smart_config [-w] [-o <file>]

CODE SYNOPSIS

    my $results=$ixchel->action(action=>'extends_smart_config', opts=>{w=>1});

    if ($results->{ok}) {
        print $results->{filled_in};
    }else{
        die('Action errored... '.joined("\n", @{$results->{errors}}));
    }

DESCRIPTION

This invokes the extend with -g to generate a base config.

The returned value is the filed in template.

If snmp.extends.smart.additional_update_args is defined and not blank, these tacked on to the command.

FLAGS

-w

Write out the file instead of stdout.

-o <file>

File to write the out to if -w is specified.

Default :: /usr/local/etc/smart-extend.conf

--np

Don't print the the filled in template.

RESULT HASH REF

    .errors :: A array of errors encountered.
    .status_text :: A string description of what was done and the results.
    .ok :: Set to zero if any of the above errored.
    .filled_in :: The filled in template.