Reset board everyday at 5 am

Did you say hacking ?
ortega
Member
Posts: 21
Joined: 19 Sep 2006 06:14

Reset board everyday at 5 am

Post by ortega »

Hi!

I want to make an automatic reset to a board everyday at 5 am.

I made the script resetbra

#! /bin/sh
tool rstcpl 0 15

This is working. Now I want to call this script everyday at 5 am so I need to put it in the crontab.

But I don't know how to put it in the crontab (which file?) because it's a Release 3.2.

Any help?

Thanks in advance.
krzysioD
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1165
Joined: 30 Aug 2006 13:43
Location: Europe, Poland

Re: Reset board everyday at 5 am

Post by krzysioD »

crontab -l
crontab -e
for start,

iirc it was a cronCfg ? Sorry, memoria fragilis...
Please note that at no time I will provide you with OXE/4400 nor AOS releases.
Note that it's our private time, that we spent to help you, so please don't expect complete solution for your problem.
You will need to do homework by your self.
User avatar
alex
Senior Member
Posts: 1457
Joined: 06 Jul 2004 07:27
Contact:

Re: Reset board everyday at 5 am

Post by alex »

It is UNIX question, not 4400 question.

Code: Select all

man cron
If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
ortega
Member
Posts: 21
Joined: 19 Sep 2006 06:14

Re: Reset board everyday at 5 am

Post by ortega »

man cron

man: not found

I'm in a release 3.2.

It's not only Unix. There's issues. I couldn't call the command rstcpl directly (it's not a Unix command).

It's working. Here's how I did it, for future reference:

in /usr2/mtcl i created the text file resetbra:

#!/bin/sh
date
/usr2/oneshot/mtcl/tool rstcpl 0 15

then I gave it permission to execute

chmod 777 resetbra

Then I entered in superusermode

Gave the command crontab and entered the line

0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt

ctrl+d to exit the edition of crontab

crontab -l shows the crontab file.

And everyday at 7 Am a reset is being made to the Bra card in the slot 0-15. The date and time of the reset is put in the log file logreset.txt.

Thanks for your answers and your help.
Gedeon
Member
Posts: 184
Joined: 17 Sep 2008 15:10

Re: Reset board everyday at 5 am

Post by Gedeon »

Then I entered in superusermode
Gave the command crontab and entered the line
0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt
Don't use root account for tool commands.
You can have problems after to acces files (ie database, account files, etc...).
Use only mtcl (or mtch) account for this.

G.
ortega
Member
Posts: 21
Joined: 19 Sep 2006 06:14

Re: Reset board everyday at 5 am

Post by ortega »

OK. Thanks for the advice.
hojzle
Member
Posts: 8
Joined: 21 Aug 2008 07:59

Re: Reset board everyday at 5 am

Post by hojzle »

Hello,

I would also like to reset PRA board automaticaly every day at 5am.

Can you please tell how to do it for release 8.0.1.

Best regards
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Reset board everyday at 5 am

Post by cavagnaro »

Should be the same, have you tried at least?
Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
hojzle
Member
Posts: 8
Joined: 21 Aug 2008 07:59

Re: Reset board everyday at 5 am

Post by hojzle »

No I didn't.

I'll try it and let you know the result.

Best regards
mmt1359
Member
Posts: 1
Joined: 18 Jan 2011 23:22

Re: Reset board everyday at 5 am

Post by mmt1359 »

very good
:)
Post Reply

Return to “System Hacking”