Archive

Archive for the ‘hp ux’ Category

hp ux: Network tools

May 3rd, 2009

The HP UX is bundled with several network adminitration tool:

  • lanscan : to see MAC Adress, interface status, and hardware path

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0×00306EC32104 0 UP lan0 snap0 1 ETHER Yes 119

  • ifconfig : looks like the same command in linux, to see of configure the IP Addresses, turning on/off the NIC, etc.

# ifconfig lan0
lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 150.150.8.1 netmask ffff0000 broadcast 150.150.255.255

  • lanadmin : to see detailed LAN interfaces of the machine

LAN INTERFACE STATUS DISPLAY
Tue , Jun 17,2008 09:12:05

PPA Number = 0
Description = lan0 HP PCI 10/100Base-TX Core [10BASE-T,HD,AUTO,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0×306ec32104
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 1186783
Inbound Octets = 42032376
Inbound Unicast Packets = 15518
Inbound Non-Unicast Packets = 501152
Inbound Discards = 1
Inbound Errors = 0
Inbound Unknown Protocols = 14605
Outbound Octets = 1719024
Outbound Unicast Packets = 17140
Outbound Non-Unicast Packets = 722
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
Ethernet-like Statistics Group

Index = 1
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 1053
Multiple Collision Frames = 99
Deferred Transmissions = 136
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0

  • linkloop : a tool to tests layer 2 connectivity

# linkloop 0×00108303aabf
Link connectivity to LAN station: 0×00108303aabf
– OK

Author: bayu Categories: hp ux Tags: , , , , ,

Using remote X font server

May 3rd, 2009

When using an X application remotely, sometimes the application needs specific fonts that are not available on our X server. Some of them might still work with a different fonts. Unluckily, one of mine doesn’t

I found some messages when I use remote X server on an application :

ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Unable to load any usable fontset
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Cannot convert string “-*-helvetica-medium-r-*-120-*” to type FontSet

The solution is to use the font server in which the application is installed

on apllication side (in this example is an hp-ux server) :

  1. open /etc/rc.config.d/xfs , set RUN_X_FONT_SERVER=1.
  2. Execute ”/sbin/init.d/xfs start”

on X server side (my laptop is using OpenSUSE linux) :

  1. Log on as user that going to run the application remotely.
  2. Execute ”xset +fp tcp/<hp-ux_hostname>:7000” .
  3. Execute ”xset fp rehash” .
  4. Execute ”xset -q”.
  5. Do a remote log on, secure tunnel might helps much if you have a firewall issue.
  6. Set DISPLAY variable if needed – “export DISPLAY=x.x.x.x:0.0″
  7. Run the X application remotely.

Credits: http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1212545170579+28353475&threadId=224569

Author: bayu Categories: hp ux Tags: , , , , ,

hp ux: Display detailed devices info

May 3rd, 2009

To view devices (cpu, memory, adapters, etc), cstm can give you a very detailed information.

#echo “map selall info;wait infolog” | cstm ’, ‘

credits: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=981387

Author: bayu Categories: hp ux Tags: , , , ,

mendisable service di hp ux

May 3rd, 2009

jika kita temui pada linux pada umumnya untuk mengaktifkan / menonaktifkan service pada saat menyalakan server dengan memanipulasi file-file pada /etc/rc.d atau /etc/init.d, maka pada HP UX, kita dapat lakukan dengan mengubah harga variabel pada file-file yang terdapat pada /etc/rc.config.d

Misal untuk menonaktifkan  email server, maka edit file /etc/rc.config.d/mailserv,dan ubah variabel :

SENDMAIL_SERVER=0

Cheers!

Author: bayu Categories: hp ux Tags: , , ,

Memperbesar Logical Volume dengan menambah Harddisk di HP UX

May 3rd, 2009

Ini untuk kasus dimana system sudah berjalan normal, namun kita ingin menambah harddisk baru pada logical volume yang sudah ada.nnMisal kasus yang saya hadapi adalah beberapa partisi/logical volume saya kekurangan tempat :n

n
[root@hpux01 tmp]# bdfnFilesystem          kbytes    used   avail %used Mounted onn/dev/vg00/lvol3    1048576  368328  674952   35% /n/dev/vg00/lvol1    1835008   87472 1733984    5% /standn/dev/vg00/lvol8    5406720 2391992 2991696   44% /varn/dev/vg00/lvol7    7233536 4604552 2608488   64% /usrn/dev/vg00/lvol4     524288   18640  502280    4% /tmpn/dev/vg00/lvol6    7831552 4882696 2925888   63% /optn/dev/vg00/lvol5     106496    8696   97104    8% /home

n

nPada contoh di atas, saya ingin memperbesar /tmpn

    n
  1. Cek terlebih dahulu apakah VG (Volume Group) yang ingin ditambahkan ukurannya dapat mendukung PV (Physical Volume) yang baru dengan “vgdisplay”. Pada contoh berikut volume group yang akan diperbesar adalah vg00n
    n
    [root@hpux01 tmp]# vgdisplay /dev/vg00

    n

    --- Volume groups ---

    n

    VG Name                     /dev/vg00

    n

    VG Write Access             read/write

    n

    VG Status                   available

    n

    Max LV                      255

    n

    Cur LV                      8

    n

    Open LV                     8

    n

    Max PV                      16

    n

    Cur PV                      1

    n

    Act PV                      1

    n

    Max PE per PV               4238

    n

    VGDA                        2

    n

    PE Size (Mbytes)            8

    n

    Total PE                    4228

    n

    Alloc PE                    3184

    n

    Free PE                     1044

    n

    Total PVG                   0

    n

    Total Spare PVs             0

    n

    Total Spare PVs in use      0

    n

    nPerhatikan pada “Max PE per PV” dan “PE Size (Mbytes) “.  kalikan kedua bilangan tersebut, maka menghasilkan ukuran maksimum PV yang dapat ditambahkan ke volume group tersebut. Misal pada contoh di atas, maka maksimum PV yang dapat ditambahkan ke vg00 adalah 4238*8 = 33,904 MBytes atau sekitar 33 GB.

  2. n

  3. Gunakan ioscan -nfC disk untuk melihat daftar device pada kelas “disk”n
    n
    [root@hpux01 tmp]# ioscan -nfC disk

    n

    Class     I  H/W Path       Driver     S/W State   H/W Type     Description

    n

    ============================================================================

    n

    disk      0  0/0/2/0.0.0.0  sdisk      CLAIMED     DEVICE       TEAC    DV-28E-N

    n

                               /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0

    n

    disk      1  0/1/1/0.0.0    sdisk      CLAIMED     DEVICE       HP 36.4GST336753LC

    n

                               /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0

    n

    disk      2  0/1/1/0.1.0    sdisk      CLAIMED     DEVICE       HP 36.4GST336753LC

    n

                               /dev/dsk/c2t1d0     /dev/rdsk/c2t1d0

    n

                               /dev/dsk/c2t1d0s1   /dev/rdsk/c2t1d0s1

    n

                               /dev/dsk/c2t1d0s2   /dev/rdsk/c2t1d0s2

    n

                               /dev/dsk/c2t1d0s3   /dev/rdsk/c2t1d0s3

    n

    disk      3  0/1/1/1.2.0    sdisk      CLAIMED     DEVICE       HP 73.4GST373454LC

    n

                               /dev/dsk/c3t2d0   /dev/rdsk/c3t2d0

    n

    npada contoh di atas, harddisk yang baru saya pasangkan adalah disk 3

  4. n

  5. Gunakan pvcreate untuk membuat physical volume untuk nantinya digunakan pada LVM groupnn
    [root@hpux01 tmp]# pvcreate -f /dev/rdsk/c3t2d0nPhysical volume “/dev/rdsk/c3t2d0″ has been successfully created.

    n

  6. n

  7. Gunakan vgextend untuk menambahkan PV yang sudah dibuat sebelumnya ke dalam volume group.   Jika me-refer pada poin satu, maka sebenarnya harddisk yang saya tambahkan tidak akan dapat digunakan sepenuhnya, melainkan sesuai dengan ukuran PV yang didukung.  Pada contoh berikut saya paksakan saja untuk menambahkan PV 72 GB tersebut ke vg yang hanya mensupport 36 GBn
    n
    [root@hpux01 tmp]# vgextend /dev/vg00 /dev/dsk/c3t2d0

    n

    vgextend: Warning: Max_PE_per_PV for the volume group (4238) too small for this PV (8750).

    n

             Using only 4238 PEs from this physical volume.

    n

    Volume group "/dev/vg00" has been successfully extended.

    n

    Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

    n

    nPesan peringatannya jelas, bahwa hanya 4238 PE yang digunakan dari total keseluruhan 8750 PE

  8. n

  9. Gunakan lvextend untuk memperbesar logical volume yang ingin diperbesar, seperti pada misi utama kita adalah memperbesar /tmp, yaitu /dev/vg00/lvol4  :n
    n
    [root@hpux01 tmp]# lvextend -L 10000 /dev/vg00/lvol4

    n

    Logical volume "/dev/vg00/lvol4" has been successfully extended.

    n

    Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

    n

    n

  10. n

  11. n

Author: bayu Categories: hp ux Tags: , , , ,
Switch to our mobile site