Closed mhayes911 closed 6 years ago
snmp output from a cisco 3650
iso.3.6.1.2.1.1.1.0 = STRING: "Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.06.06E RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Sat 17-Dec-"
the regex below works on both the text above and the sample text in vendor_cisco.php
/Cisco IOS Software, IOS-XE Software,\s+([a-zA-Z0-9\s]+)\sSoftware\s(([0-9A-Za-z().-_]+)),\sVersion\s([0-9A-Za-z.]+)\sRELEASE SOFTWARE.*/
snmp output from a cisco 3650
iso.3.6.1.2.1.1.1.0 = STRING: "Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.06.06E RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Sat 17-Dec-"
the regex below works on both the text above and the sample text in vendor_cisco.php
/Cisco IOS Software, IOS-XE Software,\s+([a-zA-Z0-9\s]+)\sSoftware\s(([0-9A-Za-z().-_]+)),\sVersion\s([0-9A-Za-z.]+)\sRELEASE SOFTWARE.*/