mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Comware Version Fix
Be able to discover the version && features on older versions && newer.
This commit is contained in:
		@@ -8,5 +8,6 @@ echo 'Comware OS...';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
$hardware = snmp_get($device, 'sysObjectID.0', '-Osqv', 'SNMPv2-MIB:HH3C-PRODUCT-ID-MIB');
 | 
					$hardware = snmp_get($device, 'sysObjectID.0', '-Osqv', 'SNMPv2-MIB:HH3C-PRODUCT-ID-MIB');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
preg_match('/Software Version (.+), Release ([a-zA-Z0-9]+)/', $poll_device['sysDescr'], $match);
 | 
					$data =  str_replace(",","",$poll_device['sysDescr']);
 | 
				
			||||||
list(,$version,$features) = $match;
 | 
					$version = $data['6'];
 | 
				
			||||||
 | 
					$features = $data['8'];
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user