Page 1 of 1

Scripting cron jobs? [SOLVED]

Posted: 29 Jun 2016 08:56
by tech782
I'm new to Alcatel, but I'm familiar with a few different scripting languages and I'm really having a lot of trouble setting up a basic cron job on a 7950. I can set up SSH to run the command from another server on a cron job but I'd really prefer to do it on the router itself and not rely on whether the server and the path to the router is up.

From what I can tell, the scripting should be similar to the 7750, so I tried to emulate what I see here:

http://alcatelunleashed.com/viewtopic.p ... ron#p87730

But that looks like an exec script and from what I can tell, I don't seem to be able to set up exec scripts through cron, only python. Crucially, the script, location, and action options are gone. I am also looking under the ">config>system>cron" hierarchy as it appears that I have no access to the ">config>cron" hierarchy. This is running on a VM, so login permissions shouldn't be factoring into it.

I have no problem writing a python script but I don't see any way to execute CLI commands from python and I can't find an API anywhere. Does anyone have any experience with such scripting?

Re: Scripting cron jobs?

Posted: 29 Jun 2016 15:02
by tech782
I contacted Nokia and it looks like the scripting function was moved to system>script-control>script and system>script-control>script-policy for the most recent version of TiMOS. I'm marking this solved!

Re: Scripting cron jobs? [SOLVED]

Posted: 01 Jul 2016 10:37
by mivens
If you're not sure where a command lives, "tree flat detail" is your friend.