cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting question.....

Scripting question.....

Jimmy2
New Contributor
Almost done with a script that is modifying settings on sites for standardization. It touches about 3000+ devices, one if statement found online parses the script and XOS devices go one way, Extremeware another. Works great. Now I need to add some conditional statements that will look at the IP and determine if it ends in a certain octet....

So something like

If a device IP ends in X.X.X.6 do this

blah

else this

blah

end

Unable to find the resources online to accomplish this.....should be just one line. Any input?

ty

7 REPLIES 7

eyeV
New Contributor III
I reckon, you should use regexp TCL function. I'm not very good in TCL actually, but I recommend you to read Using CLI Scripting part in EXOS Concept Guide. There are some useful examples too.

Jimmy2
New Contributor
XOS scripting.

eyeV
New Contributor III
What language have you chosen? Do you use XOS CLI Scripting or something else?
GTM-P2G8KFN