mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			567 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			567 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
// SNMPv2-SMI::enterprises.18334.1.1.1.1.6.2.1.0 = STRING: "KONICA MINOLTA magicolor 4650"
 | 
						|
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.18334.1.1.1.1.6.2.1.0', '-OQv', '', ''), '" ');
 | 
						|
 | 
						|
// SNMPv2-SMI::enterprises.18334.1.1.1.1.6.1.0 = STRING: "1.74"
 | 
						|
 | 
						|
$version = trim(snmp_get($device, '1.3.6.1.4.1.18334.1.1.1.1.6.1.0', '-OQv', '', ''), '" ');
 | 
						|
 | 
						|
$serial = trim(snmp_get($device, '1.3.6.1.2.1.43.5.1.1.17.1', '-OQv', '', ''), '" ');
 | 
						|
 | 
						|
// Strip off useless brand fields
 | 
						|
$hardware = str_ireplace('KONICA MINOLTA ', '', $hardware);
 | 
						|
$hardware = ucfirst($hardware);
 |