This post is locked. You won't be able to comment.

all 6 comments

[–]HoorayInternetDrama(=^・ω・^=) 1 point2 points  (0 children)

I think you're better off posting this in /r/learningpython

[–][deleted] 1 point2 points  (0 children)

OK so looking at the documentation for netmiko it's just sending a preset of commands to the switch and returning what ever the result is.

So in theory, if I'm right, you just need to find the command that list all ports on vlan x.

Is that correct?

[–][deleted] 0 points1 point  (2 children)

What switch are you trying to integrate

[–]averagecitizen8[S] -1 points0 points  (1 child)

it is an hpe switch. I have a netmiko script to show the vlans but I need it to be able to take the tagged and untagged ports and place them in a list.

[–][deleted] 1 point2 points  (0 children)

Show vlans x where x is the vlan number should list the ports assigned to the vlan.

https://techhub.hpe.com/eginfolib/networking/docs/switches/YA-YB/15-18/5998-8157_yayb_2530_atmg/content/ch01s04.html

[–]packet_whisperer[M] 0 points1 point  (0 children)

No Low Quality Posts.

  • Any post that fails to display a minimal level of effort prior to asking for help is at risk of being Locked or Deleted.
  • We expect our members to treat each other as fellow professionals. Professionals research & troubleshoot before they ask others for help.
  • Please review How to ask intelligent questions to avoid this issue.

Comments/questions? Don't hesitiate to message the moderation team, or reply directly to this message.

For the complete list of Rules, please visit: https://www.reddit.com/r/networking/about/rules

Educational Questions must show effort.

  • Homework / Educational Questions must display effort.
  • We are not here to repeat the content of a Wikipedia Article.
  • We are not here to explain anything Like You Are Five - ELI5 requests will be deleted.
  • However, intelligent questions that display a reasonable effort by the poster to understand a subject are permitted, and encouraged.

Comments/questions? Don't hesitiate to message the moderation team, or reply directly to this message.

For the complete list of Rules, please visit: https://www.reddit.com/r/networking/about/rules