Scheduled Tasks - Execute on Template Group
-
Hey
im trying to execute a simple script every 10 minutes on my Switches .. but i cant seem to apply it to a group.. it never works , but if i choose one specific switch, it works fine?
What am i doing wrong here? or any suggestion how this can be done?
i tried ExecuteGroup Templates.. specific template.. entere network... infrastructure services... nothing seems to work?i dont want to add scripts for all 200 switches ? and have to change all the time if i add a switch..?
thanks
-
You need to retrieve the nodes from the container/template when running a script over it.
Example:
children = GetObjectChildren($object); foreach (child : children) { // watch out, a child can be a node, or another container, or rack, etc. println(child->name); } -
-
It will need changes in server code - currently template objects are not exposed to NXSL.
Best regards,
Victor
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