Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco_ios_show_interfaces_status.textfsm (no interface in monitoring state) #878

Closed
narcotico-g opened this issue Mar 9, 2021 · 3 comments

Comments

@narcotico-g
Copy link

Hello,

Interfaces in monitoring state are omitted in the output.

After review the template, it is solved only addiing this state in value status:

`Value PORT (\S+)
Value NAME (.+?)
Value STATUS (err-disabled|disabled|connected|notconnect|inactive|monitoring)
Value VLAN (\S+)
Value DUPLEX (\S+)
Value SPEED (\S+)
Value TYPE (.*)

Start
^Port -> Begin

Capture time-stamp if vty line has command time-stamping turned on

^Load\s+for\s+
^Time\s+source\s+is

Begin
^\s*${PORT}\s+${STATUS}\s+${VLAN}\s+${DUPLEX}\s+${SPEED}\s*${TYPE}$$ -> Record
^\s*${PORT}\s+${NAME}\s+${STATUS}\s+${VLAN}\s+${DUPLEX}\s+${SPEED}\s*${TYPE}$$ -> Record
`

Thanks.

@FragmentedPacket
Copy link
Contributor

Do you mind opening a PR to fix this issue? Or at least provide the output this is failing on?

@JosephWong2060
Copy link

Do you mind opening a PR to fix this issue? Or at least provide the output this is failing on?

Here is an example output of "show interface status" in cisco ios-xe switch (WS-C3650-48FS-L) for your test.

AS01>show interface status

Port Name Status Vlan Duplex Speed Type
Gi1/0/1 FW01 Eth1/1 connected trunk a-full a-1000 10/100/1000BaseTX
Gi1/0/2 FW01 Eth1/2 connected trunk a-full a-1000 10/100/1000BaseTX
Gi1/0/3 FW01 Eth1/3 connected trunk a-full a-1000 10/100/1000BaseTX
Gi1/0/4 FW01 Eth1/4 connected trunk a-full a-1000 10/100/1000BaseTX
Gi1/0/5 CS01 Eth1/5 connected trunk a-full a-1000 10/100/1000BaseTX
Gi1/0/6 CS02 Eth1/5 suspended trunk auto a-1000 10/100/1000BaseTX
Gi1/0/7 CS01 Eth1/6 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/8 CS02 Eth1/6 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/9 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/10 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/11 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/12 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/13 MC Client connected 1032 a-full a-1000 10/100/1000BaseTX
Gi1/0/14 MC Server connected 606 a-full a-1000 10/100/1000BaseTX
Gi1/0/15 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/16 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/17 Monitor PC monitoring 1 auto a-1000 10/100/1000BaseTX
Gi1/0/18 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/19 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/20 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/21 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/22 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/23 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/24 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/25 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/26 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/27 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/28 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/29 CS02 MGMT connected 1056 a-full a-1000 10/100/1000BaseTX
Gi1/0/30 FW01 MGMT connected 1056 a-full a-1000 10/100/1000BaseTX
Gi1/0/31 CS01 MGMT connected 1056 a-full a-1000 10/100/1000BaseTX
Gi1/0/32 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/33 connected 1056 a-full a-100 10/100/1000BaseTX
Gi1/0/34 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/35 Uplink connected 1056 a-full a-1000 10/100/1000BaseTX
Gi1/0/36 notconnect 1056 auto auto 10/100/1000BaseTX
Gi1/0/37 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/38 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/39 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/40 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/41 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/42 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/43 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/44 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/45 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/46 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/47 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/0/48 notconnect 1 auto auto 10/100/1000BaseTX
Gi1/1/1 CS01 Eth1/47 connected trunk full 1000 1000BaseLX SFP
Gi1/1/2 CS02 Eth1/47 connected trunk full 1000 1000BaseLX SFP
Gi1/1/3 CS01 Eth1/48 connected trunk full 1000 1000BaseLX SFP
Gi1/1/4 CS02 Eth1/48 connected trunk full 1000 1000BaseLX SFP
AS01>

@dmiller3079
Copy link

dmiller3079 commented May 11, 2021

Also just ran in to this issue, port status = monitoring, fixed it with the line suggested in the initial post.
"Value STATUS (err-disabled|disabled|connected|notconnect|inactive|monitoring)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants