Solaris

From Leo's Notes
Last edited on 24 February 2021, at 02:01.

Solaris / SunOS related notes.

Tasks[edit | edit source]

Service Management[edit | edit source]

Use the svcadm utility to manage services.

# svcadm enable ssh
# svcs ssh
STATE          STIME    FMRI
online         18:46:19 svc:/network/ssh:default

Hardware Info[edit | edit source]

## Get the system ID
# hostid
846102aa

## Get the amount of memory installed
# /usr/sbin/prtconf | grep Memory
Memory size: 4096 Megabytes

## Get CPU information
# /usr/sbin/psrinfo -pv
The physical processor has 1 virtual processor (0)
  UltraSPARC-IIIi (portid 0 impl 0x16 ver 0x34 clock 1336 MHz)
The physical processor has 1 virtual processor (1)
  UltraSPARC-IIIi (portid 1 impl 0x16 ver 0x34 clock 1336 MHz)

Disks can be found using the format command.

## Get disk information
# /usr/sbin/format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@1,0

See Also[edit | edit source]