<?php include "snmputils.php"; include "procurve.php"; $hp1920 = new procurve("192.168.10.3", "public", "2c"); $hp1920_ifaces = $hp1920->get_iface_status_short(); $hp1920_ifaces_d = $hp1920->get_iface_status_detail(); $hp1920_info = $hp1920->get_system_info(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="favicon.ico"> <title>snmphp</title> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head>
<?php include "snmputils.php"; include "synology.php"; include "procurve.php"; $hp1920 = new procurve("192.168.10.3", "public", "2c"); $rs815 = new synology("192.168.10.20", "public", "1"); print_r($hp1920->get_system_info()); print_r($hp1920->get_iface_status_detail()); print_r($rs815->get_system_info()); print_r($rs815->get_disk_info()); print_r($rs815->get_network_info());