To find the corresponding name(s) for a UFS (HFS/ZFS) element - in the case of 
zcat:

Do an ls -l /bin/zcat

-rwxr-xr-x   3 OMVSKERN OMVSGRP   188416 May  9  2011 /bin/zcat

The interesting thing  here is the '3'  between the mode fields and the UID / 
GID names -
this means that there are 3 links (i.e. directory entries) to the actual inode 
that
points to the file (with zcat being one of the three).  Next, do an ls -i 
/bin/zcat to
find the inode number:

278 /bin/zcat

So, on my system, the directory entry /bin/zcat points to inode number 278 in 
the
root filesystem.  Next, use the "find" command to find all of the files in that 
filesystem
that point to inode number 278:

find /MVSB/ -inum 278 -xdev -print

(on my system the root FS is currently mounted on /MVSB)

This gives:

/MVSB/bin/uncompress
/MVSB/bin/zcat
/MVSB/bin/IBM/FSUMSUNE

So, both uncompress and zcat have hard links (as opposed to symlinks) to
/bin/IBM/FSUMSUNE.  This is now findable in SMP/E panel 3.1 (pointing to
your target zone):




                                  CSI QUERY
===>

Specify the zone, entry type, and name to be queried:

   ZONE NAME   ===> zosv1dt  Name of the zone to be queried.
                             To display a list of all zones,
                             leave blank

   ENTRY TYPE  ===>          Entry type to be queried.
                             To display a list of all valid
                             entry types, leave ENTRY TYPE
                             and ENTRY NAME blank

   ENTRY NAME  ===> FSUMSUNE Entry name to be queried.
                             Leave blank or use a wildcard
                             (entry name pattern) to display
                             a selection list.

To return to the Query selection menu, enter END .

and we see that this returns an LMOD entry:

                           CSI QUERY - SELECT TYPE             Row 1 to 1 of 1
===>                                                          SCROLL ===> CSR

Select one type to query from TARGET zone ZOSV1DT :

S    TYPE      ACTION
     LMOD
******************************* Bottom of data ********************************

And we select it and get this:

                            CSI QUERY - LMOD ENTRY             Row 1 to 2 of 2
===>                                                          SCROLL ===> CSR

 To return to the previous panel, enter END .

 Primary Command: FIND
 NOTE: ENTER  L  ON COMMAND LINE TO DISPLAY LINK-EDIT DATA

 Entry Type:  LMOD                                Zone Name: ZOSV1DT
 Entry Name:  FSUMSUNE                            Zone Type: TARGET

 RETURN CODE: 0                           LASTUPD: HOT7780   TYPE=ADD


 Link-edit Parameters:
 RENT,REUS,AMODE=31,RMODE=ANY,CASE(MIXED),CALL




         -------- -------- -------- -------- -------- -------- --------
SYSLIB   SFSUMBIN
CALLLIBS SCEELKED CSSLIB
******************************* Bottom of data *******************************

And here is the link-edit data, showing the alias entries:

            CSI QUERY - LMOD ENTRY - LINK-EDIT CONTROL INFORMA Row 1 to 5 of 5 
===>                                                          SCROLL ===> CSR  
                                                                               
 To return to the previous panel, enter END .                                  
                                                                               
 Primary Command: FIND                                                         
                                                                               
 Entry Type:  LMOD                                Zone Name: ZOSV1DT           
 Entry Name:  FSUMSUNE                            Zone Type: TARGET            
                                                                               
                       LINK-EDIT CONTROL STATEMENTS                            
-----------------------------------------------------------------------        
         SETOPT PARM(PATHMODE(0,7,5,5))                                        
         ORDER   CEESTART                                                      
         ENTRY   CEESTART                                                      
         ALIAS '../uncompress'                                                 
         ALIAS '../zcat'                                                       
******************************* Bottom of data ********************************

HTH.
-Mike

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to