2014년 10월 17일 금요일

HP-UX Command



from http://bhami.com/rosetta.html


TASK \ OSHP-UXOS / TASK
OS notesHewlett-PackardOS notes
administrative GUIsam
smh (11.31+)
administrative GUI
managing usersuseradd
userdel
usermod
getprpw
modprpw
pwget
managing users
TASK \ OS HP-UXOS / TASK 
list hardware configurationioscan
dmesg (if you're lucky)
adb
model
stm (from the SupportPlus CDROM)
bdf (like most vendors' df)getconf
machinfo (11.23+)
print_manifest
list hardware configuration 
unique id useful for licensinguname -iunique id useful for licensing
show/set
EEPROM/NVRAM
values
setboot
stm
show/set
EEPROM/NVRAM
values
add device without rebootinf -e
ioscan -fnC devtype;
insf -C devtype
add device without reboot
remove devicermsfremove device
tape device/dev/rmt/0mtape device
stdin/ stdout/ stderr?stdin/ stdout/ stderr
X kvm configitemapX kvm config
TASK \ OS HP-UXOS / TASK 
read a disk label scsimgr (11.31+)diskinfo
pvdisplay
read a disk label 
whole disk in partition ?whole disk in partition 
label a disk pvcreatelabel a disk 
partition a disk smh (11.31+)lvcreate
sam
partition a disk 
TASK \ OS HP-UXOS / TASK 
kernel/hpux (9)/stand/vmunix (10+)kernel
show/set kernel parameterssmh (11.31+)
sam
sysdef
kmtune (11+)kctune (11.23+)getconf
show/set kernel parameters
limit physical memory?limit physical memory
loaded kernel moduleskmadmin -s
kcmodule -a (11.23+)
loaded kernel modules
load modulekmadmin -L
kcmodule module=loaded (11.23+)
load module
unload modulekmadmin -U
kcmodule module=unused (11.23+)
unload module
make disk bootablemkbootmake disk bootable
startup scripts /etc/rc* (9)
/etc/rc.config.d (preferred)
/sbin/rc* (10+)
/sbin/init.d/
startup scripts 
start/ stop/ config services?start/ stop/ config services
shutdown (& power off if possible)shutdown -yh 0shutdown (& power off if possible)
run levels 1
*=normal states 
for more detail
see

www.phildev.net/runlevels.html
0: shut down
s,S: single-user
1: sys admin
2: multiuser
3*: share NFS
4*: start GUI
5: user-defined
6: user-defined
run levels 1
*=normal states
for more detail
see

www.phildev.net/runlevels.html
show runlevel 1who -rshow runlevel 1
time zone info/usr/lib/tztabtime zone info
check swap space swapinfocheck swap space 
core dump managementcoreadmcore dump management
bind process to CPUpsrset -b
mpsched -c
intctl
bind process to CPU
TASK \ OS HP-UXOS / TASK 
"normal" filesystem hfs
vxfs (11.0+)
"normal" filesystem 
volume-based filesystem jfs (vxfs)
LVM
VxVM ($)
volume-based filesystem 
file system
description
/etc/checklist
(9)
/etc/fstab
(10+)
file system
description
volume manipulationvg*; lv*; pv*
extendfs
fsadm
volume manipulation
create filesystemmkfs
newfs
create filesystem
file system debugging and recoveryfsck
fsdb
file system debugging and recovery
create non-0-length empty fileprealloccreate non-0-length empty file
convert DOS-format text to Unix formatdos2uxconvert DOS-format text to Unix format
mount CDROMpfs_mountd
pfsd
pfs_mount
mount /dev/dsk/cxtydz4
/SD_CDROM
mount -orr /dev/cdrom /mnt/cdrom (requires "Rock Ridge extension" patches, 11+)
mount CDROM
eject CDROM?eject CDROM
create/mount ISO imagenohup pfs_mountd&;
nohup pfsd&;
pfs_mount -t iso9660 -x unix pathToIso mountPoint
create/mount ISO image
ACL managementlsacl
chacl
getacl
setacl
ACL management
Fibre Channel / SANscsimgr (11.31+)
fcmsutil
fcdlist
tdutil
tdlist
tddiag
Fibre Channel / SAN
TASK \ OS HP-UXOS / TASK 
NFS share definitions/etc/exports
/etc/dfs/dfstab (11.31+)
NFS share definitions
NFS share commandexportfs -a
share (11.31+)shareall (11.31+)
share_nfs (11.31+)
NFS share command
NFS informationnfsstatNFS information
name resolution order/etc/nsswitch.confname resolution order
show network interface infonwmgr (11.31+)
lanadmin
landiag
lanscan
netstat -in
ifconfig lanx
show network interface info
change IP/sbin/set_parms initial
ifconfig
change IP
start DHCP client?start DHCP client
ping one packet ping hostname 10 1 (9)
ping hostname -n 1 (10+)
ping one packet 
sniff networknettl
netfmt
sniff network
route definitions /etc/rc.config.d/netconf
netstat -r
route definitions 
telnetd, ftpd banner/etc/inetd.conf (telnet)telnetd, ftpd banner
set date/time(from net: ntp or other)ntpdateset date/time(from net: ntp or other)
TASK \ OS HP-UXOS / TASK 
auditingaudisp
audevent
audomon
audsys
auditing
encrypted passwords in /etc/passwd (not Trusted)/.secure/etc/passwd (Trusted 9)/tcb/files/auth/
(10+)
/etc/shadow (11.22+)
encrypted passwords in 
min password length/etc/default/securitymin password length
allow/deny root
logins
 /etc/securettyallow/deny root
logins
firewall config/etc/opt/ipf/ipf.conffirewall config
TASK \ OS HP-UXOS / TASK 
show installed software rmfn, what (HP-UX 9)
swlist (HP-UX 10+)
swm list (11.31+)
show installed software 
file is in which packageswlist -l file | grep filefile is in which package
add softwareswm install (11.31+)
swinstall
add software
precompiled binaries of GPLware and freewarehpux.cs.utah.edu
hpux.connect.org.uk
precompiled binaries of GPLware and freeware
C compiler /opt/softbench/bin/cc ($)
/bin/cc (9)
/usr/bin/cc (10+; not necessarily ANSI; kernel builder only)
C compiler 
show patch level
and/or patches
swm list (11.31+)
swlist -l product |
grep PHsomeString
show patch level
and/or patches
patch tool update (9)
swinstall (10+)
patch tool 
configure/show
runtime linking
fortran-2000.com/
ArnaudRecipes/
sharedlib.html
chatr
ldd (11+)kmadmin
configure/show
runtime linking
fortran-2000.com/
ArnaudRecipes/
sharedlib.html
link library path$LD_LIBRARY_PATH
(64-bit)
$SHLIB_PATH
(32- or 64-bit)
link library path
tracing utility caliper fprof
caliper ktrace
trace (freeware)tusc (11+, freeware)
tracing utility 
define user defaults/etc/default
/etc/PATH
/etc/MANPATH
/etc/default/*
define user defaults
csh global .login/etc/csh.logincsh global .login
default syslog and messages/var/adm/syslog/syslog.log
/var/adm/sulog
/var/spool/mqueue/syslog
default syslog and messages
system error reporting tool evmshow (11.31+)
smh (11.31+)
dmesg
sysdiag (9 and early10)
stm/cstm/mstm/xstm (10.20+)EMS (from support CD)
system error reporting tool 
performance monitoringglance
gpm
caliper
top; sar; vmstat;
iostat; nfsstat; netstat;
uustat; Glance($)ptree (11.31+)
performance monitoring
match process to file or portlsof
fuser
match process to file or port
manage various logs?manage various logs
X pop-up/usr/dt/bin/dterror.dsX pop-up
Wikipedia HP-UXWikipedia
FAQs (see also faqs.org)www.faqs.org/faqs/
hp/hpux-faq/preamble.html
FAQs (see also faqs.org)
blogs?blogs
mailing list hpux-admin@
dutchworks.nl

 (majordomo)
hp-ux-l
mailing list 
mailing list archives www.dutch
works.nl/
 htbin/hpsysadmin
 
mailing list archives 
man pages
www.freebsd.org/
cgi/man.cgi
docs.hp.com/en/hpuxman_pages.html
hpuxman_pages.html
man pages
www.freebsd.org/
cgi/man.cgi
newsgroup(s) and forums
groups.google
comp.sys.hp.hpux newsgroup(s) and forums
groups.google
user groupsconnect-community.org
hp-interex.com
encompassus.org
hptechnologyforum.com
forums.itrc.hp.com
HP DSPP
user groups
magazineswww.hpchronicle.com
www.interex.org/hpuxusr
www.hppro.com
magazines
vendor home pagehp.com/go/hpuxvendor home page
vendor docs and patches (see alsoman pages)software.hp.comdocs.hp.com
itrc.hp.com
vendor docs and patches (see alsoman pages)
vendor phone (US)800-633-3600vendor phone (US)
wikis?wikis
TASK / OSHP-UXOS \ TASK