mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			342 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			342 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 
 | 
						|
$hardware = 'Virtual Machine';
 | 
						|
$serial = str_replace('"','',snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.11.1', '-Oqv'));
 | 
						|
 | 
						|
// Cisco Secure Access Control System 5.8
 | 
						|
if (preg_match('/^Cisco Secure Access Control System ([^,]+)$/', $device['sysDescr'], $regexp_result)) {
 | 
						|
    $version  = $regexp_result[1];
 | 
						|
}
 | 
						|
else {
 | 
						|
    $version = '';
 | 
						|
}
 | 
						|
 |