Question: We would like to achive vlan mapping where user only have to put his/her mac address of the device and destination vlan to be mapped.
We are doing vlan mapping for end user devices and want to execute some commands before we map source vlan to destination vlan with the help of mac address. and we are doing this in python programming.
Below are the things which we are trying to execute:
Find the source port with the help of mac address.
take the backup of the specific interface.
migrate the source vlan to destination vlan.
save the configuration to memory.
exit the program.
We accomplished port finding but not able to take the backup of specific interface..
INNER JOIN Orion.NodePortInterfaceMap NPM ON NPM.NodeID=NLC.NodeID and npm.PortID=nlc.PortID
INNER JOIN NCM.Nodes NS ON NS.CoreNodeID=NPM.NodeID
INNER JOIN Cirrus.Interfaces INTF ON INTF.NodeID=NS.NodeID AND INTF.InterfaceIndex=NPM.IfIndex
where MACAddress='xxxxxxxxxxx' and npm.porttype=1
2. I have gone through this NCM Config Transfer · solarwinds/OrionSDK Wiki · GitHub but still not able to understand that we can execute below command and put the output into another file. just would like to confirm where it is possible or we have to take complete switch configuration backup?
command: show run | fastethernet 0/x and w
3.We want to migrate the source vlan to destination vlan but confused whether we require switch creds or not?
4. How can we select the test switch and run any commands also please tell us what rights user need to have in order to perform this activity?
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.