The OpenVMS Frequently Asked Questions(FAQ)
Chapter 12
Miscellaneous Information
12.1 Where can I find information on escape and control sequences?
Information on escape and control sequences can be found in the
OpenVMS I/O User's Reference Manual, in the chapter on the
terminal driver. The chapter also includes details on the general
format and content of these sequences.
Specific details on the escape and control sequences supported by a
particular serial device are typically found in the documentation
provided with the specific device. Information on the sequences
supported by DECwindows DECterm terminal emulator are included in the
DECwindows documentation.
Examples of common escape and control sequences---those typically used
by the OpenVMS screen management package---can be found in the OpenVMS
system file SYS$SYSTEM:SMGTERMS.TXT.
The following refers to the function keys on the LK-series keyboards
found on the VT-series terminals such as the VT220 and VT510, and the
LK-series keyboards found on the OpenVMS workstations, and the
keyboards found on compatible terminals. (Though note that the keyboard
itself does not generate the sequence, the terminal or
terminal emulator generates the sequence in response to user input.) In
the following, {CSI} is decimal code 155 and can be replaced by the
sequence "{ESC}[" (without the quotes) particularly for seven-bit
operations, SS3 is decimal code 143 and can be replaced by "{ESC}O"
particularly for seven-bit operations. Older VT1xx series terminals and
any other terminals operating with seven-bit characters should not be
sent eight-bit operators such as {CSI} and {SS3}.
PF1={SS3}P PF2={SS3}Q PF3={SS3}R PF4={SS3}S
KP0={SS3}p KP1={SS3}q KP2={SS3}r KP3={SS3}s KP4={SS3}t KP5={SS3}u
KP6={SS3}v KP7={SS3}w KP8={SS3}x KP9={SS3}y KPCOMMA={SS3}l KPMINUS={SS3}m
KPPERIOD={SS3}n ENTER={SS3}M DNARROW={CSI}B UPARROW={CSI}A LFARROW={CSI}D
RTARROW={CSI}C FIND={CSI}1~ INSERT={CSI}2~ REMOVE={CSI}3~ SELECT={CSI}4~
PREV={CSI}5~ NEXT={CSI}6~ F6={CSI}17~ F7={CSI}18~ F8={CSI}19~ F9={CSI}20~
F10={CSI}21~ F11={CSI}23~ F12={CSI}24~ F13={CSI}25~ F14={CSI}26~
HELP={CSI}28~ DO={CSI}29~ F17={CSI}31~ F18={CSI}32~ F19={CSI}33~ F20={CSI}34~
|
An example of working with escape sequences (in DCL) follows:
$ esc5m = "*[5m"
$ esc5m[0,8] = 27
$ esc0m = "*[0m"
$ esc0m[0,8] = 27
$ write sys$output esc5m + "blinking text" + esc0m
|
Documentation on an ANSI terminal relatively similar to the VT525
series is available at:
Also see the various documentation and manuals available at:
Information on the ReGIS graphics character set is available at:
Also:
Also see Section 11.6, Section 8.11.
12.2 Does DECprint (DCPS) work with the LRA0 parallel port?
The parallel printing port LRA0: found on many OpenVMS Alpha systems is
capable of some bidirectional communications, with enough for basic
operations with most parallel printers.
DECprint (DCPS) requires more than just the simple handshaking provided
by the LRA0: port, therefore DCPS does not work with the LRA0: port.
12.3 How do I check for free space on a (BACKUP) tape?
You cannot know for certain, though you can certainly estimate the
remaining capacity.
Tape media is different than disk media, as disks have a known and
pre-determined fixed capacity. Modern disks also appear logically
perfect, based on bad block revectoring support and the extra blocks
hidden within the disk structure for these bad block replacements.
The capacity of tape media is not nearly as pre-determined, and the
capacity can vary across different tape media (slightly different media
lengths or different foil markers or other variations, for instance)
and even on the same media over time (as bad spots in the media arise).
Tapes can vary the amount of recording media required, depending on the
remaining length of the tape, the numbers of correctable and
uncorrectable media errors that might occur, the numbers and sizes of
the inter-record gaps and related tape structure overhead, the
particular media error recovery chosen, the tape density, the
efficiently of any data compression in use, and the storage overhead
required by BACKUP, tar, and other similar commands.
BACKUP using with the default settings results in approximately 15%
overhead, in terms of saveset size. (eg: Assuming a 500 KB input, the
total size would be 575 KB.)
Assuming no compression:
4 GB media / 575 KB saveset = 7294 savesets
Assuming 1:2 compression:
8 GB media / 575 KB saveset = 14588 savesets
Note
There are no inter-record gaps on DAT tapes. When determining media
capacity, you have to consider these gaps with nine-track magtape media
and other formats with gaps. This is not the case with DAT (DDS), as
the format has no recording gaps. However, the block structure
underneath the variable length record recording is based on a block
size of circa 124 KB. Further, writing doubles filemarks and such can
cause a loss of up to the underlying block size. Thus even though there
are no inter-record gaps on DAT, larger savesets are still usually
best.
|
The compression algorithms used on various devices are generally not
documented---further, there is no way to calculate the effective data
compression ratio, the tape mark overhead, and similar given just the
data to be stored on tape---short of actually trying it, of course.
A typical compression ratio found with "everyday" data is somewhere
around 1:1.8 to 1:2.
Note
OpenVMS often uses the term COMPACTION for compression control, as in
the qualifier /MEDIA_FORMAT=COMPACTION.
|
12.4 So what happened to sys$cmsuper?
There is no SYS$CMSUPR service.
The typical wisdom for getting into supervisor access mode (from user
mode) is to execute a routine in executive mode (via a call to
SYS$CMEXEC and the appropriate privilege) and then issue a SYS$DCLAST
with the ASTADR parameter pointing to your routine entry point and the
ACMODE parameter specified as PSL$C_SUPER.
Alternatively, you can reset mode in the call stack return path and
unwind from executive or kernel out into supervisor mode.
12.5 Correctly using license PAKs and LMF?
If you have multiple LMF$LICENSE.LDB databases in your OpenVMS Cluster,
then each and every PAK must be installed in each and every license
database present in an OpenVMS Cluster. Even if you use /EXCLUDE or
/INCLUDE, you need to have a consistent set of PAKs registered across
all licensing databases present in the OpenVMS Cluster.
If your software license permits it, you can use the following two
commands to transfer license PAKs:
$ LICENSE COPY...
$ LICENSE ISSUE/PROCEDURE/OUTPUT=file product,...
|
To display the particular license(s) required (such as when you receive
a NOLICENSE error), use the following DCL sequence:
$ SET PROCESS/PRIVILEGE=ALL
$ REPLY/ENABLE
$ DEFINE/SYSTEM/EXECUTIVE LMF$DISPLAY_OPCOM_MESSAGE
|
This logical name will cause all license failures to generate OPCOM
messages, and this will hopefully show which license(s) you need---
there may well also be additional license failures displayed, as
various products can check for and can be enabled by multiple license
PAKs. You will want to deassign this logical name when done.
Some of the more common license PAKs:
DECnet Phase IV: DVNETRTG, DVNETEND, DVNETEXT, or NET-APP-SUP*
DECnet-Plus: DVNETRTG, DVNETEND, DVNETEXT, or NET-APP-SUP*
TCP/IP Services: UCX, or NET-APP-SUP*
OpenVMS Alpha: OPENVMS-ALPHA and OPENVMS-ALPHA-USER
OpenVMS VAX: VAX-VMS
OpenVMS Galaxy: OPENVMS-GALAXY
Cluster (Alpha): VMSCLUSTER, NET-APP-SUP*
Cluster (VAX): VAXCLUSTER, NET-APP-SUP*
|
Various NET-APP-SUP (NAS) license packages are available, each with
differing collections of products authorized. See the various NAS
Software Product Description (SPD) documents for specific details.
To determine which license PAK is failing (via a license check failure
OPCOM message), use the command:
$ DEFINE/SYSTEM/EXECUTIVE LMF$DISPLAY_OPCOM_MESSAGE TRUE
|
Realize that defining this logical name will cause license checks that
are otherwise hidden (unimplemented, latent, or part of a check for any
of a series of licenses) to become visible. In other words, expect to
see some spurious license check calls when you define this.
For information on PAKGEN and on generating license PAKs, please see
Section 10.10. For information on obtaining commercial and hobbyist
licenses, and for additional adminstrative information on LMF, please
see Section 2.8.4 and Section 2.8.1.
Chapter 13
Finding and using Software
13.1 Where can I find freeware/shareware/software for OpenVMS?
- Details on many commercial OpenVMS products are available in the
catalog located at:
- An OpenVMS Freeware CD-ROM is distributed with OpenVMS, and is also
available separately (QA-6KZAA-H8). The contents of the OpenVMS
Freeware CD-ROM media are also available online at:
and at various other sites. The website also includes various
updates and new packages that become available after the CD-ROM
distributions are created.
Submissions to the OpenVMS Freeware can
be made via:
To acquire the OpenVMS Freeware CD-ROM distribution, you can order
an OpenVMS distribution from HP (the Freeware is included)(see the
OpenVMS SPD for part numbers), or you can specifically order a Freeware
distribution from HP under part number:
The Freeware CD-ROM set contains a large assortment of freeware,
and is a good starting point if looking for utilities. Many of the
packages listed below are also on the Freeware CD. Some of the most
oft-requested OpenVMS tools on the Freeware CD include ZIP and UNZIP
and GZIP (please see SOFT14), MMK (make), PINE, PERL, TAR, UUENCODE and
UUDECODE. Many other tools are available on the Freeware.
- The UUENCODE and UUDECODE tools and various other tools are also
available
as part of TCP/IP Services package. (Use the DCL command procedure
SYS$STARTUP:TCPIP$DEFINE_COMMANDS.COM available on V5.0 and later to
set up the necessary DCL foreign command symbols used for these and for
various other tools provided by TCP/IP Services.)
- OpenVMS software (formerly at Western Kentucky University (WKU)
is now available via Madgoat
and via Process Software
archives:
- The FILESERV packages are also available via anonymous FTP from:
-
ftp://ftp.process.com/vms-freeware/
- ftp.process.com, under [.WKU.VMS.FILESERV].
- ftp.vms.stacken.kth.se, under [.MIRRORS.WKU.VMS.FILESERV].
- ftp.ctrl-c.liu.se, under [.WKU.VMS.FILESERV].
- ftp.riken.go.jp
- ftp.vsm.com.au, under kits and kits/decwindows.
- ftp.vsm.com.au, via the WWW instead of FTP.
The packages are also available via e-mail from
FILESERV@PROCESS.COM.
Send the commands HELP and DIR ALL in the body of a mail message to
this email address for further information on retrieving the files.
- Arne Vajhøj
operates an OpenVMS website, with software and other pointers, at:
- Jouk
maintains a summary of various public-domain and open-source software
ports, and specifically ports of packages for use on OpenVMS, at:
- The Kermit
file transfer package is available at:
- ZMODEM
is available at:
See the FILES file in that directory for further details. Note that
this freeware version of ZMODEM will interoperate only with ZMODEM
software that is licensed from Omen Technology. (This package is also
available on various of the Freeware distributions.)
- A good source of software for OpenVMS systems and for various other
platforms is the Encompass (formerly known as DECUS) library. Online
catalogs are available as well as some software via
- DECUS SIG Tape collections are available on Mark Berryman's system,
- David Jones's DECthreads-based HTTP_SERVER World-Wide Web server
for OpenVMS, often known as the OSU webserver:
- Secure Shell (SSH)
Server for OpenVMS:
Secure Shell (SSH) FISH
Client for OpenVMS:
SSH V2 support is included with TCP/IP Services V5.4 and later, and
support is likely also available within available third-party IP
stacks.
For information on the SSH key file configuration, see
topic 151.22 and following in the VMS notes conference on the Deathrow
Cluster (deathrow.vistech.net and openvms-rocks.com).
Information
on OpenSSL (SSLeay)
for OpenVMS:
Information on OpenSSL (SSLeay) and OSU Web server interoperation:
OpenSSL is included with OpenVMS V7.3-1 and later.
- DECwindows Motif V1.2-3 includes NCSA
Mosaic 2.4 built for TCP/IP Services (UCX). V1.2-4 includes Spyglass
Enhanced Mosaic, which supports many of the Netscape enhancements.
Versions of the Netscape Navigator and particularly the Mozilla Web
Browser are also available for OpenVMS. The Compaq Secure Web Browser
(CSWB) kit is a packaged version of the Mozilla.org Mozilla Web Browser.
- A port of the NCSA Mosaic web browser that supports TCP/IP
Services, Multinet and SOCKETSHR/NETLIB is available from:
Versions of the Mosaic web browser are also available on the
Freeware.
- Lynx (a character-cell World-Wide-Web web browser) is available from
Versions of Lynx, a character-cell web browser, are also available
on the OpenVMS Freeware.
- The Netscape Navigator and Mozilla web browsers are available at:
- PGP (Phil Zimmerman's "Pretty Good Privacy") is available
from various
distribution sites, including those listed in the PGP FAQ. Information
on PGP and on OpenVMS downloads of PGP is available. Relevant URLs
include:
- GNU Privacy Guard (GPG, GnuPG)
is available.
Search the comp.os.vms newsgroup archives for
information regarding GnuPG; the source code, binaries for various
platforms, and documentation are all available at:
The OpenVMS source code and OpenVMS Alpha images can be found at:
As of this writing, the port only runs on OpenVMS Alpha, but an
investigation of an OpenVMS VAX port is reportedly under consideration.
- An archive of the CENA DECwindows, X Windows, and VMS software
packages can be found at the following sites:
Other FTP mirror sites for the DECwindows archive include:
- axp.psl.ku.dk (Multinet)
- ftp2.cnam.fr (MadGoat)
ftp.x.org (in /contrib/vms) is effectively not a mirror, but it
does have various OpenVMS packages from the DECwindows archive.
A
list of the http mirror sites for the DECwindows archive is available
at:
Various of these packages are also available on the Freeware.
- ImageMagick
is an X11 package for display and interactive manipulation of images.
The package includes tools for image conversion, annotation,
compositing, animation, and creating montages. ImageMagick can read and
write many of the more popular image formats (e.g. JPEG, TIFF, PNM,
XPM, Photo CD, etc.).
Versions of ImageMagick are also included on the Freeware.
- XV is a image viewing and editing tool and is available from:
- Many software packages are available for displaying various bitmap
files (.JPG, .GIF, .BMP, etc) on OpenVMS. Xloadimage, Xli, Xv,
ImageMagick are the most common tools used under OpenVMS. Various web
browsers such as Mozilla (qv) can also display various file formats on
OpenVMS. You can find some of these tools at the DECwindows Archive:
- GHOSTSCRIPT (gs) and GHOSTVIEW (gv) are available from the Freeware
V5.0 and Freeware V6.0 distributions:
Versions are also available on the Freeware.
Also see:
- XPDF, a DECwindows viewer for PDF (Adobe Acrobat) files, is
available from:
Software and installation kits for XPDF are also available on the
Freeware.
Beware: the XPDF tool included on OpenVMS Freeware V4.0
is dated, and has been found to have various bugs. Use the Freeware
V5.0 version of the XPDF kit, or (better) later.
A Java-based PDF
viewer is available from Adobe, and is known to operate on recent
OpenVMS Alpha releases:
- Various OpenVMS-related tools---both freeware and shareware---such
as txt2pdf---are available from at:
- The MPEG library version 1.1 is available for OpenVMS VAX and Alpha
at
Various MPEG players and related tools are available on the
Freeware.
- An Archie clone is available at INFO.CS.PUB.RO. Telnet to that
machine,
and login as VMSARCI. It contains now listings for over 30 ftp servers
with over 14 gigabytes of OpenVMS software.
The most useful
commands are LIST, which generates a list of scanned ftp servers, and
FIND string, whichs looks for a file containing "string" in the name;
the search modes are only "substring" [default] and "exact", and regex
search is not supported (so FIND EMACS will work, but FIND *EMACS* or
FIND *EMACS*.* will not). The search is case-insensitive.
The
maintainer of the site (stfp@roipb.cs.ipb.ro) requests that anyone
submit notifications of FTP servers with OpenvMS software that are not
listed on the site.
- The Levitte (extended :-) Family (and OpenVMS) website:
- Robert Alan Byer's OpenVMS Hobbyist Systems, including OpenVMS
public domain software and various ports:
- CalTech Software Archives:
- DJE Systems Website (David J. Dachtera)
- Web Servers:
Apache Web server (HP Secure Web Server (SWS,
formerly CSWS)):
The SOAP Toolkit is available at the OpenVMS website.
OSU Web server
WASD Web server
Purveyor Web server:
- email list: listserv@cjis.ci.lincoln.ne.us, no subject, one line
message: SUBSCRIBE PURVEYOR
FastCGI software is available from:
- CD-R (CD-Recordable) media tools are available, please see
Section 9.7.
- Grace (WYSIWYG 2D plotting tool)
- The POV-Ray ("Persistance of Vision" Raytracer) ray-tracing graphics
package is available on the OpenVMS Freeware.
- Majordomo mailing list handler:
- PINE (OpenVMS tools for sending and receiving MIME mail):
A MIME tool is available in OpenVMS V7.2 and later.
Also see
the mmencode base64 encode and decode available at:
- Menufinder (menu-driven system management environment):
- SYSLOGCLIENT (a client for processing SYSLOG requests) has
been provided for download by Mark Hemker at:
- tcgmsg, pvm, mpi, linda:
- OpenVMS software that can control a Tripp-Lite Uninterruptable Power
Supply (UPS) is available from:
UPShot web-based software for controlling a UPS is available from:
OpenVMS software for controlling Liebert UPS devices are available
from the Liebert website:
- Examples of using the OpenVMS Foreign MAIL interface are available
at:
- For tools to manage or to search your OpenVMS MAIL file, see:
- AscToHTM attempts to convert any plain text file to HTML, while
AscToTab restricts itself to files that are plain text tables.
(Versions are also availabe on the OpenVMS Freeware).
- Information on the SAMBA package, a package that provides
SMB-based Microsoft Windows PC disk and print services for OpenVMS, is
available at:
To subscribe to the SAMBA-VMS mailing list e-mail
listproc@samba.org with no subject line and the following single line
of text: