Admin:Solaris

Solaris is the operating system we use on most servers, except nightshade.

Sun's Solaris documentation is available here and covers most aspects of the system.

Cheat sheet

 * Linux/Solaris command equivalents: http://bhami.com/rosetta.html


 * ps : use ps -eaf (System V syntax) instead of ps aux (BSD syntax).

Installing/upgrading software
First, create a package for the new software with pkgbuild. Then use Puppet to deploy it to all hosts.

Services (SMF)
Services in Solaris are managed by SMF. See here for a quick introduction to SMF.

% svcs % svcs -vx mysql-51 svc:/application/ts/mysql-51:default (MySQL) State: online since Sat Mar 06 07:02:07 2010 See: /var/svc/log/application-ts-mysql-51:default.log Impact: None. % svcadm clear mysql-51 % svcadm restart ssh
 * List running services:
 * List information about a service:
 * Restart a service in the "maintenance" state:
 * Reload a service's configuration:

Do not call the method scripts under /lib/svc/method directly. This will confuse SMF and cause things to break.