=:The OpenVMS Frequently Asked Questions(FAQ)C

The OpenVMS Frequently Asked Questions(FAQ)



 r \ ^  
PreviousContentsIndex

g

13.10 Why doesn't DCL symbol substitution work?



FThe DCL symbol substitution processing occurs only at the DCL prompt, Dnot within data and not within files. If you wish to perform symbol Csubstitution in this environment, you typically write a small file Hcontaining the command(s) and data to be invoked---potentially only the Bdata---and you then invoke the created procedure or reference the specified data.

DIn this case, use of a file containing nolinemode commands or other Ctechniques might be useful---you will want to ensure that the text Geditor you use does not attempt to use screen mode or similar, as this Dis not generally considered adventageous within a command procedure.

.Tools such as FTP have alternatives: COPY/FTP.

FDCL symbol substitution occurs in two passes, using the ampersand and Fthe apostrophe. In most cases, only the apostrophe is necessary. In a Hfew cases---such as the DCL PIPE command---you will may need to use the Fampersand to get the substitution to work. The following example uses Eampersand substitution to transfer the contents of the header into a logical name:

 

"
I$ PIPE CC/VERSION | (READ SYS$PIPE hdr ; DEFINE/JOB/NOLOG hdr &hdr ) 




GA logical name (in the job logical name table; shared by all processes Hin the current job) was used as DCL symbols cannot be returned back out ,from a DCL PIPE or other spawned subprocess._

13.11 Where can I get Perl for OpenVMS?



FOpenVMS support is included in the standard distribution of Perl, the Hpopular scripting language created by Larry Wall. In addition to nearly Eall of the functionality available under Unix, OpenVMS-specific Perl Fmodules provide interfaces to many native features, as well as access Fto Oracle, Ingres, and Sybase databases via the Perl DBI available on OpenVMS.

FA website useful for getting started with Perl on OpenVMS---where you Hwill find such things as download links, instructions, auxiliary tools, %and sample scripts---is available at:



EIf you have a C compiler, the best way to obtain Perl is to download Cand build it yourself. The latest production quality source kit is available from:



AYou will need GUNZIP and VMSTAR (both available from the OpenVMS EFreeware CD, or from other sites) to unpack the archive; once you've 8done that, read the instructions in the README.vms file.

GBinary distributions for most Alpha and VAX environments are available Hon the OpenVMS Freeware CD-ROM and from various websites, including the following:



EDuring active Perl development cycles, test kits are sometimes found at: from:



HWatch the mailing list (see below) for details on experimental releases.

ECharles Lane maintains pages on how to write CGI scripts in Perl for Gthe OSU HTTP server, as well as more general tips, tricks, and patches )for building and running Perl on OpenVMS:



GThere are OpenVMS-specific Perl modules that implement interfaces to a Hsubset of the VMS System Services. With these modules, you can get (and =often set) device, job, queue, user, system, and performance Dinformation. The lock manager, RMS indexed files, screen management Gutilities, and Intracluster Communication Services are also accessible 6via Perl. The relevant modules are all available from:



FTo subscribe to the OpenVMS Perl mailing list (a discussion forum for Aboth user support and new development), send an email message to vmsperl-subscribe@perl.org

-The mailing list archives may be searched at:

z

13.12 Obtaining the DECmigrate (AEST or VEST, and TIE) translator?



FThe DECmigrate image translation family provides tools that translate FOpenVMS VAX images for use on OpenVMS Alpha, and OpenVMS Alpha images 1for use on OpenVMS I64, Details are available at:



HVEST is the name sometimes given to the DECmigrate translation tool for VAX images, AESTE is the name given to the Alpha translation tools, and TIE names the I DECmigrate run-time environment within OpenVMS. (If you've ever noticed E images with filenames ending with _TV and wondered what this meant,  these images are part of TIE.)FAnd yes, you can use AEST to re-translate images that were translated @using VEST; you can perform a second translation of a VAX image.

ŒPlease see Section 7.4 and Section 13.14 for related information. HPlease see the website for the most current details on availability and ;plans and status of translations for OpenVMS I64 platforms.s

13.13 Where can I get Zip, Unzip, self-extracting zip, etc?



@Many packages are provided in ZIP, GZIP, or BZIP2 format, which Hrequires you to acquire the associated unzip tool to unpack it. You can Cget ZIP and UNZIP and related and similar tools from the following areas:



Eor you can request the FILESERV_TOOLS package from the e-mail server.

CBeware: The [000TOOLS...] pre-built versions of ZIP on the OpenVMS GFreeware V4 CD-ROM will erroneously return BILF errors on OpenVMS V7.2 @and later. Use the source on the Freeware V4 to rebuild the ZIP Eimage(s), or (better) acquire a far newer Zip kit from a more recent HFreeware, or elsewhere. The pre-built version of ZIP on the Freeware V4 Dkit is older than the included ZIP sources, and comparatively buggy.

=Directions for creating and using the sfx self-extracting zipBfile compression mechanism are available in the unzip kit that is available at:



CIf you want to build the zip images for yourself (eg: for an older BOpenVMS version), pull over the entire contents of a recent unzip directory.



and invoke LINK.COM.

>HP OpenVMS Engineering uses a tool known as FTSV for creating Cself-extracting compressed files using the OpenVMS DCX compression Ctools, as seen with various OpenVMS ECO (patch) kits. sfx provides Hbetter compression than does DCX. The FTSV and its related FTSO package @have only limited availability outside HP, and are not standard products.d

13.14 Are VAX Hardware Emulators Available?



FSoftware-based emulators of the VAX architecture and for specific VAX 6hardware platforms are available from various sources:



AVAX emulators that operate on PC systems and/or on OpenVMS Alpha Hsystems are available. For information on an alternative to using a VAX =emulator--- on the available DECmigrate VAX executable image translator---please see3Section 13.12.


F

Chapter 14
Hardware Information


z

14.1 What are the OpenVMS differences among VAX, Alpha, and IA-64?



FIn terms of software, very few. As of OpenVMS V6.1, the VAX and Alpha Cplatforms are very close to "feature parity". OpenVMS on BIA-64 is expected to have "feature parity" with OpenVMS HAlpha, and is based on the same source pool. Most applications can just 7be recompiled and run. Some differences to be aware of:



FThere are also a number of manuals which discuss migration to OpenVMS DAlpha available on the documentation CD-ROM media, both in the main 8documentation and in the archived documentation section.

FOn more recent OpenVMS Alpha versions, OpenVMS Alpha has begun to add Efeatures and support not available on OpenVMS VAX. Salient new areas include the following:



\Please see Section 14.4.5 for Intel Itanium terminology.y

14.2 Seeking performance information for Alpha (and VAX) systems?



EHP makes a wide range of performance documents available through its RFTP and WWW Internet servers (see Section 3.2).

DThe following contain information on current Alpha and VAX products:



CThe following sites contain information on various retired VAX and Alpha products:



Also see CPU2000:

k

14.3 Console Commands, Serial Lines, and Controls?



AThis section contains information on VAX and Alpha consoles, and Edetails related to console commands, serial lines, and configuration settings.[

14.3.1 What commands are available in the Alpha SRM console?



qIn addition to the normal BOOT commands and such (see Section 14.3.5.2 for @some details) and the normal contents of the console HELP text, Goperations such as I/O redirection and floppy disk access are possible at the SRM console prompt:

    F
  1. Format a FAT floppy, and insert it into the AlphaStation floppy  drive.9
  2. Perform the following at AlphaStation SRM Console :

     

    "
    $   >>> show * > env.dat (   >>> show conf > conf.dat 2   >>> cat env.dat > fat:env.dat/dva0 4   >>> cat conf.dat > fat:conf.dat/dva0 
    
    
    I

  3. You may use the SRM "ls" command to display the contents  of the floppy.

     

    "
    $   >>> ls fat:env.dat/dva0 %   >>> ls fat:conf.dat/dva0 
    
    
    C

  4. You can now transfer the FAT-format floppy to another system.
N

14.3.2 What does SRM mean? What is PALcode?



HThe abbreviation SRM is derived from the Alpha System Reference Manual, Hthe specification of the Alpha architecture and the associated firmware.

HPALcode is a name assigned to a particular set of functions provided by Athe SRM firmware. PALcode is used to provide low-level functions Crequired by higher-level operating system or application software, Afunctions which may not be directly available in Alpha hardware. HPALcode is implemented using available Alpha instructions and using the DAlpha processor, though PALcode operates in a mode which simplifies Hprogramming. PALcode is also permitted access to processor-specific and Aotherwise internal features of a particular Alpha microprocessor Fimplementation; microprocessor-specific features which are not easily 3accessable to operating system or application code._

14.3.3 Alpha COM ports and VAX console serial line information?



HThis section contains information on the Alpha COM communication ports, Eand related settings, as well as on the VAX console bulkhead and VAX console serial line connection.`

14.3.3.1 Which terminal device name is assigned to the COM ports?



HCOM2 is normally TTA0:. COM1 is normally TTB0: if the Alpha workstation Eis booted with the SRM console environment variable set to graphics, -and is OPA0: if the console is set to serial.

GOn the DEC 2000 series (sometimes incorrectly known by the name of the Dsystem as sold for Microsoft Windows NT Alpha; as the DECpc 150 AXP Hseries) on older OpenVMS Alpha releases, COM1 through COM4 are known as FOPA0: through OPA3:. On all current OpenVMS releases, these ports are Gserviced by the terminal driver and not by the console OPDRIVER driver.

FOften the easiest way to determine the OpenVMS terminal name assigned Hto the port is to connect a terminal, log in interactively, and look at Hthe output of SHOW TERMINAL. (Device names can vary by OpenVMS version, >as well as by the SRM console environment variable selection.)

FFor serial console hardware and related information, and for pin-outs Žand related information, please see Section 14.3 and Section 14.27.[

14.3.3.2 Which serial port is the console on the MicroVAX 3100?



:Just to keep life interesting, the MicroVAX 3100 has some F"interesting" console ports behaviours based on the setting Gof the BREAK enable switch. When the console is not enabled to respond Eto BREAK, MMJ-1 is the console port. MMJ-3 will (confusingly) output Hthe results of the selftest in parallel with MMJ-1. When the console is Genabled to respond to BREAK, MMJ-3 becomes the console port, and MMJ-1 Cwill (confusingly) output the results of selftest in parallel with MMJ-3.\

14.3.3.3 How can I set up an alternate console on a VAXstation?



EMost VAXstation series systems and a few Alpha series systems have a Gswitch -- most often labeled S3, largely for historical reasons---that Henables one of the serial lines as the system console device; as OPA0:. EThis disables console output to the graphics display. (For a related Jbehaviour, please see Section 11.10.)

EAll VAXstation 3100 series systems provide a S3 slide switch, though Athe oldest may be missing the cut-out through the enclosure that Dprovides access to the switch. The slide switch is located near the Gdiagnostic LED display. (The slide switch is accessable with the cover removed.)

AVarious members of the DEC 3000 series Alpha systems also have a Bsimilarly-labled S3 switch for selection of the alternate console.

GThe particular port that becomes the console can vary. The printer MMJ Hconnection is used on all VAXstation 3100 series. On VAXstation II, the Fconsole DB9 is used, rather than the graphics display. On most (all?) HAlphaStation series systems, typically the COM1 serial port becomes the console.

´Also see Section 14.3.6, Section 11.10, and Section 14.19. Beware the gtwo different DB9 pin-outs; see Section 14.28 for related details.

FFor information on registering software license product authorization Kkeys (PAKs), please see Section 5.6.2.U

14.3.3.4 Please explain the back panel of the MicroVAX II



HThe MicroVAX-series console bulkhead interface was used with the KA630, /as well as with the KA650 and KA655 processors.

BThere are three controls on the console bulkhead of these systems:

 

"
*  Triangle-in-circle-paddle: halt enable. 9    dot-in-circle: halt ([break]) is enabled, .                   and auto-boot is disabled. >    dot-not-in-circle: halt ([break]) is disabled, -                   and auto-boot is enabled.  6  Three-position-rotary: power-up bootstrap behaviour     arrow: normal operation. !    face: language inquiry mode. *    t-in-circle: infinite self-test loop.  5  Eight-position-rotary: console baud rate selection 5    select the required baud rate; read at power-up. 




FThere are several different bulkheads involved, including one for the @BA23 and BA123 enclosures, and one for the S-box (BA2xx) series Fenclosure. The console bulkheads typically used either the MMJ serial Fline connection, or the MicroVAX DB9 (not the PC DB9 pin-out), please ?see the descriptions of these in section WIRES1. For available Aadapters, see Section 14.28.

AAlso present on the console bulkhead is a self-test indicator: a Gsingle-digit LED display. This matches the final part of the countdown Fdisplayed on the console or workstation, and can be used by a service Aorganization to determine the nature of a processor problem. The Dparticular countdown sequence varies by processor type, consult the Chardware or owner's manual for the processor, or contact the local Ehardware service organization for information the self-test sequence Gfor a particular processor module. Note that self-tests 2, 1 and 0 are Hassociated with the transfer of control from the console program to the (booting) operating system.S

14.3.4 What are Alpha console environment variables?



HAlpha systems have a variety of variables with values set up within the GSRM system console. These environment variables control the particular >behaviour of the console program and the system hardware, the Hparticular console interface presented to the operating system, various Gdefault values for the operating system bootstrap, and related control Hmechanisms---in other words, "the environment variables provide an Eeasily extensible mechanism for managing complex console state."

FThe specific environment variables differ by platform and by firmware Dversion---the baseline set is established by the Alpha Architecture:

 

"
8AUTO_ACTION ("BOOT", "HALT", "RESTART", any other value 9assumed to be HALT),  BOOT_DEV, BOOTDEF_DEV, BOOTED_DEV, 6BOOT_FILE, BOOTED_FILE, BOOT_OSFLAGS, BOOTED_OSFLAGS, 8BOOT_RESET ("ON", "OFF"), DUMP_DEV, ENABLE_AUDIT ("ON", /"OFF"), LICENSE, CHAR_SET, LANGUAGE, TTY_DEV.  




HOpenVMS Galaxy firmware can add console environment variables beginning @with such strings as LP_* and HP_*, and each particular console :implementation can (and often does) have various sorts of 6platform-specific extensions beyond these variables...

HThe contents of a core set of environment variables are accessible from FOpenVMS using the f$getenv lexical and the sys$getenv system service. D(These calls are first documented in V7.2, but have been around for Dquite a while.) Access to arbitary console environment variables is 1rather more involved, and not directly available.O

14.3.5 What are the boot control flag values?



GBoth VAX and Alpha primary bootstraps support flag values; a mechanism Gwhich permits the system manager to perform specific customizations or Dsite-specific debugging of the OpenVMS system bootstrap. While very Gsimilar, there are differences among the boot flag implementations for the various architectures.L

14.3.5.1 What are the I64 IPB boot flag values?



GThe OpenVMS I64 primary bootstrap flags are processed within the IA-64 7primary bootstrap image IPB.EXE; within the SYS$EFI.SYSF structures. The primary bootstrap boot flags are largely parallel to p those of OpenVMS Alpha (see Section 14.3.5.2, though the console and the F console mechanisms used to specify the boot command, the boot flags, - and boot command options do differ markedly.

When you register an EFI boot alias (please seelSection 14.4.5 for Intel Itanium terminology), you will be asked if you Gwant to enter boot options, and what type. To add boot flags to a boot Falias, select Unicode as the boot options type, and enter an SRM-like options string, such as the;conversational bootstrap selected by the following example:

 

"
-fl 0,1 







 r Y \ ^  
PreviousNextContentsIndex