Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
System Administrationshowdate(1m)


NAME

 showdate - display the date and time for the system controller (SC) or a domain

SYNOPSIS

 showdate [-d domain_indicator] [-u ] [-v ]
 showdate -h

DESCRIPTION

 

showdate (1M) displays the SC's current date and time. Optionally, showdate displays domain time of day.

OPTIONS

 

The following options are supported:

-d domain_indicator
Specifies the domain using one of the following:

domain_id - ID for a domain. Valid domain_ids are A-R and are not case sensitive.

domain_tag - Name assigned to a domain using addtag(1M).

-h
Help. Displays usage descriptions. Note – Use alone. Any option specified in addition to -h is ignored.
-u
Interprets and displays the time using Greenwich Mean Time (GMT). The default is the local time zone.
-v
Verbose. Displays all available command information.

EXTENDED DESCRIPTION

 

Group Privileges Required

 

You must have platform administrator, platform operator, or platform service privileges to display the date on the SC. You must have domain administrator or domain configurator privileges for the specified domain to display the domain date.

Refer to Chapter 2, "SMS Security Options and Administrative Privileges" in the System Management Services (SMS) 1.4 Administrator Guide for more information.

EXAMPLES

 Example 1. Showing the Current Local Date in Pacific Standard Time
 
 
sc0:sms-user:> showdate 
System Controller: Sat Feb 2 15:23:21 PST 2002 
Example 2. Showing the Current Date Using GMT
 
 
sc0:sms-user:> showdate -u 
System Controller: Sat Feb 2 23:23:21 GMT 2002 
Example 3. Showing the Current Local Date on Domain A in Pacific Standard Time
 
 
sc0:sms-user:> showdate -d a 
Domain a: Sat Feb 2 15:33:20 PST 2002 
Example 4. Showing the Current Date on Domain A Using GMT
 
 
sc0:sms-user:> showdate -d a -u 
Domain a: Sat Feb 2 23:33:20 GMT 2002 

EXIT STATUS

 

The following exit values are returned:

0
Successful completion.
>0
An error occurred.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes.

Attribute TypesAttribute Values
AvailabilitySUNWSMSop

SEE ALSO

 

addtag(1m), setdate(1m)


SMS 1.4Go To TopLast Changed 19 September 2003