Documente Academic
Documente Profesional
Documente Cultură
Hermelito Go Wednesday, 07-Dec-2005 11:11:32 PST ) Directory AIX FreeBSD Mappings Root filesystem / Home Directory /home /tmp /usr /var Sample configuration files User Accounts Password files Groups file Maximum # of user ID Allow/Deny remote login AIX /etc/passwd /etc/security/passwd /etc/group /etc/security/group 4294967295 /etc/security/user {rlogin=true} FreeBSD {/dev/hd4} {/dev/hd1} {/dev/hd3} {/dev/hd2} {/dev/hd9var}
/
{/dev/ad0s1a}
{/dev/vg00/lvol1
{/dev/vg00/lvol4
{/dev/vg00/lvol6
/usr
{/dev/ad0s1f}
/usr /var
{/dev/vg00/lvol7
/var
{/dev/ad0s1e}
{/dev/vg00/lvol8
/usr/newconfig HP-UX /etc/passwd /tcb/files/auth/r/root /etc/group /etc/logingroup 2147483647 /etc/securetty {console} -2 -2(nogroup)
/etc/passwd
/etc/master.passwd /etc/group 65535
/etc/ttys
{secure} 65534 65534
boot from CD/Tape Installation/Maintenance Start Limited Shell getrootfs hdisk0 vi /etc/security/passwd
Create new user mkuser Delete user rmuser List users Modify user account lsuser -f ALL chuser -a
adduser rmuser
General Commands Unique host ID Administrator Performance monitor hostid smit top monitor
AIX
FreeBSD uname -i sam top sa vmstat iostat dmesg top glance sar vmstat iostat dmesg 4TB 8TB 4GB
HP-UX
System activity sar reporter Virtual Memory vmstat statistics I/O statistics iostat Error logs Physical RAM Shared Memory Process Data Space Swap device Swap file type Display swap size Activate Swap Printers Printer Queues Stop LP Start LP Submit print jobs alog -o -t boot errpt 1TB 2.75GB 2GB /dev/hd6 /etc/swapspaces lsps -a 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
/dev/ad0s1b
swap swapinfo swapon -a FreeBSD /var/spool/print lpd
lp
lp
LP statistics
lpq
lpstat
Remove print jobs Add printer queue Remove Printer queue Make default printer TCP/IP Network IP
cancel lprm
cancel
configuration Hosts IP addresses Name service switch Network parameters Routing daemon NIC Configurations Secondary IP Address Login prompt /etc/hosts /etc/netsvc.conf no -a 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 rsh /etc/hosts /etc/host.conf sysctl routed ifconfig -a ifconfig xl0 alias IP /etc/hosts /etc/nsswitch.conf ndd -h 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
128 GB
64 GB 64 K AIX FreeBSD
/etc/fstab df -k
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 Prepare physical disk List physical volume Remove disk from volume group Move logical volumes to 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 jfs /dev/rootvg lsvg -l rootvg chpv mkdev -c disk -l hdisk# lspv reducevg
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
vinum ld
pvdisplay vgreduce
migratepv
mkvg
vgchange vgcfgrestore
volume Make logical volume Extend logical 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
mklv -c 2 mklvcopy lv 2
lvcreate -m 1 lvextend -m 1
Create striped mklv -u 3 -S 64K volumes System recovery mksysb -i /dev/rmt0 tape Backup savevg -i rootvg Restore MISC Startup script Kernel Kernel Parameters /etc/rc /usr/lib/boot/unix_up lsattr -E -l sys0 restvg AIX
lvcreate -i 3 -I 64
/opt/ignite/bin/make_recove vinum saveconfig FreeBSD fbackup frecover HP-UX /sbin/rc /stand/vmunix sysdef kmtune kmsystem
/etc/rc
/kernel sysctl -a
cd /stand/build /usr/lbin/sysadm/system_pre -v -s system cd /sys/i386/conf vi system vi KERNEL mk_kernel -s system config KERNEL cd cd /stand ../../compile/KERNEL mv system system.prev make depend mv vmunix vmunix.prev make mv dlkm dlkm.prev make install mv /stand/build/system syst kmupdate /stand/build/vmunix_test
List modules Load module Unload module Initialize system Physical RAM Kernel Bits Crash utility Trace System Calls Machine model OS Level Run Level
genkex
kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/syslog/syslog.log getconf KERNEL_BITS adb tusc model uname -m uname -r who -r /var/adm/crash
Key on service mode/F4 Boot single user Boot from CD/Tape Select Maintenance Limited function Shell
ok boot -s
Maintenance mode Interrupt Key Return to console Timezone Management NTP Daemon Software
ok boot -as
/etc/localtime
/etc/TIMEZONE
/etc/rc.conf /etc/rc.config.d/netdaemons {xntpd_enable="YES"} /sbin/init.d/xntpd /etc/rc.network HP-UX pkg_add pkg_delete pkg_info -a swinstall swremove swlist
Install Software installp -a Uninstall installp -u software List installed lslpp -L all software
Verify installed lppchk -v software List all files List installed patches Package owner SW Directory Devices Devices lslpp -f fileset instfix -i lslpp -w path /usr/lpp AIX /dev /var/db/pkg FreeBSD /dev
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/adm/sw/ HP-UX /dev
Install devices for attached cfgmgr -v peripherals Remove device Device drivers CPU List Terminal rmdev -l lscfg lsdev -Cc processor lsdev -Cc tty
/dev/MAKEDEV
insf -e
rmsf lsdev sysctl hw.model ioscan -fnC processor ioscan -fnC tty
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 Certification
diag /dev/hdisk# /dev/cd0 cdrfs /dev/rmt0 /dev/rmt0.1 /dev/rfd0 AIX AIX-FAQ AIX 5.3 Docs p5 TechSupport 1-800-CALLAIX Public Domain Software Library www.ibm.com
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-6333600