librenms/includes/osdiscovery/discover-ios.php

14 lines
337 B
PHP
Executable File

<?php
if(!$os) {
if(strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
if(strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
if(strstr($sysDescr, "Cisco IOS Software")) { $os = "ios"; }
if(strstr($sysDescr, "IOS-XE")) { $os = "iosxe"; }
if(strstr($sysDescr, "IOS XR")) { $os = "iosxr"; }
}
?>