opensolutions / OSS_SNMP

A PHP SNMP library for people who hate SNMP, MIBs and OIDs!
https://github.com/opensolutions/OSS_SNMP/wiki
Other
107 stars 58 forks source link

Fix detection of Cisco Nexus 3500 platform #44

Closed nschrenk closed 7 years ago

nschrenk commented 7 years ago

The sysDescr string of the specific version of this switch and software that I'm testing with contains 3 spaces before "Compiled" so the regexp wasn't matching. Adding \s* before "Compiled" in the regexp to match a variable number of spaces makes this match. This should be slightly more resilient to whatever format changes Cisco might make in the future.