cancel
Showing results for 
Search instead for 
Did you mean: 

Netsight ELRP script

Netsight ELRP script

Justsomebodi
New Contributor III
Hi All

I need to change the settings of ELRP interval. I have found this script which i am sure can be used in Netsight.

disable clipaging enable elrp-client

set var sv "#ELRP POLL STARTED#"

show var sv

set var cli.out 0

show vlan

set var sv $TCL(split ${cli.out} "\n")

set var e $TCL(lsearch $sv *(B)*)

set var i 5

set var e ($e - 1)

while ($i < $e) do

set var cli.out 0

set var v $TCL(lindex $sv $i)

set var vn $TCL(lindex $v 0)

set var z $TCL(regexp {Mgmt} $vn)

if ($z == 0) then

conf elrp-client one-shot $vn port all print

set var p $TCL(split ${cli.out} "\n")

set var p1 $TCL(lsearch $p *NO*)

if ($p1 == -1) then

set var p1 $TCL(lindex $p 2)

set var p2 $TCL(lindex $p1 9)

set var p1 $TCL(lrange $p1 0 6)

set var p1 $TCL(concat $p1 $p2)

set var p2 $TCL(lindex $p 3)

set var p2 $TCL(lrange $p2 5 7)

set var p $TCL(concat $p1 $p2)

show var p

else

set var p1 $TCL(lindex $p 2)

set var p2 $TCL(lindex $p1 10)

set var p1 $TCL(lrange $p1 0 7)

set var p1 $TCL(concat $p1 $p2)

show var p1

endif

endif

set var i ($i + 1)

endwhile

disable elrp-client

enable clipaging

set var sv "#ELRP POLL COMPLETED#"

show var sv



But am unsure as to how much of it i need. All I need to do is conf elrp-client periodic vlan ($variable) ports all interval 20

The above sript does way more, so i assume i can delete parts of it. Does anyone know which ones?

Also would i need to add excluded ports to the script even though it has already been defined.

17 REPLIES 17

Justsomebodi
New Contributor III
show Vlan

Default 1 ------------------------------------------------- ANY 0 /0 VR-Default
Extreme1 25 ------------------------------------------------- ANY 0 /0 VR-Default
BB-MGMT 30 10.100.30.199 /24 -f--------------------------- ANY 1 /1 VR-Default
Mgmt 4095 ------------------------------------------------- ANY 0 /1 VR-Mgmt
-----------------------------------------------------------------------------------------------

Show ELRP

Client VLAN Ports Interval Count Cyclic Xmit Rcvd Action Port (sec)
-------------------------------------------------------------------------------------
CLI Extreme1 All 3 0 Yes 0 0 LI 300
-------------------------------------------------------------------------------------

The script ends up removing all Vlan's. I am using this from Netsight as a admin script.

Matthew_Helm1
Extreme Employee
Just tested on 16.1.1.4 and no errors either.

Justsomebodi
New Contributor III
I see you aren't using 16.1.1.4. Is it possibly a issue with 16.1.1.4?

Matthew_Helm1
Extreme Employee
BTW, here is the ELRP configuration against which I tested the script:

# sho elrp
ELRP Standalone Client: Enabled

Number of ELRP sessions: 4
Number of ELRP pkts transmitted: 397
Number of ELRP pkts received: 0

Pkts Pkts Disable
Client VLAN Ports Interval Count Cyclic Xmit Rcvd Action Port (sec)
-------------------------------------------------------------------------------------
CLI Default 1-2,4 3 0 Yes 3 0 LTI Perm
CLI VLAN_0101 All 3 0 Yes 1 0 LE 20
CLI VLAN_0102 All 3 0 Yes 1 0 T -
CLI VLAN_0103 All 3 0 Yes 1 0 L -
-------------------------------------------------------------------------------------
Action : (P) Print, (L) Log, (T) Trap, (C) Callback, (E) Egress, (I) Ingress

No errors detected.

Running 16.1.3,6-patch1-2

Matthew_Helm1
Extreme Employee
Can you also send me the output of a "show vlan" command. Perhaps there is something in the vlan name triggering. Also a "show elrp". (It might be good to issue the "disable clip" command before doing these commands). I'll try to configure my switch to match yours as closely as possible and test it.
GTM-P2G8KFN