Hello.
First of all you must be logged in as "root" to reboot a machine from telnet or SSH access. (You may use "su" to change the log-in or you may use "sudo" to run a program as root.)
You should use the "reboot" command. It will automatically execute the "sync" and "init 6" commands.
"init" is a command which is typically executed by the system that runs the startup and shutdown scripts of the system.
"sync" will write all data in the cache memory to the hard disk.
This command may be useful in a completely different situation - if you write important data to the disk and you expect a system crash. Typing "sync" you ensure that the data is definitely written to the hard disk and not stored in the hard disk cache.
Martin
I would actually recommend using the "init 6" command instead of "reboot". While the "reboot" command is faster than "init 6", it does not run the kill scripts.
Also, "reboot" does not warn any other users who might be on the system that it is shutting down.
"Init" does, in fact, sync the filesystems, as well.
There are other ways to shutdown a Solaris system, but for simple rebooting, I would just use "init".
-M. McCabe