Enter your Email


BTOI | © copyight


Feb 8, 2009
Set the Date and Time on Solaris & Get the Host ID Number on Solaris

Set the Date and Time on Solaris

 

Setting the system date and time is fairly easy on solaris. Because you can easily set the time from the command line, you can set the time on a server remotely.

 

date mmddhhmmyy

 

The date command takes the syntax mmddhhmmyy, or "month day hour minute year". You have to be superuser to set the time.

 

Example:

 

# date 1201010106

Fri Dec  1 01:01:00 PST 2006

 

***************************************************************

 

Get the Host ID Number on Solaris

 

On Solaris, the hostid is similar to the hostname. To determine the hostid of a Solaris box, there are a couple of options to follow.

 

sysdef -h

 

The sysdef utility gives you system information, including hardware and system information.

 

Example:

 

# sysdef -h

*

* Hostid

*

 3adf6e7c

 

hostid

 

The hostid utility is a shortcut command to quickly get the hostid.

 

Example:

 

# hostid

*

* Hostid

*

 3adf6e7c

 

0 Comments:

Post a Comment

<< Home