Home
Up

Unix Commands

crash echo kmastat | crash
echo "map kernelmap" | crash
  All kinds of stats from running system Solaris
dd dd bs=1024k if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 1GB disk on SS20 takes 11mins
Lower the blocksize to 5K and triple the time!!
Copy a Solaris disk Solaris
disk Get device path from /etc/path_to_inst
match it in /dev/osa/dev/dsk
How to translate sd3 into cXtYdZ Solaris
dump dump 0f - /dev/sd1a | ( cd /new_disk ; restore rf - ) remove /new_disk/restoresymtable after copy Copy a disk parition Solaris
echo echo * Alternative to ls in munix Solaris
eeprom eeprom nvramrc="devalias os .....<CR>
devalias osmirror ......."
set a devalias within solaris Solaris

 

ffbconfig ffbconfig -prconf Type Single Creator = 2D
Double-buffered = 3D
FFB1 = 1st series
FFB2 = 2nd series
Creator 2D or 3D Solaris
fmthard fmthard -s prtvtoc.out /dev/rdsk/c0t3d0s2 prtvoc on an exsiting disk will give a suitable prtvtoc.out.
However remove the last two columns
Put a vtoc on a disk Solaris

 

forth : hi ." hello" ;
hi
Forth word at ok prompt Solaris
fsdb fsdb /dev/dsk/c0t0d0s0
:ls -l (will show hex inode)
123fa:inode?i (will show permissions)
Remeber the colon before ls etc
infdoc 20339
How to look under mount points Solaris

 

installboot cd /backup_usr/kvm/mdec
installboot -vlt /backup_root/boot bootsd /dev/sd1a
Install a boot block on a backup root disk Solaris

 

luxadm luxadm probe luxadm probe may not work on PCI A5000 array Solaris
luxadm luxadm display Name:
luxadm enc_name,f0
Gives properties of disk in front, slot 0 of enclosure name Disk properties Solaris
mkfs mkfs -m /dev/rdsk/..... for bpi
newfs -N /dev/rdsk
What parameters used to make a filesystem Solaris
password /etc/default [login|passwd]
set PASSREQ=NO
No password required under Solaris Solaris
pkgadd cp /var/sadm/install/admin/default to /tmp/install
edit basedir in /tmp/install
pkgadd -a /tmp/install -d .
how to add a package into a directory other than the default Solaris
pkginfo grep filename /var/sadm/install/contentspkginfo -l to find the details what file is in what package Solaris
prom setenv input-device ttya
printenv input-device
how to set value from the OK prompt Solaris
prtdiag /usr/kvm/prtdiag system diags for SS1000 Solaris
psrinfo psrinfo -v what cpus installed and what speed Solaris

 

Remote console <CR><CR>~<Control-Shift-p>
Remote system power on/off
<CR><CR>~<Control-Shift-r>
Remote system reset
Needs console connected to ttya
Keyswitch must not be in secure
Remote console E3500+ Solaris

 

savecore edit /etc/rc2.d/S20syssetup
uncomment savecore
point to filesystem with > 300mb
To list use
/usr/kvm/prtdiag -v
Gives last hardware error for cpu/memory/buses Dump and system under solaris Solaris
snoop snoop -o /tmp/capture -c 1000 host snoop -i /tmp/capture -x 0 snoop -i /tmp/capture -V to see patterns What is in a packet Solaris
ssaadm /usr/sbin/ssaadm display /devices/...soc..:ctlr Get the device path from dmesg, prepend /devices and append :ctlr Get status of SPARC storage array Solaris

 

sysdef sysdef -i Kernel parameters on a running system Solaris

 

ufsdump ufsdump 0f - /dev/dsk/c0t0d0s3 I ufsrestore rf - Use a large blocksize Copy a filesystem Solaris

 

  © Andrew Marshallsay 2008