Scripting cron jobs? [SOLVED]

Post Reply
tech782

Scripting cron jobs? [SOLVED]

Post 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?
Last edited by tech782 on 29 Jun 2016 15:02, edited 1 time in total.
tech782

Re: Scripting cron jobs?

Post 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!
mivens
Member
Posts: 262
Joined: 28 Sep 2012 06:34

Re: Scripting cron jobs? [SOLVED]

Post by mivens »

If you're not sure where a command lives, "tree flat detail" is your friend.
Post Reply

Return to “7750 SR”