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@3087 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			22 lines
		
	
	
		
			774 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			774 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| if ($poll_device['sysDescr'] == "Neyland 24T")
 | |
| {
 | |
|   #$hardware = snmp_get($device, "productIdentificationVendor.0", "-Ovq", "Dell-Vendor-MIB");
 | |
|   $hardware = "Dell ".snmp_get($device, "productIdentificationDisplayName.0", "-Ovq", "Dell-Vendor-MIB");
 | |
|   $version  = snmp_get($device, "productIdentificationVersion.0", "-Ovq", "Dell-Vendor-MIB");
 | |
|   $icon     = 'dell';
 | |
| }
 | |
| else
 | |
| {
 | |
|   $version  = snmp_get($device, "rndBrgVersion.0", "-Ovq", "RADLAN-MIB");
 | |
|   $hardware = str_replace("ATI", "Allied Telesis", $poll_device['sysDescr']);
 | |
|   $icon     = 'allied';
 | |
| }
 | |
| $features = snmp_get($device, "rndBaseBootVersion.00", "-Ovq", "RADLAN-MIB");
 | |
| 
 | |
| $version = str_replace("\"","", $version);
 | |
| $features = str_replace("\"","", $features);
 | |
| $hardware = str_replace("\"","", $hardware);
 | |
| 
 | |
| ?>
 |