maniu@securebrain.com:~# vi hp-ux
Directory Mappings Root filesystem / {/dev/vg00/lvol1} Home Directory /home {/dev/vg00/lvol4} tmp Directory /tmp {/dev/vg00/lvol6} usr Directory /usr {/dev/vg00/lvol7} var Directory /var {/dev/vg00/lvol8} Sample configuration files /usr/newconfig User Accounts Password files /etc/passwd /tcb/files/auth/r/root Groups file /etc/group /etc/logingroup Maximum # of user ID 2147483647 Allow/Deny remote login /etc/securetty {console} User nobody's id # -2 Group nobody's id # -2(nogroup) Recover root password >boot Interact with IPL ? Y ISL>hpux -iS passwd root Create new user useradd Delete user userdel List users logins Modify user account usermod General Commands Unique host ID uname -i Administrator sam Performance monitor top glance System activity reporter sar Virtual Memory statistics vmstat I/O statistics iostat Error logs dmesg Physical RAM 4TB Shared Memory 8TB Process Data Space 4GB Swap device /dev/vg00/lvol2 Swap file type swap Display swap size swapinfo -a Activate Swap swapon -a Printers
Printer Queues /etc/lp/interface/* Stop LP lpshut Start LP lpsched Submit print jobs lp LP statistics lpstat Remove print jobs cancel Add printer queue lpadmin -p pq Remove Printer queue lpadmin -x pq Make default printer lpadmin -d pq TCP/IP
Network IP configuration /etc/rc.config.d/netconf Hosts IP addresses /etc/hosts Name service switch /etc/nsswitch.conf Network parameters ndd -h Routing daemon gated NIC Configurations lanscan -v Secondary IP Address ifconfig lan0:1 IP Login prompt telnetd -b /etc/issue Increase the # of pseudo-terminals rebuild your kernel with these new values NPTY=# NSTRPY=# reboot insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v Maximum # of ptys {MAXUSERS} Remote Shell remsh YP/NIS service binder /usr/lib/netsvc/yp/ypbind System Files
NFS exported /etc/exports NFS Client mounted directories /etc/xtab Max File System 128 GB Max File Size 128 GB Max # File Descriptors 60~ K DISK/LVM Commands
Filesystem table /etc/fstab Free disk blocks bdf Device listing /sbin/ioscan Disk information diskinfo /dev/rdsk/c#t#d# Disk Label pvdisplay -v /dev/dsk/C#t#d# LVM Concepts logical extents logical volume volume group Journal Filesystem type vxfs Default volume group /dev/vg00 Display volume group vgdisplay -v vg00 Modify physical volume pvchange Prepare physical disk pvcreate List physical volume pvdisplay Remove disk from volume group vgreduce Move logical volumes to another physical volumes pvmove Create volume group vgcreate Remove volume group vgremove Volume group availability vgchange Restore volume group vgcfgrestore DISK/LVM Commands
Exports volume group vgexport Imports volume group vgimport Volume group listing vgscan Change logical volume characteristics lvchange List logical volume lvdisplay Make logical volume lvcreate Extend logical volume lvextend Reduce logical volume lvreduce Remove logical volume lvremove Prepare boot volumes lvlnboot Remove boot volumes lvrmboot Extend File system extendfs /dev/vg00/lvol8 fsadm -F vxfs -b {LE * 1024} /mt Reduce/Split mirrors lvsplit Merge mirrors lvmerge Create mirrors lvcreate -m 1 Add mirrors lvextend -m 1 Create striped volumes lvcreate -i 3 -I 64 System recovery tape /opt/ignite/bin/make_recovery Backup fbackup Restore frecover MISC
Startup script /sbin/rc Kernel /stand/vmunix Kernel Parameters sysdef kmtune kmsystem Reconfigure the kernel cd /stand/build