SHARE
TWEET

Untitled

a guest Jun 12th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php require('routeros_api.class.php'); $API = new RouterosAPI(); // biar muncul proses nya $API->debug = true; // klo pake port beda $API->port = 6847; // setting host / user / pass mikrotik $host = 'us-1.hostddns.us'; $user = 'adminsm'; $pass = 'adminsm25'; // action if ($API->connect($host, $user, $pass)) { $API->write('/interface/getall'); $READ = $API->read(false); $ARRAY = $API->parseResponse($READ); print_r($ARRAY); $API->disconnect(); } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top