Directory Mappings Aix Freebsd Hp-Ux Solaris
Directory Mappings Aix Freebsd Hp-Ux Solaris
FreeBSD
SOLARIS {/dev/vx/dsk/rootvol}
/
{/dev/ad0s1a}
/usr
{/dev/ad0s1f}
/usr /var
/var
{/dev/ad0s1e}
/usr/newconfig AIX FreeBSD HP-UX /etc/passwd /tcb/files/auth/r/root /etc/group /etc/logingroup 2147483647 /etc/securetty {console} -2 -2(nogroup) >boot Interact with IPL ? Y ISL>hpux -iS Solaris /etc/passwd /etc/shadow /etc/group 2147483647 /etc/default/login {CONSOLE=/dev/console} 60001 & 65534(nobody4) 60002 & 65534(nogroup) boot cdrom -s mkdir /tmp/a mount /dev/c0t0d0s0
/etc/passwd
/etc/master.passwd /etc/group 65535
/etc/ttys
{secure} 65534 65534 ok boot -s passwd root
/ {
User nobody's id 4294967294 # Group nobody's id # Recover root password 4294967294 boot from CD/Tape Installation/Maintenance Start Limited Shell
p ( >
getrootfs hdisk0 vi /etc/security/passwd Create new user Delete user List users Modify user account General Commands Unique host ID Administrator Performance monitor System activity reporter Virtual Memory statistics I/O statistics Error logs Physical RAM Shared Memory Process Data Space Swap device Swap file type Display swap size Activate Swap hostid smit top monitor sar vmstat iostat alog -o -t boot errpt 1TB 2.75GB 2GB /dev/hd6 /etc/swapspaces lsps -a swapon -a top sa vmstat iostat dmesg mkuser rmuser lsuser -f ALL chuser -a AIX FreeBSD adduser rmuser
passwd root useradd userdel logins usermod HP-UX uname -i sam top glance sar vmstat iostat dmesg 4TB 8TB 4GB
/tmp/a vi /tmp/a/etc/shadow useradd userdel logins usermod Solaris hostid admintool top sar vmstat iostat dmesg 16TB
l / p
/dev/ad0s1b
swap swapinfo swapon -a
AIX /etc/qconfig stopsrc -s lpd startsrc -s lpd enq lp lpr qprt enq -A lpq lpstat qchk cancel lprm qcan enq -x smit mkpq smit rmpq export LPDEST="pq" AIX lsattr -E -l inet0 /etc/hosts /etc/netsvc.conf no -a lpd lp
HP-UX /etc/lp/interface/*
l l
LP statistics
lpq
lpstat
lpstat
Remove print jobs Add printer queue Remove Printer queue Make default printer TCP/IP Network IP configuration Hosts IP addresses Name service switch Network
cancel lprm
cancel
cancel lprm lpadmin -p pq lpadmin -x pq lpadmin -d pq Solaris /etc/hostname.* /etc/inet/* /etc/defaultrouter /etc/inet/hosts /etc/nsswitch.conf ndd /dev/[tcp|ip] ?
c l
lpadmin -p pq lpadmin -x pq lpadmin -d pq HP-UX /etc/rc.conf /etc/hosts /etc/host.conf sysctl /etc/rc.config.d/netconf /etc/hosts /etc/nsswitch.conf ndd -h
parameters Routing daemon NIC Configurations Secondary IP Address Login prompt gated ifconfig -a ifconfig en0 alias IP HERALD @ /etc/security/login.cfg odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt chdev -l pty0 -anum=256 -P reboot Maximum # of ptys Remote Shell YP/NIS service binder System Files NFS exported NFS Client mounted directories 512 remsh rsh /usr/lib/netsvc/yp/ypbind AIX /etc/exports /etc/xtab rsh /usr/sbin/ypbind FreeBSD /etc/exports /etc/exports /etc/xtab routed ifconfig -a ifconfig xl0 alias IP gated lanscan -v ifconfig lan0:1 IP telnetd -b /etc/issue rebuild your kernel with these new values NPTY=# NSTRPY=# reboot insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v in.routed ifconfig -a ifconfig hme0:1 IP up BANNER @ /etc/default/telnetd {/etc/system} set pt_cnt = # set npty = #
{SYSV} {BSD}
{/etc/iu.ap} ptsl 0 # ldterm ttcompat halt boot -r 176 3000 rsh {BSD} {SYSV}
c .
128 GB
128 GB
1 TB 8000 TB {vxfs} 1 TB 2 GB {=<2.5.1} 64 K SOLARIS /etc/vfstab df -k sysdef format -d c#t#d# format>current format>inquiry prtvtoc sub disk Volume Plex disk group vxfs /dev/vx/dsk/rootdg vxprint -l -g rootdg
1 5 1
128 GB 60~ K HP-UX:Disk &Filesystem /etc/fstab bdf /sbin/ioscan fdisk -v ad0 disklabel ad0 sub disk Volume Plex diskinfo /dev/rdsk/c#t#d# pvdisplay -v /dev/dsk/C#t#d# logical extents logical volume volume group vxfs /dev/vg00 vgdisplay -v vg00 pvchange pvcreate
1 5 1
Disk information bootinfo -s hdisk# Disk Label LVM Concepts lspv -l hdisk# Partition Volume Volume group Journal Filesystem type Default volume group Display volume group Modify physical volume jfs /dev/rootvg lsvg -l rootvg chpv
vxdiskadd
disk List physical volume lspv vinum ld pvdisplay vgreduce vinum move -f drive object vxprint -dl vxdg rmdisk
Remove disk from reducevg volume group Move logical volumes to migratepv another physical volumes Create volume group Remove volume group Volume group availability Restore volume group Exports volume group Imports volume group Volume group listing Change logical volume characteristics List logical volume Make logical volume Extend logical exportvg importvg lsvg chlv lslv mklv extendlv vinum lv chvg varyonvg varyoffvg mkvg
pvmove
vxassist move
vgcreate vgremove vgchange vgcfgrestore vgexport vgimport vgscan lvchange lvdisplay lvcreate lvextend
vxdg init
volume Reduce logical volume Remove logical volume Prepare boot volumes Remove boot volumes Extend File system Reduce/Split mirrors Merge mirrors Create mirrors Add mirrors Create striped volumes System recovery tape Backup Restore MISC Startup script Kernel Kernel Parameters /etc/rc /usr/lib/boot/unix_up lsattr -E -l sys0 mklv -c 2 mklvcopy lv 2 mklv -u 3 -S 64K mksysb -i /dev/rmt0 savevg -i rootvg restvg AIX FreeBSD vinum saveconfig vinum stripe drive vinum mirror drive chfs -a size=# /mt rmlvcopy AIX reduce LV rmlv bootlist -m normal vinum rm vol lvreduce lvremove lvlnboot lvrmboot extendfs /dev/vg00/lvol8 fsadm -F vxfs -b {LE * 1024} /mt lvsplit lvmerge lvcreate -m 1 lvextend -m 1 lvcreate -i 3 -I 64 /opt/ignite/bin/make_recovery fbackup frecover HP-UX /sbin/rc /stand/vmunix sysdef kmtune kmsystem ufsdump ufsrestore SOLARIS /etc/init.d /kernel/genunix sysdef -i vxassist make vol 100mb layout=raid5 vxassist mirror vxva mkfs -M vxassist shrinkto vxedit rm vxbootsetup
v v
v m
v l
/etc/rc
/kernel sysctl -a
s d
chdev -l sys0 -a
cd /stand/build /usr/lbin/sysadm/system_prep cd /sys/i386/conf -v -s system vi KERNEL vi system config KERNEL mk_kernel -s system cd cd /stand vi /etc/system ../../compile/KERNEL mv system system.prev reboot make depend mv vmunix vmunix.prev make mv dlkm dlkm.prev make install mv /stand/build/system system kmupdate /stand/build/vmunix_test kldstat kldload kldunload kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/syslog/syslog.log getconf KERNEL_BITS crash truss uname -m uname -r adb tusc model uname -m uname -r who -r /var/adm/crash ok boot -s >boot Interact with IPL ? Y ISL>hpux -iS modinfo modload modunload sys-unconfig prtconf isainfo -kv crash truss uname -imp uname -r who -r /var/crash/`uname -n` ok boot -s
List modules Load module Unload module Initialize system Physical RAM Kernel Bits Crash utility Trace System Calls Machine model OS Level Run Level Core dump files
genkex
install_assist bootinfo -r bootinfo -K crash syscalls uname -m bootinfo -m oslevel who -r /var/adm/ras
Boot single user Key on service mode/F4 Boot from CD/Tape Select Maintenance
>
Limited function Shell Maintenance mode Interrupt Key Return to console Timezone Management NTP Daemon Software Install Software installp -a Uninstall software List installed software installp -u lslpp -L all /etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd AIX pkg_add pkg_delete pkg_info -a swinstall swremove swlist swlist -l fileset -a state pkg_info -L package swlist -l file fileset swlist -l patch what /stand/vmunix swlist -l file | grep path /var/db/pkg AIX /dev cfgmgr -v /dev /dev/MAKEDEV FreeBSD /dev insf -e /var/adm/sw/ HP-UX /devices drvconfig devlinks disks /etc/localtime ok boot -as >boot Interact with IPL ? Y ISL>hpux -lm control-B co /etc/TIMEZONE ok boot -as Stop-A ok go /etc/TIMEZONE /etc/default/init /etc/inet/ntp.conf /etc/init.d/xntpd SOLARIS pkgadd pkgrm pkginfo pkginfo -i pkginfo -p pkgchk -l package patchadd -p pkgchk -l -p path /var/sadm SOLARIS
/ t
r /
Verify installed lppchk -v software List all files List installed patches Package owner SW Directory Devices Devices Install devices for attached peripherals lslpp -f fileset instfix -i lslpp -w path /usr/lpp
d p
s s
tapes ports Remove device Device drivers CPU List Terminal Diagnostics Whole Disk CDROM CDROM file type Rewinding tape drive Non-rewinding tape drive Floppy drive Links FAQ Online Manual Technical Support Phone Number Free Software AIX-FAQ AIX 5.3 Docs p5 TechSupport 1-800-CALL-AIX Public Domain Software Library rmdev -l lscfg lsdev -Cc processor lsdev -Cc tty diag /dev/hdisk# /dev/cd0 cdrfs /dev/rmt0 /dev/rmt0.1 /dev/rfd0 AIX pciconf -l /dev/ad0s1c /dev/acd0c cd9660 /dev/rwt0d /dev/nrwt0d /dev/fd0 FreeBSD sysctl hw.model rmsf lsdev ioscan -fnC processor ioscan -fnC tty stm /dev/dsk/c#t#d0 /dev/dsk/c#t2d0 cdfs /dev/rmt/0m /dev/rmt/0mn HP-UX HP-UX FAQ HP-UX Reference Manual IT Resource Center 1-800-633-3600 rem_drv prtconf -D psrinfo -v pmadm -l /usr/platform/`uname -m`/ sbin/prtdiag ok test-all /opt/SUNWvts/bin/sunvts /dev/c#t#d0s2 /dev/dsk/c#t6d0s2 hsfs /dev/rmt/0 /dev/rmt/0n /dev/diskette SOLARIS Solaris 2 FAQ Solaris 10 Documentation SunSolve 1-800-USA-4SUN Sun Freeware
HP-UX Ports
T F