mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	- Additional Cisco hardware check.
git-svn-id: http://www.observium.org/svn/observer/trunk@962 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -811,6 +811,8 @@ function formatCiscoHardware(&$device, $short = false)
 | 
				
			|||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            if (preg_match("/Cisco IOS Software, C([A-Za-z0-9]+) Software.*/", $device['sysDescr'], $matches)) {
 | 
					            if (preg_match("/Cisco IOS Software, C([A-Za-z0-9]+) Software.*/", $device['sysDescr'], $matches)) {
 | 
				
			||||||
                $device['hardware'] = "Cisco " . $matches[1];
 | 
					                $device['hardware'] = "Cisco " . $matches[1];
 | 
				
			||||||
 | 
					            } elseif (preg_match("/Cisco IOS Software, ([0-9]+) Software.*/", $device['sysDescr'], $matches)) {
 | 
				
			||||||
 | 
					                $device['hardware'] = "Cisco " . $matches[1];
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user