Hi! I am using caps-man to manage my CAPs. My CAP interfaces are dynamic and I’d like to remove some of them at certain time (at night time).
Here is my script to REMOVE some of my CAPs.
And, here is the script to do the provisioning on remote CAPs to start up the CAP interfaces.
/caps-man remote-cap provision 0;
Both scripts are in scheduler. My problem is that the provisioning script will not run from the scheduler (with no error), but it runs on terminal.
What would be the cause of that? Or, what’s the correct way to schdule a remote cap provisioning? Thanks.
At the CLI, the numbers (e.g. “0” in your example) are transitory and tied the last “print” commands. In system schedule/script, that number won’t exist. They way you do this is using a “find” in the remove commands, that will search for matching records to remove.
So, something like this would remove the cAP with that name:
/caps-man interface remove [find name=RBwsAP5Hac2nD-1]
But you can “query” on any of the properties of the interface stuff like if it’s not running…
/caps-man interface remove [find !running]
Or even regular expressions, to find all the one with a -1, -2, -3, etc…so the remove is just one line if that’s what your trying to do…
/caps-man interface remove [find name~“^RBwsAP5Hac2nD-[0-9]+”]