Toolserver:Admin:Solaris
This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.
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
edit- Linux/Solaris command equivalents: http://bhami.com/rosetta.html
- ps
- use
ps -eaf
(System V syntax) instead ofps aux
(BSD syntax).
Installing/upgrading software
editFirst, create a package for the new software with pkgbuild. Then use Puppet to deploy it to all hosts.
Services (SMF)
editServices in Solaris are managed by SMF. See here for a quick introduction to SMF.
- List running services:
% svcs
- List information about a service:
% 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.
- Restart a service in the "maintenance" state:
% svcadm clear mysql-51
- Reload a service's configuration:
% svcadm restart ssh
Do not call the method scripts under /lib/svc/method directly. This will confuse SMF and cause things to break.