Author Topic: Set clock from RTC shell?  (Read 2506 times)

Offline lundah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1161
  • Country: us
  • Karma: +62/-0
  • Senior Chief Grunt
    • View Profile
Set clock from RTC shell?
« on: September 19, 2013, 03:33:39 PM »
Anyone know the command syntax for setting the clock from the RTC shell? I'm 99% sure there's a way to do it. Part of a larger experiment I'm trying to work around a situation that caused an upgrade to fail on me.


Offline ralph

  • Mitel Forums Admin
  • Hero Member
  • *****
  • Posts: 5741
  • Country: us
  • Karma: +468/-0
  • Published Author: http://amzn.to/2dcYSY5
    • View Profile
Re: Set clock from RTC shell?
« Reply #1 on: September 19, 2013, 03:42:38 PM »
From the help files:
Quote
WRITEDATETIME
Qualifiers:

<year> <month> <day> <day-of-week> <hour> <minute> <second>
Purpose:

Changes the date and time on the system.

NOTE: If system date and time synchronization is enabled in the Date and Time form, the WriteDateTime is disabled. See Date and Time.
Details:

The <day-of-week> qualifier is a number between 1 and 7 where

1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday

If the new time is more than 30 minutes ahead of the current time, the ESM session will automatically log out (the new time is saved).

Use the readdatetime command to confirm the change.
Example:
Entry: WRITEDATETIME 2004 5 3 2 12 31 51

Offline lundah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1161
  • Country: us
  • Karma: +62/-0
  • Senior Chief Grunt
    • View Profile
Re: Set clock from RTC shell?
« Reply #2 on: September 19, 2013, 03:51:16 PM »
That's from ESM. I need to know if this can be done direct from the RTC shell (putty session to socket 2002 or serial connection to "maintenance" port). In my case, this is an attempt to work around an online upgrade with scheduled data preservation interrupted by the site losing power. After power restores, the 3300 doesn't boot up far enough that I can go in via ESM to set the clock, RTC shell is all I get.

Offline lundah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1161
  • Country: us
  • Karma: +62/-0
  • Senior Chief Grunt
    • View Profile
Re: Set clock from RTC shell?
« Reply #3 on: September 20, 2013, 08:56:05 AM »
Did a little research on this. As far as I can tell, VxWorks has no native command to set the system clock, any change to that has to come from a program. So, unless there's something buried in the base RTC bootstrap (which according to tech support is not documented or supported), looks like this is actually not possible.


 

Sitemap 1 2 3 4 5 6 7 8 9 10