You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value LOCAL_INTERFACE (\S+)
Value CHASSIS_ID (\S+)
Value NEIGHBOR_PORT_ID (.*)
Value NEIGHBOR_INTERFACE (.*)
Value NEIGHBOR (\S+)
Value SYSTEM_DESCRIPTION (.*)
Value CAPABILITIES (.*)
Value MANAGEMENT_IP (\S+)
Value VLAN (\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+${NEIGHBOR}|\s+-\s+not\s+advertised)\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}
^Auto\s+Negotiation
^Physical\s+media
^\s+.+\(\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
^MED -> Med
^\s*\^\s*
^\s*Total\s+entries\s+displayed -> Record
^\s*$$
^.*$$ -> Error
GetDescription
^${SYSTEM_DESCRIPTION} -> IgnoreDescription
IgnoreDescription
^Time\s+remaining -> Start
^\S*
^\s*$$
^.* -> Error
Med
^\s+\S+
^\s*$$
^\s*-+\s*$$ -> Continue.Record
^\s*-+\s*$$ -> Start
^.* -> Error
SAMPLE COMMAND OUTPUT
WuHanCDC_CSW_01#show lldp nei de
------------------------------------------------
Local Intf: Gi2/0/48
Chassis id: 00b8.b3ce.8b80
Port id: Gi1/0/48
Port Description: GigabitEthernet1/0/48
System Name: WuHanCDC_ASW_01.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 112 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.254
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: 100
------------------------------------------------
Local Intf: Gi1/0/47
Chassis id: 00b8.b3ce.8b80
Port id: Gi1/0/47
Port Description: GigabitEthernet1/0/47
System Name: WuHanCDC_ASW_01.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 119 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.254
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: 100
------------------------------------------------
Local Intf: Gi1/0/41
Chassis id: 10.33.168.17
Port id: 00D6FE04165C:P1
Port Description: SW PORT
System Name: SEP00D6FE04165C
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 176 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.17
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2233DT5U
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/14
Chassis id: 10.33.168.16
Port id: 00D6FE045DEA:P1
Port Description: SW PORT
System Name: SEP00D6FE045DEA
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 171 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.16
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2233EGY4
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/18
Chassis id: 10.33.168.22
Port id: 00D6FE04293D:P1
Port Description: SW PORT
System Name: SEP00D6FE04293D
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 152 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.22
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 2
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 5900 mW
Power Allocated: 5900 mW
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2233DXBZ
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi1/0/25
Chassis id: 10.33.168.26
Port id: B0907E6B0763:P1
Port Description: SW PORT
System Name: SEPB0907E6B0763
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 128 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.26
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 2
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 5900 mW
Power Allocated: 5900 mW
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2228EL69
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Te2/1/3
Chassis id: 00b1.e328.4380
Port id: Te1/0/2
Port Description: TenGigabitEthernet1/0/2
System Name: WuHanCDC_ASW_05.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 113 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.250
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type: 36
Vlan ID: 1
------------------------------------------------
Local Intf: Gi2/0/5
Chassis id: 10.33.168.23
Port id: 00D6FE045DE5:P1
Port Description: SW PORT
System Name: SEP00D6FE045DE5
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 142 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.23
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2233EGXZ
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/30
Chassis id: 10.33.168.28
Port id: B0907E6AFE46:P1
Port Description: SW PORT
System Name: SEPB0907E6AFE46
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 120 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.28
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2228EJ5K
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/12
Chassis id: 10.33.168.25
Port id: B0907E6B0859:P1
Port Description: SW PORT
System Name: SEPB0907E6B0859
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 122 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.25
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2228ELDH
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Te1/1/3
Chassis id: 00b1.e328.4380
Port id: Te1/0/1
Port Description: TenGigabitEthernet1/0/1
System Name: WuHanCDC_ASW_05.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 109 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.250
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type: 36
Vlan ID: 1
------------------------------------------------
Local Intf: Gi2/0/37
Chassis id: 10.33.169.0
Port id: B0907E6A7DE4:P1
Port Description: SW PORT
System Name: SEPB0907E6A7DE4
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 153 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.169.0
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 2
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 5900 mW
Power Allocated: 5900 mW
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2227G6RT
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/33
Chassis id: 10.33.168.49
Port id: 00D6FE041141:P1
Port Description: SW PORT
System Name: SEP00D6FE041141
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 159 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.49
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 2
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 5900 mW
Power Allocated: 5900 mW
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2233DS1B
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi1/0/7
Chassis id: 10.33.168.47
Port id: 00D6FE041534:P1
Port Description: SW PORT
System Name: SEP00D6FE041534
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 156 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.47
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2233DSX3
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/47
Chassis id: 00b1.e357.da80
Port id: Gi1/0/48
Port Description: GigabitEthernet1/0/48
System Name: WuHanCDC_ASW_02.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 95 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.253
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: 100
------------------------------------------------
Local Intf: Gi1/0/48
Chassis id: 00b1.e357.da80
Port id: Gi1/0/47
Port Description: GigabitEthernet1/0/47
System Name: WuHanCDC_ASW_02.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 94 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.253
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: 100
------------------------------------------------
Local Intf: Gi2/0/16
Chassis id: 10.33.168.255
Port id: B0907E6B0344:P1
Port Description: SW PORT
System Name: SEPB0907E6B0344
System Description:
Cisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads
Time remaining: 154 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.33.168.255
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 2
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 5900 mW
Power Allocated: 5900 mW
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 1
F/W revision: 2345
S/W revision: sip88xx.12-1-1SR1-4.loads
Serial number: FCH2228EK98
Manufacturer: Cisco Systems, Inc.
Model: CP-8811
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9
Location - not advertised
------------------------------------------------
Local Intf: Te1/1/1
Chassis id: 00b8.b3ce.9100
Port id: Te1/0/2
Port Description: TenGigabitEthernet1/0/2
System Name: WuHanCDC_ASW_03.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 117 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.252
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type: 36
Vlan ID: 1
------------------------------------------------
Local Intf: Te2/1/1
Chassis id: 00b8.b3ce.9100
Port id: Te1/0/1
Port Description: TenGigabitEthernet1/0/1
System Name: WuHanCDC_ASW_03.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 99 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.252
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type: 36
Vlan ID: 1
------------------------------------------------
Local Intf: Te2/1/2
Chassis id: 00b1.e357.c480
Port id: Te1/0/2
Port Description: TenGigabitEthernet1/0/2
System Name: WuHanCDC_ASW_04.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 105 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.251
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type: 36
Vlan ID: 1
------------------------------------------------
Local Intf: Te1/1/2
Chassis id: 00b1.e357.c480
Port id: Te1/0/1
Port Description: TenGigabitEthernet1/0/1
System Name: WuHanCDC_ASW_04.nio.net
System Description:
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E7, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 13:06 by prod_rel_team
Time remaining: 117 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses:
IP: 10.33.171.251
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type: 36
Vlan ID: 1
------------------------------------------------
Local Intf: Gi2/0/23
Chassis id: 904c.81c8.ec2c
Port id: 904c.81c8.ec2c
Port Description: bond0
System Name: 90:4c:81:c8:ec:2c
System Description:
ArubaOS (MODEL: 305), Version Aruba IAP
Time remaining: 108 seconds
System Capabilities: B,W
Enabled Capabilities: W
Management Addresses:
IP: 10.33.168.18
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
Asym Pause(FD)
Pause(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 4
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 19500 mW
Power Allocated: 19500 mW
------------------------------------------------
Local Intf: Gi2/0/22
Chassis id: 904c.81c9.0876
Port id: 904c.81c9.0876
Port Description: bond0
System Name: 90:4c:81:c9:08:76
System Description:
ArubaOS (MODEL: 305), Version Aruba IAP
Time remaining: 111 seconds
System Capabilities: B,W
Enabled Capabilities: W
Management Addresses:
IP: 10.33.168.19
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
Asym Pause(FD)
Pause(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 4
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 19500 mW
Power Allocated: 19500 mW
------------------------------------------------
Local Intf: Gi2/0/24
Chassis id: 904c.81c8.f322
Port id: 904c.81c8.f322
Port Description: bond0
System Name: 90:4c:81:c8:f3:22
System Description:
ArubaOS (MODEL: 305), Version Aruba IAP
Time remaining: 99 seconds
System Capabilities: B,W
Enabled Capabilities: W
Management Addresses:
IP: 10.33.168.20
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
Asym Pause(FD)
Pause(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 4
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 19500 mW
Power Allocated: 19500 mW
------------------------------------------------
Local Intf: Gi2/0/21
Chassis id: 904c.81c9.0e28
Port id: 904c.81c9.0e28
Port Description: bond0
System Name: 90:4c:81:c9:0e:28
System Description:
ArubaOS (MODEL: 305), Version Aruba IAP
Time remaining: 116 seconds
System Capabilities: B,W
Enabled Capabilities: W
Management Addresses:
IP: 10.33.168.21
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
Asym Pause(FD)
Pause(FD)
100base-TX(FD)
100base-TX(HD)
10base-T(FD)
10base-T(HD)
Media Attachment Unit type: 30
Vlan ID: - not advertised
PoE+ Power-via-MDI TLV:
Power Pair: Signal
Power Class: Class 4
Power Device Type: Type 2 PD
Power Source: PSE
Power Priority: unknown
Power Requested: 19500 mW
Power Allocated: 19500 mW
------------------------------------------------
Local Intf: Gi2/0/25
Chassis id: 000e.c6a9.ebf5
Port id: 000e.c6a9.ebf5
Port Description - not advertised
System Name - not advertised
System Description - not advertised
Time remaining: 2954 seconds
System Capabilities - not advertised
Enabled Capabilities - not advertised
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
Media Attachment Unit type - not advertised
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
Inventory information - not advertised
Capabilities:
Device type: Endpoint Class I
Network Policies - not advertised
Power requirements - not advertised
Location - not advertised
------------------------------------------------
Local Intf: Gi2/0/38
Chassis id: 1860.248b.7b10
Port id: 1860.248b.7b10
Port Description - not advertised
System Name - not advertised
System Description - not advertised
Time remaining: 3159 seconds
System Capabilities - not advertised
Enabled Capabilities - not advertised
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
Media Attachment Unit type - not advertised
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
Inventory information - not advertised
Capabilities:
Device type: Endpoint Class I
Network Policies - not advertised
Power requirements - not advertised
Location - not advertised
Total entries displayed: 27
SUMMARY
This template failed to parse command when the last LLDP neighbor includes a "MED information" section but works well when the last neighbor doesn't have a "MED information" section.
STEPS TO REPRODUCE
---
- name: "test"gather_facts: nohosts: localhostconnection: localignore_errors: yesvars:
- foo_end_with_MED: "------------------------------------------------\nLocal Intf: Gi1/0/33\nChassis id: 10.33.174.135\nPort id: B0907E6B04DE:P1\nPort Description: SW PORT\nSystem Name: SEPB0907E6B04DE\n\nSystem Description: \nCisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads\n\nTime remaining: 131 seconds\nSystem Capabilities: B,T\nEnabled Capabilities: B,T\nManagement Addresses:\n IP: 10.33.174.135\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\nPoE+ Power-via-MDI TLV:\n Power Pair: Signal\n Power Class: Class 2\n Power Device Type: Type 2 PD\n Power Source: PSE\n Power Priority: unknown\n Power Requested: 5900 mW\n Power Allocated: 5900 mW\n\nMED Information:\n\n MED Codes:\n (NP) Network Policy, (LI) Location Identification\n (PS) Power Source Entity, (PD) Power Device\n (IN) Inventory\n\n H/W revision: 1\n F/W revision: 2345\n S/W revision: sip88xx.12-1-1SR1-4.loads\n Serial number: FCH2228EKMA\n Manufacturer: Cisco Systems, Inc.\n Model: CP-8811\n Capabilities: NP, PD, IN\n Device type: Endpoint Class III\n Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46\n Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32\n PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9\n Location - not advertised\n\n------------------------------------------------\nLocal Intf: Gi1/0/36\nChassis id: 10.33.173.184\nPort id: 00D6FE041575:P1\nPort Description: SW PORT\nSystem Name: SEP00D6FE041575\n\nSystem Description: \nCisco IP Phone 8811, V1, sip88xx.12-1-1SR1-4.loads\n\nTime remaining: 144 seconds\nSystem Capabilities: B,T\nEnabled Capabilities: B,T\nManagement Addresses:\n IP: 10.33.173.184\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\nMED Information:\n\n MED Codes:\n (NP) Network Policy, (LI) Location Identification\n (PS) Power Source Entity, (PD) Power Device\n (IN) Inventory\n\n H/W revision: 1\n F/W revision: 2345\n S/W revision: sip88xx.12-1-1SR1-4.loads\n Serial number: FCH2233DSZ0\n Manufacturer: Cisco Systems, Inc.\n Model: CP-8811\n Capabilities: NP, PD, IN\n Device type: Endpoint Class III\n Network Policy(Voice): VLAN data, untagged, Layer-2 priority: 5, DSCP: 46\n Network Policy(Voice Signal): VLAN data, untagged, Layer-2 priority: 4, DSCP: 32\n PD device, Power source: PSE, Power Priority: Unknown, Wattage: 5.9\n Location - not advertised\n\n------------------------------------------------\nLocal Intf: Gi1/0/5\nChassis id: 1860.248e.cb38\nPort id: 1860.248e.cb38\nPort Description - not advertised\nSystem Name - not advertised\nSystem Description - not advertised\n\nTime remaining: 2984 seconds\nSystem Capabilities - not advertised\nEnabled Capabilities - not advertised\nManagement Addresses - not advertised\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\nMedia Attachment Unit type - not advertised\nVlan ID: - not advertised\n\nMED Information:\n\n MED Codes:\n (NP) Network Policy, (LI) Location Identification\n (PS) Power Source Entity, (PD) Power Device\n (IN) Inventory\n\n Inventory information - not advertised\n Capabilities: \n Device type: Endpoint Class I\n Network Policies - not advertised\n Power requirements - not advertised\n Location - not advertised\n\n\nTotal entries displayed: 2"
- foo_end_no_MED: "------------------------------------------------\nLocal Intf: Gi2/0/25\nChassis id: a8bd.27c8.892e\nPort id: a8bd.27c8.892e\nPort Description: bond0\nSystem Name: BJYZSO_89:2e\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 106 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.33\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/26\nChassis id: a8bd.27c8.8940\nPort id: a8bd.27c8.8940\nPort Description: bond0\nSystem Name: BJYZSO_89:40\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 97 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.31\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/23\nChassis id: a8bd.27c8.1350\nPort id: a8bd.27c8.1350\nPort Description: bond0\nSystem Name: BJYZSO_13:50\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 100 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.35\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/29\nChassis id: a8bd.27c8.8904\nPort id: a8bd.27c8.8904\nPort Description: bond0\nSystem Name: BJYZSO_89:04\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 97 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.36\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/28\nChassis id: a8bd.27c8.1328\nPort id: a8bd.27c8.1328\nPort Description: bond0\nSystem Name: BJYZSO_13:28\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 109 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.34\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/24\nChassis id: a8bd.27c8.88de\nPort id: a8bd.27c8.88de\nPort Description: bond0\nSystem Name: BJYZSO_88:de\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 105 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.32\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/27\nChassis id: a8bd.27c8.130c\nPort id: a8bd.27c8.130c\nPort Description: bond0\nSystem Name: BJYZSO_13:0c\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 110 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.39\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/31\nChassis id: a8bd.27c8.890a\nPort id: a8bd.27c8.890a\nPort Description: bond0\nSystem Name: BJYZSO_89:0a\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 111 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.38\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n------------------------------------------------\nLocal Intf: Gi2/0/30\nChassis id: a8bd.27c8.12d6\nPort id: a8bd.27c8.12d6\nPort Description: bond0\nSystem Name: BJYZSO_12:d6\n\nSystem Description: \nArubaOS (MODEL: 205), Version 6.4.4.16 (61809)\n\nTime remaining: 92 seconds\nSystem Capabilities: B,W\nEnabled Capabilities: W\nManagement Addresses:\n IP: 10.33.29.37\nAuto Negotiation - supported, enabled\nPhysical media capabilities:\n 1000baseT(FD)\n 100base-TX(FD)\n 100base-TX(HD)\n 10base-T(FD)\n 10base-T(HD)\nMedia Attachment Unit type: 30\nVlan ID: - not advertised\n\n\nTotal entries displayed: 9"
tasks:
- name: "debug foo1"debug:
msg: "{{ foo_end_with_MED | parse_cli_textfsm('roles/NIO_wire_AAA/library/parse_cli/cisco_ios_show_lldp_neighbors_detail.template') }}"
- name: "debug foo2"debug:
msg: "{{ foo_end_no_MED | parse_cli_textfsm('roles/NIO_wire_AAA/library/parse_cli/cisco_ios_show_lldp_neighbors_detail.template') }}"
TASK [debug foo1] ********************************************************************************************************************************************************************************
task path: /home/minghao.cui/ansible/test.yml:11
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 140, in run
res = self._execute()
File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 539, in _execute
self._task.post_validate(templar=templar)
File "/usr/lib/python2.7/site-packages/ansible/playbook/task.py", line 267, in post_validate
super(Task, self).post_validate(templar)
File "/usr/lib/python2.7/site-packages/ansible/playbook/base.py", line 364, in post_validate
value = templar.template(getattr(self, name))
File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 540, in template
disable_lookups=disable_lookups,
File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 495, in template
disable_lookups=disable_lookups,
File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 746, in do_template
res = j2_concat(rf)
File "<template>", line 12, in root
File "/usr/lib/python2.7/site-packages/ansible/plugins/filter/network.py", line 247, in parse_cli_textfsm
fsm_results = re_table.ParseText(value)
File "build/bdist.linux-x86_64/egg/textfsm.py", line 885, in ParseText
self._CheckLine(line)
File "build/bdist.linux-x86_64/egg/textfsm.py", line 908, in _CheckLine
if self._Operations(rule, line):
File "build/bdist.linux-x86_64/egg/textfsm.py", line 989, in _Operations
% (rule.line_num, line))
TextFSMError: State Error raised. Rule Line: 63. Input Line: Total entries displayed: 2
fatal: [localhost]: FAILED! => {
"msg": "Unexpected failure during module execution."
}
The text was updated successfully, but these errors were encountered:
cuiminghao8
changed the title
cisco_ios_show_lldp_neighbors_detail failing when raw output ended with neighbor includes" MED information
cisco_ios_show_lldp_neighbors_detail failing when last neighbor includes" MED information" section
Jul 30, 2019
ISSUE TYPE
TEMPLATE USING
SAMPLE COMMAND OUTPUT
SUMMARY
This template failed to parse command when the last LLDP neighbor includes a "MED information" section but works well when the last neighbor doesn't have a "MED information" section.
STEPS TO REPRODUCE
EXPECTED RESULTS
Expected to see structured result like:
ACTUAL RESULTS
The task "debug foo1" failed with error.
``
The text was updated successfully, but these errors were encountered: