mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	git-svn-id: http://www.observium.org/svn/observer/trunk@1841 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			15 lines
		
	
	
		
			513 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			513 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
# FIXME snmp_get
 | 
						|
$snmp_cmd =  $config['snmpget'] . " -M ".$config['mibdir'] . " -m Dell-Vendor-MIB -O Qv -" . $device['snmpver'] . " -c " . $device['community'] . " " .
 | 
						|
                 $device['hostname'].":".$device['port'];
 | 
						|
$snmp_cmd .= " productIdentificationDisplayName.0 productIdentificationVersion.0 productIdentificationDescription.0";
 | 
						|
 | 
						|
list($hardware, $version, $features) = explode("\n", shell_exec($snmp_cmd));
 | 
						|
 | 
						|
if (strstr($hardware,"No Such Object available"))
 | 
						|
{
 | 
						|
  $hardware = $sysDescr;
 | 
						|
}
 | 
						|
 | 
						|
?>
 |