automatic bascul

Post Reply
gundam

automatic bascul

Post by gundam »

Anyone here have a script to automaticlly bacscul the 4400 every month?
cavagnaro

Post by cavagnaro »

maybe a cron
vad
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3852
Joined: 23 Sep 2004 06:47

Post by vad »

But for what reason? Automatic bascul will be automatic. Network links, DECT network will be restarted (out of services during some time).
cavagnaro

Post by cavagnaro »

Maybe he is trying to clean memory in order to prevent some failure
User avatar
alex
Senior Member
Posts: 1498
Joined: 06 Jul 2004 07:27
Contact:

Re: automatic bascul

Post 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.
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3386
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Post 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.
Code Free Or Die
Post Reply

Return to “GENERAL”