HP-UX_How_To

Document Sample
HP-UX_How_To Powered By Docstoc
					HP-UX How To


SHUTDOWN SERVER:
shutdown -y 0 <enter>

REBOOT SERVER:
shutdown -ry 0 <enter>

CHANGE IP ADDRESS:
vi /etc/hosts and change hostname
vi /etc/rc.config.d/netconf and change ip
restart daemon: /sbin/init.d/net stop
/sbin/init.d/net start
ifconfig lan0 to check if ip was changed.


CHANGE HOST NAME:
Set_parms hostname

At prompt type new_hostname <enter>
You have chosen new_hostname as the name for this system. Is this correct? Press [y] for yes
and [n] for no, then press [Enter] y <enter>

Reboot now? <enter>


ADD USER:
Useradd –u 2001 –g staff –d/export/home/johndoe –m –s/usr/local/bin/bash –k etc/skel johndoe
Passwd johndoe (type password)



MODIFY USER:


DELETE USER:

View MC Service guard clusters:
cmviewcl


IGNITING A SYSTEM FROM IGNITE SERVER:
Requirements: client server must have os & ip configured & connected to network
              client must have xwindows

1.   Log in to ignite server (bac1) via workstation.
2.   export your display to your workstation's ip: export DISPLAY=ip_address:0.0
3.   At the bac1 prompt, start ignite: ignite&
4.   Actions:
          a) boot client
          b) at client boot prompt, put hostname:ipaddress of client: e.g. dns2:172.20.162.42
          c) select ok that it was rebooted successfully
          d) you should see the client icon pop up in your 'install clients' window.
          e) once icon pops up, right click icon and select "install client" , "new install"
           f) input the following information:
                - Customer name
                - System Serial #
                - Order #
           then click 'ok'

        g) Go to the system tab and enter the root password
        h) select 'go'
        i) select the client and righ click
        j) select client status
        k) click 'view log file'

5. The client install should be completed. After the ignite of the core 11.0 OS, type: swlist -l
bundle
       Three files should be listed.

6. Install the DART software depot:
         swinstall -s 172.20.165.44:/var/depot/Sep2000_XSWGR1100 -x patch-match-target =
true -x autoreboot = true

7. Install DART hardware depot:
         swinstall -s 172.20.165.44:/var/depot/Sept2000-XSWHGR1100 -x patch-match-
target=true -x autoreboot=true

8. Set root's home directory:
        mkdir -p /root/home/root

9. Install Apps based on Ignite list for system + ignite-UX

INSTALL OS FROM CDROM
1. Power up server
2. Once prompted to hit any key in 10 seconds, hit any key to interrupt boot
3. boot from cdrom: bo p2
4. BASIC:
        - Create separate volume groups = yes
        - DISABLE DHCP = yes

5. SYSTEM:
      - set parameters:
               ip address
               hostname
               subnet
               gateway

        - filesystems
                  /stand = 140Mb
                  / = 200Mb
                  /tmp = 300Mb
                  /home = 400Mb - change from range to fixed
                  /opt = 2000Mb
                  /var = 2000Mb
                  /usr = 1000Mb

        - set root password

6. Install DART Software using cdrom
        a. insert cdrom
       b. find cd: ioscan -fnC disk
       c. mount cdrom:
                i. mkdir /SD_CDROM
                ii. mount /dev/dsk/c2t2d0 /SD_CDROM
       d. install software:
                i. swinstall -s ace2:/SD_CDROM/XSWGR1100 -x patch_match_target=true -x
autoreboot =true

7. Install DART hardware using cdrom
        a. insert cdrom
        b. find cd: ioscan -fnC disk
        c. mount cdrom:
                 i. mkdir /SD_CDROM
                 ii. mount /dev/dsk/c2t2d0 /SD_CDROM
        d. install software:
                 i. swinstall -s ace2:/SD_CDROM/XSWHR1100 -x patch_match_target=true -x
autoreboot =true


8. verify that DART bundles were installed successfully:
         a. swlist -l bundle

9. Set root home:
        a. mkdir -p /root/home/root
        b. ftp bac1 - get .profile & cronfile
        c. crontab cronfile

10. Install STM - Diagnostics tool
        a. insert cdrom
        b. find cd: ioscan -fnC disk
        c. mount cdrom:
                 i. mkdir /SD_CDROM
                 ii. mount /dev/dsk/c2t2d0 /SD_CDROM

        e. verify that PHKL_18543 is installed:
                 swlist -l patch PHKL_18543
        d. install software:
                 i. swinstall -s SD_CDROM/DIAGNOSTICS/B.11.00
        f. to select online diag, hit the spacebar, type M to mark
        g. Tab up to Actions, return
        h. Install analysis
        i. Once ready, select OK

11. Ensure that STM was installed:
       swlist -l bundle | grep 'Support Tools'

12. Test STM: type cstm

13. Install unlimited user license:
                 a. insert cd (1 of 5)
        b. find cd: ioscan -fnC disk
        c. mount cdrom:
                 i. mkdir /SD_CDROM
                 ii. mount /dev/dsk/c2t2d0 /SD_CDROM
        d. install software:
                 i. run swinstall and mark softare based on the ignite list - codeword may be
needed.


How to use pfs mount


     1. Run pfs daemon

          nohup /usr/sbin/pfs_mountd &
          nohup /usr/sbin/pfsd &


     2. Create mount point directory if it doesn’t exist for cd
           mkdir /sd_cdrom


     3. Create file called /etc/pfs_fstab which should have entry:

          /dev/dsk/c2t5d0 /sd_cdrom pfs-rrip xlat=unix 0 0

          where /dev/dsk/c#t#d# is your cd rom device
          /sd_cdrom is your mount point


          use ioscan –fnC disk to find your cdrom


     4. Mount /cdrom:
        /usr/sbin/pfs_mount /sd_cdrom


     5. To unmount your cd:
        /usr/sbin/pfs_umount /sd_cdrom

     6. Kill the two pfs daemons when you’re done


How to copy patches to a depot
#   cd /tmp
#   mkdir patches
#   cd patches
#   ftp patches from web to this directory
#   for i in PH*
    do
     sh $i
    done
This will create the PH*.depot files.         Then the patches can be swcopied
to a
depot by doing the following:

create the depot directory if it doesn’t already exist
# mkdir /my_patch_depot

cd /tmp/patches
# for i in PH*.depot
  do
   swcopy -s ${PWD}/$i \* @ /my_patch_depot
  done

How to find firmware version on HP servers:

Stm
Select cpu
Tools | information
Double-click cpu icon

Search for firmware version:

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:22
posted:7/24/2010
language:English
pages:5