cancel
Showing results for 
Search instead for 
Did you mean: 

Using EDP output in scripting

Using EDP output in scripting

Davor
New Contributor
I would like to use sh edp ports all in script to indentify trunk ports.
Created script, loaded it and got error in that line. Is there some limitation to this?

"
...

set var CLI.OUT " "
show edp ports all
set var inputA $TCL(list ${CLI.OUT})
set var listA $TCL(split $inputA "\n")
set var countA $TCL(llength $listA)

....

"

BR
Davor
18 REPLIES 18

Paul_Russo
Extreme Employee
Great thanks Matt

Disclosure statement:
Davor any scripts that are written and posted on the Hub are best effort and must be validated by the user. These scripts, regardless of who writes them, assume that the user accepts all of the risk and responsibility.

If Matt posts some of his scripts know that neither he nor Extreme Networks are responsible for the ongoing operation of the script nor are we responsible for any outages or network issues caused by the script. Use any script posted on this site as test scripts that must be validated before use in any production network by the user of the script.

I just want to make sure that everyone realizes these are not done as part of a true Professional Services scope.

Thanks
P

Matthew_Helm1
Extreme Employee
Ok. I have a grab-bag of scripts that do something close to what you need. Let me crank something out and get it back to you.

Davor
New Contributor
That is correct. Also would like to add description to each trunk port copying from EDP peer name. Tried modifying ELRPON.xsf script but it is not working as it should. I can send you what i made so far.

Thing that dhcp-snoping script would be very valuable

Thanks for help,

Davor

Matthew_Helm1
Extreme Employee
So, to be clear, you want a script to check each port to see if an EDP neighbor is found, and if not, to "disable EDP" on that port. You then want a script to discover which ports are participating in sharing, and then "configure trusted-ports {ports} trust-for dhcp-server" on the master port. Presumably, you also want to "enable ip-security dhcp-snooping vlan..." on the ports not sharing nor having any EDP neighbor, correct? The last bit will require finding out the VLANs on those ports to enable dhcp-snooping on them. Is this an accurate summary? Will you be loading this script on each edge-switch only once?

Davor
New Contributor
I would like to use and identify all fields and use them later on to mark my trunk ports using port description. Maybe even to disable edp on all ports except one that has edp enabled device connected. As template, i'm using Mr. Padilla's ELRPOn.xsf script. At final stage i would like to identify my trunk ports on all of my edge switches and enable dhcp snooping/trusted server. Configuration on dhcp snooping has differences on trunk and edge ports.

BR
Davor
GTM-P2G8KFN