Skip to content

unix_solaris10

Andrea Paolini edited this page Jan 2, 2021 · 1 revision

Solaris 10

Package Management

List the installed packages: pkginfo

Install a new package from /var/spool/pkg : pkgadd

Install a new package from a random dir: cd randomdir; pkgadd -d package-file-name

You can download free software packages from SunFreeware

Patch Management - Old machines

Oldish Solaris machines only support patchadd(?).

See the list of installed patches: patchadd -p

Apply patches:

Patch Management - newest machines

Note that the server must be registered at Sun. It could bee needed to import the keys for the signed packages:

# keytool -export -storepass changeit -alias gtecybertrustca -keystore gtecybertrustca \
 -keystore /usr/j2se/jre/lib/security/cacerts -file /tmp/root.crt
# pkgadm addcert -t -f der /tmp/root.crt

Graphical installation

  1. ''/usr/bin/updatemaneger''
  2. Click buttons (droolling a little bit, possibly :-P )
  3. PROFIT!

Command line installation

If needed you must setup the proxy server with:

smpatch set patchpro.proxy.host=proxy.nch.it
smpatch set patchpro.proxy.port=8080

Then you can use those commands:

  • ''smpatch analyze'' → show the recommended patches

  • ''smpatch update'' → download&install the named patches

  • ''smpatch download'' → download patch (without installing)

  • ''smpatch add'' → installs an already downloaded patch

Service management

List all the defined services: svccfg list

Show a service description definition svccfg export <service>

Manage a service (use -t for a non permanent change effect): svcadm enable <service> svcadm disable <service> svcadm restart <service> svcadm refresh <service>

For example, to disable X11, do:

svcadm disable /application/graphical-login/cde-login

See the status of the services: svcs

Find the logs in: /var/svc/log/service:instance.log

Processes, memory, CPU

top

prstat
prstat -s size -a

Installed / Free memory

/usr/sbin/prtconf | grep Memory
vmstat -p

CPUs

prtdiag | head -20

Partition (and see) disks

format

Change default shell

Without LDAP/NIS only root can do that.

passwd -e `<username>`

Find version

uname -a
cat /etc/release

Shutdown

Reboot

shutdown -y -g 0 -i 6

Halt

shutdown -y -g 0 -i 5

TCP keepalive timer

/usr/sbin/ndd -set /dev/tcp tcp_keep_alive_interval <milliseconds>

The default is 7200000, two hours

Logs

in ''/var/log/'', ''/var/adm/'' and via dmesg(1M)

NFS quirks

Define the filesystems you want to export with ''share(1)'', either directly or via the ''/etc/dfs/dfstab'' file (that replaces/''etc/exports''):

share -F nfs -o ro=sun.ucs.indiana.edu,rw=teak.uwsg.indiana.edu /reports

If you don't share anything, the NFS server does not start!

Clone this wiki locally