Scripting question.....
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-19-2015 09:53 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-20-2015 05:16 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-20-2015 05:16 AM
XOS scripting.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-20-2015 04:01 AM
What language have you chosen? Do you use XOS CLI Scripting or something else?
