Page 1 of 1

automatic bascul

Posted: 23 Mar 2006 09:06
by gundam
Anyone here have a script to automaticlly bacscul the 4400 every month?

Posted: 23 Mar 2006 21:46
by cavagnaro
maybe a cron

Posted: 23 Mar 2006 22:53
by vad
But for what reason? Automatic bascul will be automatic. Network links, DECT network will be restarted (out of services during some time).

Posted: 24 Mar 2006 13:08
by cavagnaro
Maybe he is trying to clean memory in order to prevent some failure

Re: automatic bascul

Posted: 25 Mar 2006 01:59
by alex
It is not a big problem to develop such a script.It will take just few lines.
Main point to observe - it should be the same on both CPUs.
It should check whether CPU is main, whether all applicatons compatible and whether AUTOSTART is enabled on both CPUs.
It should place "shutdown -r 0" into cron table.
Place it in rc.d directory, name it accordingly.

Posted: 26 Mar 2006 21:38
by frank
Add a script in /etc/cron.monthly

!#/bin/bash
/bin/echo y | /usr2/oneshot/mtcl/tool hotbascul

this will reboot the pbx everymonth without checking if the 2nd cpu if up and running.