Reset board everyday at 5 am
Reset board everyday at 5 am
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.
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.
-
- Alcatel Unleashed Certified Guru
- Posts: 1165
- Joined: 30 Aug 2006 13:43
- Location: Europe, Poland
Re: Reset board everyday at 5 am
crontab -l
crontab -e
for start,
iirc it was a cronCfg ? Sorry, memoria fragilis...
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.
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.
Re: Reset board everyday at 5 am
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.
Re: Reset board everyday at 5 am
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.
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.
Re: Reset board everyday at 5 am
Don't use root account for tool commands.Then I entered in superusermode
Gave the command crontab and entered the line
0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt
You can have problems after to acces files (ie database, account files, etc...).
Use only mtcl (or mtch) account for this.
G.
Re: Reset board everyday at 5 am
OK. Thanks for the advice.
Re: Reset board everyday at 5 am
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
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
- cavagnaro
- Alcatel Unleashed Certified Guru
- Posts: 7014
- Joined: 14 Sep 2005 19:45
- Location: Brasil, Porto Alegre
- Contact:
Re: Reset board everyday at 5 am
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
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
Re: Reset board everyday at 5 am
No I didn't.
I'll try it and let you know the result.
Best regards
I'll try it and let you know the result.
Best regards