Examples

When you type the setdate command from the platform, this sets the date and time for the platform. When you type the setdate command from the domain, this sets the date and time for the domain.

To set the date and time on the platform to Thursday, April 20, 2001, at 18 hours 15 minutes and 10 seconds, type:

CODE EXAMPLE 3-36setdate Command Example in the Platform Shell

schostname:SC> setdate 042018152001.10

Thu Apr 20 18:15:10 PST 2001

To set the date from a date host:

CODE EXAMPLE 3-37setdate -rCommand Example Setting the Date From a Date Host

schostname:SC> setdate -r datehost

Thu Apr 20 18:15:10 PST 2001

To set the time zone to Pacific Standard Time (PST), using the offset from Greenwich mean time—GMT, and the date and time on the platform to Thursday, April 20, 2001, at 18 hours 15 minutes and 10 seconds (TABLE 3-7), type:

CODE EXAMPLE 3-38setdate -tCommand Example Setting the Time Zone to Pacific Standard Time Using the Offset From Greenwich Mean Time

schostname:SC> setdate -t GMT-8 042018152001.10

Thu Apr 20 18:15:10 PST 2001

To set the time zone to Eastern Standard Time (EST), using the time zone abbreviations, and the date and time on the platform to Thursday, April 20, 2001, at

18 hours 15 minutes and 10 seconds (TABLE 3-7), type:

CODE EXAMPLE 3-39setdate -tCommand Example Setting the Date and Time Zone to Eastern Standard Time Using Time Zone Abbreviations

schostname:SC> setdate -t EST 042018152001.10

Thu Apr 20 18:15:10 EST 2001

Chapter 3 System Controller Alphabetical Command Reference 67

Page 83
Image 83
Sun Microsystems 6800/4810/4800/3800 manual SchostnameSC setdate -r datehost, SchostnameSC setdate -t GMT-8