Value LOCAL_INTERFACE (\S+) Value CHASSIS_ID ([^:]+) Value NEIGHBOR_PORT_ID (.*) Value NEIGHBOR_INTERFACE (.*) Value NEIGHBOR (.+?) Value SYSTEM_DESCRIPTION (.*) Value CAPABILITIES (.*) Value MANAGEMENT_IP (\S+) Value VLAN (\d+) Value SERIAL (\S+) Value MANUFACTURER (.*) Value HW_REVISION (\S+) Value FW_REVISION (\S+) Value SW_REVISION (\S+) Value MODEL (.*) Value POWER_PAIR (\S+) Value POWER_CLASS (\d+) Value POWER_DEVICE_TYPE (\S+) Value POWER_PRIORITY (\S+) Value POWER_SOURCE (\S+) Value POWER_REQUESTED (\d+) Start ^.*not advertised ^.*Invalid input detected -> EOF ^.*LLDP is not enabled -> EOF ^Local\s+Intf:\s+${LOCAL_INTERFACE}\s*$$ ^Chassis\s+id:\s+${CHASSIS_ID}\s*$$ ^Port\s+id:\s+${NEIGHBOR_PORT_ID}\s*$$ ^Port\s+Description:\s+${NEIGHBOR_INTERFACE}\s*$$ ^System\s+Name(\s+-\s+not\s+advertised)\s*$$ ^System\s+Name:?\s*$$ ^System\s+Name(:\s+${NEIGHBOR})\s*$$ ^System\s+Description -> GetDescription ^Time ^System\s+Capabilities ^Enabled\s+Capabilities:\s+${CAPABILITIES}\s*$$ ^Management\s+Addresses ^\s+OID ^\s+[\d+\.]{8,} ^.*IP:\s+${MANAGEMENT_IP}\s*$$ ^Auto\s+Negotiation ^Physical\s+media # Removed \(\s+\) from the template - The line 'Other/unknown' would not be captured # Now looks for any text beginning with any space ^\s+.+\s*$$ ^Media\s+Attachment ^\s+Inventory ^\s+Capabilities ^\s+Device\s+type ^\s+Network\s+Policies ^\s+Power\s+requirements ^\s+Location ^Time\s+remaining ^Vlan\s+ID:\s+(?:${VLAN}|-\s+not\s+advertised)\s*$$ ^\s+\(\S+\) ^(?:PoE|\s+Power) ^\s*-+\s*$$ -> Record ^Power\s+via\s+MDI -> PowerMDI ^MED -> Med ^\s*\^\s* ^\s*Total\s+entries\s+displayed -> Record ^\s*$$ # Capture time-stamp if vty line has command time-stamping turned on ^Load\s+for\s+ ^Time\s+source\s+is ^.*$$ -> Error GetDescription ^${SYSTEM_DESCRIPTION} -> IgnoreDescription IgnoreDescription ^Time\s+remaining -> Start ^\S* ^\s*$$ ^.* -> Error PowerMDI ^\s+Power\s+Pair:\s+${POWER_PAIR}\s*$$ ^\s+Power\s+Class:\s+${POWER_CLASS}\s*$$ ^\s+Power\s+Device\s+Type:\s+${POWER_DEVICE_TYPE}\s*$$ ^\s+Power\s+Source:\s+${POWER_SOURCE}\s*$$ ^\s+Power\s+Priority:\s+${POWER_PRIORITY}\s*$$ ^\s+Power\s+Requested:\s+${POWER_REQUESTED}\s+mW\s*$$ ^\s*$$ -> Start Med ^\s+Serial\s+number:\s+${SERIAL}\s*$$ ^\s+Manufacturer:\s+${MANUFACTURER}\s*$$ ^\s+Model:\s+${MODEL}\s*$$ ^\s+H/W revision:\s+${HW_REVISION}\s*$$ ^\s+F/W revision:\s+${FW_REVISION}\s*$$ ^\s+S/W revision:\s+${SW_REVISION}\s*$$ ^\s+\S+ ^\s*$$ ^\s*Total\s+entries\s+displayed -> Record ^\s*-+\s*$$ -> Continue.Record ^\s*-+\s*$$ -> Start ^.* -> Error