Operating System - HP-UX
1748223 Members
4488 Online
108759 Solutions
New Discussion юеВ

Re: Is uuidgen part of default HP-UX installation

 
talha_1
New Member

Is uuidgen part of default HP-UX installation

We need to use "uuidgen" which is a part of "DCE-Core.DCE-CORE-RUN". I need to know whether "DCE-Core.DCE-CORE-RUN" is a part of default installation or do we have to install it separately from CD-ROM.

-- thanks
7 REPLIES 7
Ralph Grothe
Honored Contributor

Re: Is uuidgen part of default HP-UX installation

I think uuidgen is part of the e2fsprogs of GNU/Linux.
At least I haven't come across it yet on HP-UX.
Madness, thy name is system administration
Rajesh K Chaurasia
Valued Contributor

Re: Is uuidgen part of default HP-UX installation

uuidgen is part of DCE-Core.DCE-CORE-RUN which is included in HPUXMinRuntime bundle available on all HP-UX 11i v3 OEs.

$ /usr/sbin/swlist -l file HPUXMinRuntime|grep uuid
HPUXMinRuntime.DCE-CoreTools.DCE-BPRG: /opt/dce/include/dce/uuid.h
HPUXMinRuntime.DCE-CoreTools.DCE-BPRG: /opt/dce/include/dce/uuid.idl
HPUXMinRuntime.DCE-Core.DCE-CORE-RUN: /opt/dce/bin/uuidgen
HPUXMinRuntime.DCE-Core.DCE-CORE-RUN: /usr/bin/uuidgen

uuidgen is part of default HP-UX installation.

-Rajesh
Bob_Vance
Esteemed Contributor

Re: Is uuidgen part of default HP-UX installation


Pine4 ## grep uuidgen /tmp/file_list
DCE-Core.DCE-CORE-RUN: /opt/dce/bin/uuidgen
DCE-Core.DCEC-ENG-A-MAN: /usr/share/man/man1.Z/uuidgen.1
PHSS_36005.DCE-CORE-RUN: /opt/dce/bin/uuidgen

If you don't want ot install DCE,
/opt/dce/bin/uuidgen
may be a simple executable that doesn't depend on anything else, so you could try just downloading the latest patch and pulling the file from there.
The patch is a gzipped depot and a depot is a tar file

gzip -d < PHxxxx | tar xf - /opt/dce/bin/uuidgen


You'll probably have to add perms and ownership.


bv
"The lyf so short, the craft so long to lerne." - Chaucer
Bob_Vance
Esteemed Contributor

Re: Is uuidgen part of default HP-UX installation

I botched the previous post.
There are two levels of tar in a patch download.
And the uuidegen file in the depot is compressed.
Let me work it out.


bv
"The lyf so short, the craft so long to lerne." - Chaucer
Bob_Vance
Esteemed Contributor

Re: Is uuidgen part of default HP-UX installation

Here's the correct way:


Download the patch file.


Then, pull out the patch shar file
## gzip -d < hpux__11.23_05191229.tgz | tar xf - PHSS_38258

## file PHSS_38258
PHSS_38258: shar file

Rename for for later extract
## mv PHSS_38258 PHSS_38258.sh
Execute the shar
## sh ./PHSS_38258.sh
x - PHSS_38258.text
x - PHSS_38258.depot [non-ascii]


Now, we have a depot file !


## ls PH*
PHSS_38258.sh PHSS_38258.depot PHSS_38258.text

Extract from the depot file

## tar tf PHSS_38258.depot | grep uuid
PHSS_38258/DCE-CORE-RUN/opt/dce/bin/uuidgen

## tar xvf PHSS_38258.depot \
PHSS_38258/DCE-CORE-RUN/opt/dce/bin/uuidgen
x PHSS_38258/DCE-CORE-RUN/opt/dce/bin/uuidgen, 18902 bytes, 37 tape blocks

## file PHSS_38258/DCE-CORE-RUN/opt/dce/bin/uuidgen
PHSS_38258/DCE-CORE-RUN/opt/dce/bin/uuidgen: gzip compressed

## cp PHSS_38258/DCE-CORE-RUN/opt/dce/bin/uuidgen /tmp/uuidgen.gz

## gunzip /tmp/uuidgen.gz

## file /tmp/uuidgen
/tmp/uuidgen: PA-RISC1.1 shared executable dynamically
linked -not stripped dynamically linked


## ll /tmp/uuidgen
-r-xr-xr-x 1 root sys 57016 May 19 08:44 /tmp/uuidgen


## /tmp/uuidgen
ec4e415a-8215-11e0-ab00-00306ef487f8


bv
"The lyf so short, the craft so long to lerne." - Chaucer
Bob_Vance
Esteemed Contributor

Re: Is uuidgen part of default HP-UX installation

I notice the uuidgen uses a library that is part of DCE as well.


## ldd /tmp/uuidgen
/vob/dce/external/hp700_ux1125_pa/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/vob/dce/external/hp700_ux1125_pa/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/vob/dce/export/hp700_ux1125_pa/usr/lib/libdcekt.1 => /usr/lib/libdcekt.1
/vob/dce/external/hp700_ux1125_pa/usr/lib/libpthread.1 => /usr/lib/libpthread.1


## swlist -l file > /tmp/file_list

## ldd /tmp/uuidgen | awk '{print $3}' \
|while read L;do grep $L /tmp/file_list ;done | grep DCE
DCE-Core.DCE-CORE-SHLIB: /usr/lib/libdcekt.1
PHSS_36005.DCE-CORE-SHLIB: /usr/lib/libdcekt.1

So, you'd need that as well.



bv
"The lyf so short, the craft so long to lerne." - Chaucer
Bob_Vance
Esteemed Contributor

Re: Is uuidgen part of default HP-UX installation

Of interest would be why DCE is not installed or if it is, what happened to uuidgen.

## swlist -l product | grep DCE
DCE-Core B.11.23 HP DCE Core Client Software
DCE-CoreTools B.11.23 DCE Application development Support


bv
"The lyf so short, the craft so long to lerne." - Chaucer