mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
basic comware (h3c now hp replacing procurve)
git-svn-id: http://www.observium.org/svn/observer/trunk@2697 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
17
includes/polling/os/comware.inc.php
Normal file
17
includes/polling/os/comware.inc.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
# SNMPv2-MIB::sysDescr.0 = STRING: Hangzhou H3C Comware Platform Software, Software Version 3.10, Release 2211P06
|
||||
# H3C S3100-8TP-EI
|
||||
# Copyright(c) 2004-2010 Hangzhou H3C Tech. Co.,Ltd. All rights reserved.
|
||||
# SNMPv2-MIB::sysObjectID.0 = OID: HH3C-PRODUCT-ID-MIB::hh3c-S3100-8TP-EI
|
||||
|
||||
echo("Comware OS...");
|
||||
|
||||
|
||||
$hardware = snmp_get($device, "sysObjectID.0", "-OQsv", "SNMPv2-MIB:HH3C-PRODUCT-ID-MIB", "+".$config['install_dir']."/mibs/h3c");
|
||||
|
||||
list(,$version,$features) = explode(",", $poll_device['sysDescr']);
|
||||
list(,,,$version) = explode(" ", $version);
|
||||
list(,,$features) = explode(" ", $features);
|
||||
|
||||
?>
|
Reference in New Issue
Block a user