|
Joined: Feb 2008
Posts: 124
Member
|
Member
Joined: Feb 2008
Posts: 124 |
The clock on our FXII runs fast (it gains about a minute a week). Of course I can fix it through VMMI or from a desk set, but this is a pain. Is it possible to set the clock over the console port? I didn't see that option looking through the menus.
My goal is to automate setting the clock.
Is there a way to set the beginning and end days of DST?
Looking through VMMI's help file it looks like even if I had an IP card I couldn't use NTP. Is this correct?
Thanks!
-Jason
Jason Perkins Network Engineer
|
|
|
Visit Atcom to get started with your new business VoIP phone system ASAP
Turn up is quick, painless, and can often be done same day.
Let us show you how to do VoIP right, resulting in crystal clear call quality and easy-to-use features that make everyone happy!
Proudly serving Canada from coast to coast.
|
|
|
Joined: Aug 2004
Posts: 9,172 Likes: 22
Admin
|
Admin
Joined: Aug 2004
Posts: 9,172 Likes: 22 |
You can set the clock from any phone or through VMMI.
DST dates are available if you have the latest version of 17 software.
IP card will not help with NTP.
Years ago we built a script that we loaded on the voice mail or call accounting work station. You would plug a single line extension into the modem and the PC would poll the Navy atomic clock. The modem would then initiate a time set on the system. The batch ran daily and worked well.
|
|
|
|
Joined: Feb 2008
Posts: 124
Member
|
Member
Joined: Feb 2008
Posts: 124 |
That sounds like exactly what I want. Have a copy of that script still?
One thing I've noticed is that the large display phones don't seem to be able to enter system programming. Is there a different procedure with the large display phones verses the small display phones?
-J
Jason Perkins Network Engineer
|
|
|
|
Joined: May 2005
Posts: 951
Member
|
Member
Joined: May 2005
Posts: 951 |
There was a company selling that script programming. I bet if you google time change on Comdial fxII it would come up. Thing single site license was like $99.00
Jim
Jim Hoey SST Communications 597 West Montauk Highway Lindenhurst, New York 11757 631 956-0100 www.sstcom.com Business telephone systems on Long Island and New York City like Comdial, Vertical, Avaya, Panasonic
|
|
|
|
Joined: Feb 2008
Posts: 124
Member
|
Member
Joined: Feb 2008
Posts: 124 |
Programming the system with a modem was a good suggestion. After a bit of debugging I have a powershell script that works perfectly!
#Comdial FX Date setter
#sets the PBX to the date and time of the local system
#uses a modem hooked up to the serial port
#
#Jason Perkins 11/2/13
#set the COM port number here
$portno = 1
$month = Get-Date -format MM
$day = Get-Date -format dd
$year = Get-Date -format yy
$hour = Get-Date -format HH
$minute = Get-date -format mm
$time_string = echo $month$day$year$hour$minute
Write-Host $time_string
$command_string = echo ATDT*#0*01$time_string#`,`;H `r
Write-Host $command_string
$port= new-Object System.IO.Ports.SerialPort COM$portno,9600,None,8,one
$port.open()
$port.WriteLine("$command_string")
$port.Close()
Start-Sleep -s 10
Write-Host Done! Notes: On my modem I had to suppress result codes and override DTR sensing. This runs from my Domain Controller, which set's its clock to NIST time every 8 hours. I added this as a scheduled task to run every day at 1 AM. Thanks, -J
Last edited by compu_85; 11/02/13 03:14 PM.
Jason Perkins Network Engineer
|
|
|
|
Joined: Feb 2008
Posts: 124
Member
|
Member
Joined: Feb 2008
Posts: 124 |
Minor revision. Now it dials the modem at the top of the minute.
#Comdial FX Date setter
#sets the PBX to the date and time of the local system
#uses a modem hooked up to the serial port
#
#Jason Perkins 11/3/13
#set the COM port number here
$portno = 1
Write-Host Setting the variables...
$month = Get-Date -format MM
$day = Get-Date -format dd
$year = Get-Date -format yy
$hour = Get-Date -format HH
[int]$minute = Get-date -format mm
$minute++
Write-Host Waiting for minute $minute ... `n
sleep -Seconds (New-TimeSpan -End "$hour : $minute").TotalSeconds
Write-Host Setting the clock... `n
$time_string = echo $month$day$year$hour$minute
$command_string = echo ATDT*#0*01$time_string#`,`;H `r
Write-Host $time_string
Write-Host $command_string
$port= new-Object System.IO.Ports.SerialPort COM$portno,9600,None,8,one
$port.open()
$port.WriteLine("$command_string")
$result = $port.ReadLine()
$port.Close()
Start-Sleep -s 8
Write-Host $result
Write-Host Done!
Start-Sleep -s 1
-J
|
|
|
|
Joined: Feb 2008
Posts: 124
Member
|
Member
Joined: Feb 2008
Posts: 124 |
Another revision to this script. I found that if you issue the time change command with a date / time that matches the current date / time it throws the clock off by about 20 seconds. This revision of the script sets the clock back 2 minutes, waits one minute, then sets the correct time. It also takes into account the 4 seconds it takes the modem to dial out the number. These changes make the PBX clock match the PC clock almost exactly. Schedule the script so it doesn't run at the top of the hour (it's easier to do math that doesn't have to wrap around to the prior hour  ). I have mine set to run at 3:05 AM.
#Comdial FX Date setter
#sets the PBX to the date and time of the local system
#uses a modem hooked up to the serial port
#
#Jason Perkins 9/22/14
#set the COM port number here
$portno = 2
Write-Host Setting the MinuteBefore variables...
$month = Get-Date -format MM
$day = Get-Date -format dd
$year = Get-Date -format yy
$hour = Get-Date -format HH
[int]$minute = Get-date -format mm
$MinuteBefore = $minute - 2
$TimeStringB = $month + $day + $year + $hour + $MinuteBefore
$CommandStringB = "ATDT*#0*01" + $TimeStringB + "#`,,,,`;H `r"
Write-Host `Setting clock back two minutes...
Write-Host "Early time = " + $TimeStringB
Write-Host "Early Command = " + $CommandStringB
$port= new-Object System.IO.Ports.SerialPort COM$portno,9600,None,8,one
$port.open()
$port.WriteLine("$CommandStringB")
$resultB = $port.ReadLine()
$port.Close()
Start-Sleep -s 8
Write-Host $resultB
Write-Host Waiting 60 seconds...
Start-Sleep -s 60
Write-Host `nSetting the Correct variables...
$month = Get-Date -format MM
$day = Get-Date -format dd
$year = Get-Date -format yy
$hour = Get-Date -format HH
[int]$minute = Get-date -format mm
$minuteNext = $minute + 1
$SleepTime = (New-TimeSpan -End "$hour : $minuteNext").TotalSeconds
$SleepTime = $SleepTime - 4
Write-Host Waiting for minute $minuteNext ... `n
sleep -Seconds $SleepTime
Write-Host Setting the clock to the correct time... `n
$TimeString = $month + $day + $year + $hour + $minuteNext
$CommandString = "ATDT*#0*01" + $TimeString + "#`,,,,`;H `r"
Write-Host "Correct time = " $TimeString
Write-Host "Correct Command = " $CommandString
$port.open()
$port.WriteLine("$CommandString")
$result = $port.ReadLine()
$port.Close()
Start-Sleep -s 8
Write-Host $result
Write-Host Done!
Start-Sleep -s 1
I'm using an old Supra 28.8 modem to do this. If you have any questions about getting this running just let me know! Thanks, -Jason
Last edited by compu_85; 09/22/14 11:37 AM.
Jason Perkins Network Engineer
|
|
|
Forums84
Topics94,535
Posts640,049
Members49,854
|
Most Online5,661 May 23rd, 2018
|
|
1 members (dexman),
409
guests, and
37
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|