PHP code example of lamoni / junosnetconf
1. Go to this page and download the library: Download lamoni/junosnetconf library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lamoni / junosnetconf example snippets
$junos = new JunosNetConf(
"192.168.0.100",
new NetConfAuthPassword(
[
"username" => "lamoni",
"password" => "phpsux"
]
)
);
echo $junos->operationalCommandText('show interfaces terse');