General Commands
|
AIX
|
FreeBSD
|
HP-UX
|
LINUX(RedHat)
|
Solaris
|
Tru64
|
Unique host ID
|
hostid
|
|
uname -i
|
hostid
|
hostid
|
hostid
|
Administrator
|
smit
|
|
sam
|
linuxconf
|
admintool
|
sysman
|
Performance monitor
|
top monitor |
top
|
top glance |
top
|
top
|
top
|
System activity reporter
|
sar
|
sa
|
sar
|
sar {sysstat}
|
sar
|
/usr/opt/svr4/bin/sar
|
Virtual Memory statistics
|
vmstat
|
vmstat
|
vmstat
|
vmstat
|
vmstat
|
vmstat
|
I/O statistics
|
iostat
|
iostat
|
iostat
|
iostat {sysstat}
|
iostat
|
iostat
|
Error logs
|
alog -o -t boot errpt |
dmesg
|
dmesg
|
dmesg
|
dmesg
|
uerf -R -o full
|
Physical RAM
|
1TB
|
|
4TB
|
64 GB {>2.3.24}
|
16TB
|
4TB
|
Shared Memory
|
2.75GB
|
|
8TB
|
sysctl kernel.shmmax
|
|
|
Process Data Space
|
2GB
|
|
4GB
|
900 MB
|
|
|
Swap device
|
/dev/hd6
|
/dev/ad0s1b
|
/dev/vg00/lvol2
|
/dev/sda2
|
/dev/vx/dsk/swapvol
|
/dev/rz0b
|
Swap file type
|
/etc/swapspaces
|
swap
|
swap
|
partition type 82
|
swap
|
raw
|
Display swap size
|
lsps -a
|
swapinfo
|
swapinfo -a
|
free
|
swap -l
|
swapon -s
|
Activate Swap
|
swapon -a
|
swapon -a
|
swapon -a
|
swapon -a
|
swap -a
|
swapon -a
|
TCP/IP
|
AIX
|
|
HP-UX
|
LINUX(RedHat)
|
Solaris
|
Tru64
|
Network IP configuration
|
lsattr -E -l inet0
|
/etc/rc.conf
|
/etc/rc.config.d/netconf
|
/etc/sysconfig/network-scripts/
|
/etc/hostname.* /etc/inet/* /etc/defaultrouter |
/etc/rc.config
|
Hosts IP addresses
|
/etc/hosts
|
/etc/hosts
|
/etc/hosts
|
/etc/hosts
|
/etc/inet/hosts
|
/etc/hosts
|
Name service switch
|
/etc/netsvc.conf
|
/etc/host.conf
|
/etc/nsswitch.conf
|
/etc/nsswitch.conf
|
/etc/nsswitch.conf
|
/etc/svc.conf
|
Network parameters
|
no -a
|
sysctl
|
ndd -h
|
sysctl -a | grep net
|
ndd /dev/[tcp|ip] ?
|
|
Routing daemon
|
gated
|
routed
|
gated
|
routed
|
in.routed
|
routed
|
NIC Configurations
|
ifconfig -a
|
ifconfig -a
|
lanscan -v
|
ifconfig -a
|
ifconfig -a
|
ifconfig -a
|
Secondary IP Address
|
ifconfig en0 alias IP
|
ifconfig xl0 alias IP
|
ifconfig lan0:1 IP
|
modprobe ip_alias ifconfig eth0:1 IP |
ifconfig hme0:1 IP up
|
ifconfig ln0 alias
|
Login prompt
|
HERALD @ /etc/security/login.cfg |
|
telnetd -b /etc/issue
|
/etc/issue
|
BANNER @ /etc/default/telnetd |
/etc/issue
|
Increase the # of pseudo-terminals
|
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 |
|
rebuild your kernel with these new values NPTY=#
NSTRPY=#
reboot
insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v |
cd /dev ./MAKEDEV -v pty |
{/etc/system}
set pt_cnt = # {SYSV} set npty = # {BSD}
{/etc/iu.ap}
ptsl 0 # ldterm ttcompat
halt boot -r |
cd /dev ./MAKEDEV PTY_1 |
Maximum # of ptys
|
512
|
|
{MAXUSERS}
|
256
|
176 {BSD} 3000 {SYSV} |
8192
|
Remote Shell
|
remsh rsh |
rsh
|
remsh
|
rsh
|
rsh
|
rsh
|
YP/NIS service binder
|
/usr/lib/netsvc/yp/ypbind
|
/usr/sbin/ypbind
|
/usr/lib/netsvc/yp/ypbind
|
/sbin/ypbind
|
/usr/lib/netsvc/yp/ypbind
|
/usr/sbin/ypbind
|
System Files
|
AIX
|
FreeBSD
|
HP-UX
|
LINUX(RedHat)
|
Solaris
|
Tru64
|
NFS exported
|
/etc/exports
|
/etc/exports
|
/etc/exports
|
/etc/exports
|
/etc/dfs/dfstab /etc/dfs/sharetab |
/etc/exports
|
NFS Client mounted directories
|
/etc/xtab
|
|
/etc/xtab
|
/var/lib/nfs/xtab
|
/etc/rmtab
|
/var/adm/mountdtab
|
Max File System
|
128 GB
|
|
128 GB
|
2 TB
|
1 TB 8000 TB {vxfs} |
128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs} |
Max File Size
|
64 GB
|
|
128 GB
|
2 GB {512B block size} 8192 GB {8KB block size} |
1 TB 2 GB {=<2.5.1} |
128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs} |
Max # File Descriptors
|
64 K
|
|
60~ K
|
sysctl fs.file-max
|
64 K
|
64 K
|
DISK/LVM Commands
|
AIX
|
FreeBSD
|
HP-UX:Disk &Filesystem
|
LINUX(RedHat)
|
SOLARIS
|
Tru64
|
Filesystem table
|
/etc/filesystems
|
/etc/fstab
|
/etc/fstab
|
/etc/fstab
|
/etc/vfstab
|
/etc/fstab
|
Free disk blocks
|
df -k
|
df -k
|
bdf
|
df -k
|
df -k
|
df -k
|
Device listing
|
lsdev -C
|
|
/sbin/ioscan
|
cat /proc/devices
|
sysdef
|
|
Disk information
|
bootinfo -s hdisk#
|
fdisk -v ad0
|
diskinfo /dev/rdsk/c#t#d#
|
cat /proc/scsi/scsi0/sda/model
|
format -d c#t#d# format>current format>inquiry |
file /dev/rrz0c
|
Disk Label
|
lspv -l hdisk#
|
disklabel ad0
|
pvdisplay -v /dev/dsk/C#t#d#
|
fdisk -l
|
prtvtoc
|
disklabel -p rz0
|
LVM Concepts
|
Partition
|
sub disk
|
logical extents
|
logical extents
|
sub disk
|
sub disk
|
|
Volume
|
Volume
|
logical volume
|
logical volume
|
Volume
|
Volume
|
|
|
Plex
|
|
|
Plex
|
Plex
|
|
Volume group
|
|
volume group
|
volume group
|
disk group
|
disk group
|
Journal Filesystem type
|
jfs
|
|
vxfs
|
ext3 reiserfs |
vxfs
|
advfs
|
Default volume group
|
/dev/rootvg
|
|
/dev/vg00
|
|
/dev/vx/dsk/rootdg
|
/dev/vol/rootdg
|
Display volume group
|
lsvg -l rootvg
|
|
vgdisplay -v vg00
|
vgdisplay -v
|
vxprint -l -g rootdg
|
volprint -l -g rootdg
|
Modify physical volume
|
chpv
|
|
pvchange
|
pvchange
|
|
|
Prepare physical disk
|
mkdev -c disk -l hdisk#
|
|
pvcreate
|
pvcreate
|
vxdiskadd
|
voldiskadd
|
List physical volume
|
lspv
|
vinum ld
|
pvdisplay
|
pvdisplay
|
vxprint -dl
|
volprint -dl
|
|