Skip to content

A PHP API for working with Juniper's Junos Snapshot Administrator

License

Notifications You must be signed in to change notification settings

lamoni/jsnapcommander

Repository files navigation

JSnap Commander

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');

About

A PHP API for working with Juniper's Junos Snapshot Administrator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages