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

Find MAC addresses in cisco IOS show version. #214

Merged
merged 6 commits into from
Jan 21, 2019

Conversation

kimoldfield
Copy link
Contributor

ISSUE TYPE
  • Update Template Pull Request
COMPONENT

cisco_ios/show_version

SUMMARY

Recognise base MAC address from show version output.

@itdependsnetworks
Copy link
Contributor

The implementation seems fine, but I would prefer to not have to change this if possible, especially since it seems to only be in stack switches. Can you get this information from a show switch or other show command?

@kimoldfield
Copy link
Contributor Author

I'll try a new template for "show switch detail" as a separate pull request.

@kimoldfield
Copy link
Contributor Author

Some switches (such as our Cat 3560s) have a MAC address in "show version", but don't have the "show switch detail" command - so discovering MAC addresses in "show version" is still be required.
Having the MAC address often filled in is better than always having to use a different command which may only work on some switches.

@itdependsnetworks
Copy link
Contributor

It’s better from this one edge use case for sure, but better overall is a relative. Can you verify it’s not there with a show tech and some includes?

@kimoldfield
Copy link
Contributor Author

Given the large amount of information many devices have to generate with a "show tech", I feel "show tech" command is inappropriate (even with |include) for finding a MAC address which can be found with a simple "show version".
I'm not interested in further following up different commands which may give me what I can easily get with "show version". I'll continue to use my show_version.template.
If you choose not to incorporate my pull request them I'm OK with that.
I hope the repository continues to remain useful to me for other commands.

@itdependsnetworks
Copy link
Contributor

I was merely asking to find the commands via show tech, was not suggesting to use that as a solution.

@kimoldfield
Copy link
Contributor Author

On one of our C3650 switches the "show tech" output has the base MAC address in the following commands:
show version
show spanning-tree
show vtp status
The output from the latter two commands probably depends on the if those protocols are running, and the version of that protocol being run.

@jmcgill298 jmcgill298 merged commit ece7f94 into networktocode:master Jan 21, 2019
jvanderaa pushed a commit that referenced this pull request Nov 10, 2021
Add new capture group `MAC` for capturing system mac addresses (seem to only show up on stack switches)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants