C displaying version information with vproc, Finding product files, Running vproc – HP NonStop G-Series User Manual

Page 181: Running vproc as a full command, Finding product files running vproc

Advertising
background image

C Displaying Version Information With vproc

The vproc command uniquely identifies and displays product version information for one or more
files. If you are reporting a problem or asking for product support, you need to supply HP with the
correct product version information for the files of that product.
To use vproc, you must perform the following steps:
1.

Find the product files.

2.

Select a file for which vproc can return information, based upon the file codes for all of the
product’s files.

3.

Run vproc.

4.

Interpret vproc output.

Finding Product Files

There can be many files for a product in different locations on a system; you want the one that is
actively used, so the procedure you need to perform depends upon where the product files are
located.
To find the correct object file for an OSS product, use the find command from an OSS shell
prompt to locate files. The find command locates all files with matching names on your node in
both the OSS file system and the Guardian file system.
Alternatively, you could use the whence command to locate files. The whence command searches
only for files to which you have access through your PATH environment variable.
The following example illustrates how to determine the location of the file sh containing the OSS
shell:

$ find / -W NOE -W NOG -name sh

This returns, for example:

...
/bin/sh
...

In this example, you determine that the file sh for which you need the vproc information is found
in /bin/sh, because that file is in the OSS file system. (The -W NOE and -W NOG flags are
included on the find command so that a time-consuming search of the /E and /G directories is
avoided).
Files can be stored either singly or in sets called ar-format archive files. An ar-format archive file
is normally used only in the OSS file system and on UNIX systems. If you request version information
for an ar-format archive file that contains no Binder-format object files, vproc returns only the
timestamp of the most recently modified file in the archive file.

Running vproc

You can run vproc either by specifying the full vproc command (with the filename in the command
line) or as an interactive process.

Running vproc as a Full Command

The vproc command is implemented as a script that is called from the OSS shell.
The syntax for the full vproc command is as follows:

$ vproc pathname

where pathname is the relative OSS pathname for the file.
For detailed information about the vproc command, refer to the vproc(1) reference page either
online or in the Open System Services Shell and Utilities Reference Manual.

Finding Product Files

181

Advertising
This manual is related to the following products: