Feb 11

Misc. Random. Solaris Unix Commands

Solaris Unix

To view the names of the cluster configurations, perform the command:

grep METACLUSTER /var/sadm/system/admin/.clustertoc

METACLUSTER=SUNWCXall

METACLUSTER=SUNWCall

METACLUSTER=SUNWCprog

METACLUSTER=SUNWCuser

METACLUSTER=SUNWCreq

METACLUSTER=SUNWCrnet

METACLUSTER=SUNWCmreq

 

Which cluster configuration has been installed on the system

cat /var/sadm/system/admin/CLUSTER
CLUSTER=SUNWCXall

 

Misc Run Level  install time commands

init 0

 

ok boot cdrom -nowin

 

See install Log

cat /var/sadm/install_data/install_log

 

modinfo - display information about loaded kernel modules

modinfo -w | grep -w dad

modinfo -c | grep -w dad

 

List a system’s devices, including:

● Using the /etc/path_to_inst file

● Using the prtconf command

● Using the format command

 

prtconf | grep -v not

prtconf | grep memory

 

To view the logical and physical devices for currently available disks, perform the command:
format

//to scan and reconfigure devices

touch /reconfigure

init 5 (powers off)

 

//instead of using reconfigure, you can use devfsadm to scan and configure all devices. it does not require a restart of the system. Many servers might need to be alive 24/7

devfsadm

 

prtvtoc /dev/rdsk/c1t3d0s2

fmthard -s /vtoc/c1t3d0 /dev/rdsk/c1t3d0s2

 

Solaris Management Console

/etc/init.d/init.wbem status

fstyp -v /dev/dsk/c0t0d0s1 |head

tunefs -m 1 /dev/rdsk/c0t0d0s0

fsck /dev/rdsk/c0t0d0s7

fsck /export/home

fsck -o f,p /dev/rdsk/c0t0d0s7

df -k

df -h

df -k /dev/dsk/c0t1d0s6

 

du -k

du -sk /opt

quot -af

quot -f /dev/dsk/c0t0d0s7

more /etc/vfstab

more /etc/mnttab

mountall -l

mountall

fstyp /dev/rdsk/c0t0d0s7

 

 

fuser -cu /

fuser -ck /  kill processes

fuser -c /    verify

 

 

/etc/init.d/volmgt start

more /var/sadm/install/contents

 

 

to verify that the showrev command is installed on the system disk, perform the command

pkgchk -l -P showrev

 

Use the pkgtrans command to translate a package from file system format to data stream format, or from data stream format to file system format. The command syntax for the pkgtrans command is:
pkgtrans file_or_dir_path file_or_dir_path [ package_name ...]

pkginfo | more

showrev -p

patchadd -p

 

smpatch get -L patchpro.patch.source patchpro.download.directory

eeprom

eeprom boot-device

 

 

Services

svcs

svcadm -v disable system/cron:default

 

boot -m milestone=single-user

 

current user run level

who -r

Misc

finger -m user5

inetadm | grep finger

last -5 reboot

Processes:

prstat

/usr/dt/bin/sdtprocess &

Printer Related

lpadmin -x printername1

Skip to toolbar