2016-06-29 00:14:21 +01:00
|
|
|
<?php
|
2016-06-29 00:29:11 +01:00
|
|
|
/*
|
|
|
|
* LibreNMS
|
|
|
|
*
|
|
|
|
* Copyright (c) 2016 Neil Lathwood <neil@lathwood.co.uk>
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version. Please see LICENSE.txt at the top level of
|
|
|
|
* the source code distribution for details.
|
|
|
|
*/
|
2016-06-29 00:14:21 +01:00
|
|
|
|
|
|
|
if ($device['os'] == 'junos') {
|
|
|
|
|
|
|
|
echo 'Pre-cache JunOS: ';
|
|
|
|
|
|
|
|
$junos_oids = array();
|
|
|
|
echo 'Caching OIDs:';
|
|
|
|
|
2016-08-04 15:41:35 +01:00
|
|
|
$junos_oids = snmpwalk_cache_multi_oid($device, 'JnxDomCurrentEntry', array(), 'JUNIPER-DOM-MIB', $config['mib_dir'].':'.$config['mib_dir'].'/junos');
|
2016-06-29 00:14:21 +01:00
|
|
|
|
|
|
|
}
|