lamoni/jsnapcommander

PHP classes for dealing with Juniper's Snapshot Administrator(JSnap)

v1.0.1 2015-12-15 06:06 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:22:38 UTC


README

PHP classes for dealing with Juniper's Junos Snapshot Administrator (JSnap)

Example

$commander = new JSnapCommander(
    new JSnapTriggerDriverShell(
        new JSnapConfigTriggerShell(
            array(
                'JSnapExecutable'   => '/vagrant/junos-snapshot-administrator/bin/jsnap',
                'ConfigFile'   => '/vagrant/junos-snapshot-administrator/jsnap/samples/sample.conf',
                'JuiseExecutable'   => '/usr/jawa/bin/juise',
                'SwapPath'          => '/var/www/html/swap/',
                'DeviceUsername'    => 'root',
                'DevicePassword'    => 'Juniper'
            )
        )
    ),
    new JSnapIODriverFiles(
        new JSnapConfigIOFiles(
            array(
                'SwapPath' => '/var/www/html/swap/'
            )
        )
    )
);

$commander->snapShot('192.168.33.11');