cancel
Showing results for 
Search instead for 
Did you mean: 

command script tool netsight

command script tool netsight

andreas1
New Contributor II
I have a issue where I have to script towards none supported units in netsight ( older extremeware) In the command script tools is there any way of doing something similar like this ? if %DEVICEIP% == "192.168.1.1" // Andreas
8 REPLIES 8

andreas1
New Contributor II
Yeah I know that tool. However that is not a option since it wont run on a "extremeware" OS. But thanks anyways.

Frank_Thomas
Extreme Employee
If you're running Netsight 6.2-3
While not in Console, from Oneview there is a pretty powerful scripting engine that might be able to accomplish what you are looking for.
It supports if-else style statements

a43d3f389ea944e4b32d905f940a0a6a_RackMultipart20160315-107730-hb3qs1-tclexample_inline.png



Keyword wise, you could use IP, Device Type or software Rev.

a43d3f389ea944e4b32d905f940a0a6a_RackMultipart20160315-33543-1h6l9ll-tclexample2_inline.png


andreas1
New Contributor II
No sorry not sure if I mislead you Forget about extremeware. Can I in "Nesight command script tool" Do if and else statements ? Similar to this script I wrote in ridgeline IF ([string equal $eapsdomainname BLAJD]) THEN IF ([string equal $deviceIP X.X.X.X ]) THEN IF ([string equal $createvman yes]) THEN create vman $vmanname configure vman $vmanname tag $currentVmanTag disable igmp snooping $vmanname ENDIF config eaps uppsala_pri add protected $vmanname config vman $vmanname add ports X,X tagged regexp {.*Adding EAPS ring ports to a VLAN could cause a loop.*} ${CLI.OUT} foundit IF ([info exists foundit]) THEN yes ENDIF ENDIF

Tony_Thornton
Extreme Employee
Ok, I think I understand now. ExtremeWare does not support if/else statements. The only conditional statements that ExtremeWare supports are ACLs which seem to be more limited in their functionality than what you are looking for. EXOS based switches support scripting such as UPM and Python which would probably support what you are trying to do, but ExtremeWare does not support this.

Hope this helps.
GTM-P2G8KFN