Tagged: tutorial

HP-UX: HOWTO: Change IP Address / Hostname / DNS, etc…

This is a part of collection of HP-UX tips from the time I worked as system admin:

Disclaimer:
The information below is the result of my researches in the Internet and of my experiences. It is solely used for my purpose and may not be suitable for others.

How to change the hostname, IP address, DNS Server: # /sbin/set_parms {hostname|timezone|date_time|root_passwd|ip_address|addl_netwrk}

That's all!
-gibb

HP-UX: HOWTO: Chaneg Default Gateway

This is a part of collection of HP-UX tips from the time I worked as system admin:

Disclaimer:
The information below is the result of my researches in the Internet and of my experiences. It is solely used for my purpose and may not be suitable for others.

By Using SAM:
go to SAM --> Networking and communication --> Local Hosts file --> Action --> Configure default Gateway

By Editing File:
# vi /etc/rc.config.d/netconf ----------------------------------------- ROUTE_DESTINATION[0]=default ROUTE_MASK[0]="" ROUTE_GATEWAY[0]= ROUTE_COUNT[0]=1 ROUTE_ARGS[0]="" # /sbin/init.d/net stop # /sbin/init.d/net start

HOWTO: Change IP Address / Hostname / DNS, etc...

How to change the hostname, IP address, DNS Server: # /sbin/set_parms {hostname|timezone|date_time|root_passwd|ip_address|addl_netwrk}

HOWTO: Check Installed Patches

# swlist -l product | grep PH

HOWTO: Clean Up /var/adm/sw/save

# cd /var/adm/sw/save # swmodify -x patch_commit=true *

HOWTO: Determine CPU Speed

# echo "itick_per_usec/D" | adb -k /stand/vmunix /dev/kmem

That's all!
-gibb

HP-UX: HOWTO: Boot Into Single User Mode

This is part of collection of HP-UX tips from the time I worked as system admin:

Disclaimer:
The information below is the result of my researches in the Internet and of my experiences. It is solely used for my purpose and may not be suitable for others.

  1. Boot into the single-user mode by interuppting the boot process

  2. Type bo pri

  3. Enter 'y' for interact with ISL

  4. ISL> hpux -is boot /stand/vmunix


That's all!
-gibb

HP-UX: HOWTO: Apply Patch(es)

This is part of a collection of HP-UX tips from the time I worked as system admin:

Disclaimer:
The information below is the result of my researches in the Internet and of my experiences. It is solely used for my purpose and may not be suitable for others.

1) Download apropriate patches from here

2) Check if there is any shares are opened from HP-UX box to USILDAN4 box. If there is one, save patches into the directory. Also make a copy to USILDAN4:/qa/unix/HP/[version_of_hp_box]/patches

3) Log into HP-UX box and go to the directory where the patches are copied.

4) Move the patches to /tmp/patches (if none, create this directory)

5) Un-tar the patches
GZ extension: # gunzip file.gz TAR.GZ or TGZ extension: # tar xvfz file.tar.gz or # gzip -dc file.tar.gz | tar xvf -

6) Install patches by following below steps: # sh PHSS_xxxx # /usr/sbin/swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/patches/PHSS_xxx.depot

By default swinstall will archive the original software in /var/adm/sw/save/PHSS_22535. If you do not wish to retain a copy of the original software, use the patch_save_files option:

# swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHSS_22535.depot

WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature.

For future reference, the contents of the PHSS_22535.text file is available in the product readme:

# swlist -l product -a readme -d @ /tmp/PHSS_22535.depot

To put this patch on a magnetic tape and install from the tape drive, use the command:

# dd if=/tmp/PHSS_22535.depot of=/dev/rmt/0m bs=2k

That's all!
-gibb