Tuesday, March 8, 2011

HP-UX Overview and Command Summary - page 8

System InformationNote:  See section on STM, detailed system information is available with this utility            Also SAM -->Performance Monitors --> System Properties OS Information uname -a - display general information e.g. OS release, node name, machine ID number, etc  print $(uname -i)16op|dc  hex system id /opt/itor/bin/i4target...

HP-UX Overview and Command Summary - page 7

Listing all Software swlist -l product | more Checking for Specific Software swlist -l product | grep Checking for Specific Patches swlist -l product| grep PH | more then search for a specific patch (ie PHNE_XXXXX) Manually applying patches Patches can be applied using swinstall, just as depots are installedswlist -l patch -a patch_state PHKL_25475 swcopy -s /tmp/*.depot...

HP-UX Overview and Command Summary - page 6

Remote Accessrcp remote_machine: remsh rlogin .rhosts file needs to be configured or else you will be prompted for username and password (located in home directory) last -R  - gives address information of last remote login, useful for troubleshootingSoftware Installation and ManagementTo install patches and software use: swinstall  -->  This will...

HP-UX Overview and Command Summary - page 5

Printing Command Description cancel deletes print jobs from queue hppi jet admin ls -d -o file prints a file lpadmin lpsched -v lpstat lists jobs in queue. -s  -t pr .profile | lp -n3 prints pr -o10 -l64 -F -h | lp prints using margins of 10, page length of 64, header on each page /etc/lp /usr/lib/lp /var/adm/lp /var/spool/lp /etc/lp/interface...

HP-UX Overview and Command Summary - page 4

Login Environment/etc/profile - main profile for all users /etc/profile.env export TMPDIR=/tmpsort export TEMPDIR=/tmpsort source a profile:    ". ./profile" Changing prompt: export PS1=$(hostname):'$PWD # ' This gives a prompt that has the hostname followed by the current directory, ending in the # (useful for root logins).Networkingnetstat -a   <--ports netstat...

HP-UX Overview and Command Summary - page 3

7400 Disk Array armdsp -a va7400   <-- real time display of the disk array armmgr -D va7400 HPA6189A00SG218H0024 armdiscover  /opt/sanmgr/commandview/client/sbin    -->  Tells us the serial number armhost -d armhost -d 50060b000014e313 00SG218J0024 ioscan -fnc disk | more cvui - creates lunsChoose storage array Create LUN Find last LUN Create...