This repository has been archived by the owner on Nov 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Change the access vlan of a port on a switch using snmp.
License
jjfalling/Cisco_Change_Vlan
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Cisco_Change_Vlan This script can be used on some cisco switches to change the access vlan of port. It will not change trunk ports to prevent taking down uplinks. Options: Debug - enable debuging output Vlan - what vlan you want to change to Port - what port you want to change the vlan on (ex: FastEthernet1/0/2, CASE SENSITIVE!) Hostname - hostname of the switch Wcommunity - snmp write community Name - (optional) expected name of switch port. This is used with automated tools to keep from changing the wrong port. Also keeps the switch ports updated. You will need the following perl libs: Net::SNMP Getops::Long Term::ANSIColor Tested on the following switches: Works: WS-C3750G-48TS-S WS-C3560G-48TS-S Does not work: WS-C6506-E running 12.2(17r)SX7 (Switch reports all ports are trunk ports [encap type 4]...)
About
Change the access vlan of a port on a switch using snmp.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published