Automate NXSL Script [SOLVED]
-
Hi
i have written a tiny script for my switches - which changes the expected interface states to ignore, unless an alias/port description is set.
i would like to auto run it for all my switches every X hours - how can i realise that? i dont really get the scheduled tasks - where can i define which script to run ? and what to enter into the cron schedule?thanks guys
edit: thanks tomaskir, that was easier than i thought

-
Scheduled script is the functionality you are looking for.
- make sure your user has access to the scheduler features (in user manager)
- go to "Configuration > Scheduled Tasks"
- create a new scheduled task
- set type to "Execute.Script"
- you can leave execution object empty, your script can then iterate all objects and execute on whichever you need
- this is of course limited by security policy as explained on this wiki page
- how to iterate over all nodes example on this wiki page
- put the name of your script in the Script Library into the "Parameters" field
- set cron schedule
- this is in standard cron format, if you dont know it, just google for "cron generator", for example this one
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login