Janus commands: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!-- Janus commands -->
<!-- Janus commands -->
==Overview==
The Janus command set (simply referred to as "Janus commands")
The Janus command set (simply referred to as "Janus commands")
consists of commands and subcommands that
consists of commands and subcommands that
Line 6: Line 6:
The two Janus commands currently supported as of <var class="product">Sirius Mods</var> version 6.3
The two Janus commands currently supported as of <var class="product">Sirius Mods</var> version 6.3
are '''JANUS''' and '''JANUSDEBUG'''.
are '''JANUS''' and '''JANUSDEBUG'''.
For a full description of the Janus commands, see the
[[Janus TCP/IP Base Reference Manual]].
The manual you are reading describes the
commands
and $functions
that are specific to &TTHISP..
   
   
You use Janus commands to:
You use Janus commands to:
Line 35: Line 29:
Janus commands require the executing user to have System Manager
Janus commands require the executing user to have System Manager
privileges.
privileges.
The <var>JANUSDEBUG</var> command, which can be issued by any logged-in user,
The <var>[[JANUSDEBUG command|JANUSDEBUG]]</var> command, which can be issued by any logged-in user,
is an exception.
is an exception.
Janus commands can also be issued as operator
Janus commands can also be issued as operator
Line 69: Line 63:
<p class="code"> JANUS START *"?
<p class="code"> JANUS START *"?
</p>
</p>
==List of Janus commands==
The principal command of the Janus command set is the <var>JANUS</var> command, which
consists of a set of mutually exclusive subcommands. To execute a subcommand, you
specify it with the prefix <code>JANUS</code>: for example, <code>JANUS DEFINE</code>, <code>JANUS STATUS</code>.
The following list shows the JANUS subcommands with a brief description of what they
do.
<div class="showVisit">
<table class="syntaxTable">
<tr><th>[[JANUS ADDCA|ADDCA]]</th><td>Adds a trusted certifying authority's certificate to a port.</td></tr>
<tr><th>[[JANUS CHARSET|CHARSET]]</th><td>Specifies the default character set.</td></tr>
<tr><th>[[JANUS CLSOCK|CLSOCK]]</th><td>Specifies rules to allow a User Language program to access a CLSOCK port.</td></tr>
<tr><th>[[JANUS CONFIGURATION|CONFIGURATION]]</th><td>Displays global configuration values.</td></tr>
<tr><th>[[JANUS DEFINE|DEFINE]]</th><td>Defines a Janus port.</td></tr>
<tr><th>[[JANUS DEFINEIPGROUP|DEFINEIPGROUP]]</th><td>Defines a grouping of IP addresses for web access control.</td></tr>
<tr><th>[[JANUS DEFINEREMOTE|DEFINEREMOTE]]</th><td>Defines a remote server for Janus Open Client, and associates it with a Janus OPENSERV or SDS port.</td></tr>
<tr><th>[[JANUS DEFINEUSGROUP|DEFINEUSGROUP]]</th><td>Defines a grouping of user IDs for web access control.</td></tr>
<tr><th>[[JANUS DELCA|DELCA]]</th><td>Deletes a trusted certifying authority's certificate from a port.</td></tr>
<tr><th>[[JANUS DELETE|DELETE]]</th><td>Deletes a port definition.</td></tr>
<tr><th>[[JANUS DELETEIPGROUP|DELETEIPGROUP]]</th><td>Deletes a grouping of IP addresses.</td></tr>
<tr><th>[[JANUS DELETEREMOTE|DELETEREMOTE]]</th><td>Deletes an association between a remote server and a Janus OPENSERV or SDS port.</td></tr>
<tr><th>[[JANUS DELETEUSGROUP|DELETEUSGROUP]]</th><td>Deletes a grouping of user IDs.</td></tr>
<tr><th>[[JANUS DISPLAY|DISPLAY]]</th><td>Displays Janus port definitions.</td></tr>
<tr><th>[[JANUS DISPLAYCA|DISPLAYCA]]</th><td>Displays the contents of a trusted certifying authority's certificate.</td></tr>
<tr><th>[[JANUS DISPLAYREMOTE|DISPLAYREMOTE]]</th><td>Displays remoter server definitions.</td></tr>
<tr><th>[[JANUS DISPLAYSOCK|DISPLAYSOCK]]</th><td>Displays CLSOCK and SRVSOCK port rules.</td></tr>
<tr><th>[[JANUS DISPLAYTRACE|DISPLAYTRACE]]</th><td>Displays the TRACE settings for a named port.</td></tr>
<tr><th>[[JANUS DISPLAYWEB|DISPLAYWEB]]</th><td>Displays WEBSERV port rules.</td></tr>
<tr><th>[[JANUS DISPLAYXT|DISPLAYXT]]</th><td>Displays translate table definitions.</td></tr>
<tr><th>[[JANUS DOMAIN|DOMAIN]]</th><td>Specifies the domain; used with IBM TCP/IP to resolve unqualified host names.</td></tr>
<tr><th>[[JANUS DRAIN|DRAIN]]</th><td>Prevents new connections to port and stops port when last connection is closed.</td></tr>
<tr><th>[[JANUS FORCE|FORCE]]</th><td>Breaks all connections to port and stops port when last connection is closed.</td></tr>
<tr><th>[[JANUS FTP|FTP]]</th><td>Specifies Janus FTP Server processing rules.</td></tr>
<tr><th>[[JANUS LANGUAGE|LANGUAGE]]</th><td>Specifies default Janus Open Server language.</td></tr>
<tr><th>[[JANUS LIMITS|LIMITS]]</th><td>Displays the Janus connection limits for an Online.</td></tr>
<tr><th>[[JANUS LOADXT|LOADXT]]</th><td>Loads or reloads a translate table and, optionally, an entity translate table.</td></tr>
<tr><th>[[JANUS NAMESERVER|NAMESERVER]]</th><td>Specifies IP address and port number of the domain name server used with Janus Sockets CLSOCK applications and Janus Open Client applications; only used with the IBM TCP/IP interfaces.</td></tr>
<tr><th>[[JANUS RELOAD|RELOAD]]</th><td>Reloads the Model 204-to-SQL mappings from the JANCAT file for a Janus Specialty Data Store port.</td></tr>
<tr><th>[[JANUS SRVSOCK|SRVSOCK]]</th><td>Specifies rules that determine which SRVSOCK connections to allow.</td></tr>
<tr><th>[[JANUS SSLSTATUS|SSLSTATUS]]</th><td>Displays SSL (Secure Sockets Layer) statistics for SSL ports.</td></tr>
<tr><th>[[JANUS START|START]]</th><td>Makes a port available for connections.</td></tr>
<tr><th>[[JANUS STAT or STATUS|STATUS]]</th><td>Displays port status.</td></tr>
<tr><th>[[JANUS STATCA or STATUSCA|STATUSCA]]</th><td>Displays the status of a trusted certifying authority's certificate.</td></tr>
<tr><th>[[JANUS STATUSREMOTE|STATUSREMOTE]]</th><td>Displays status of remote servers.</td></tr>
<tr><th>[[JANUS TCPLOG|TCPLOG]]</th><td>Stores all input and output streams to and from a port.</td></tr>
<tr><th>[[JANUS TRACE|TRACE]]</th><td>Changes trace settings for a port or for specific IP addresses connected to a port.</td></tr>
<tr><th>[[JANUS TSTAT or TSTATUS|TSTATUS]]</th><td>Displays thread utilization statistics.</td></tr>
<tr><th>[[JANUS WEB|WEB]]</th><td>Specifies Janus Web Server processing rules.  The kinds of rules specified are determined by the web rule "type" as shown below.
<table class="syntaxTable">
<tr><th>[[JANUS WEB NOREDIRECT|NOREDIRECT]]</th><td>indicates that any request for a URL that
matches the specified pattern (the url value) is not to be directed to another URL.</td></tr>
<tr><th>[[JANUS WEB REDIRECT|REDIRECT]]</th><td>identifies the URL to which incoming URL
requests that match a specified pattern are redirected.</td></tr>
<tr><th>[[JANUS WEB DISALLOW|DISALLOW]]</th><td>indicates that any request for a URL that
matches a specified pattern (the url value) is not allowed access; that is, it is forbidden.</td></tr>
<tr><th>[[JANUS WEB ALLOW|ALLOW]]</th><td>indicates that a request from a particular user or
set of users can have access to any URL that matches a specified pattern (the url
value).</td></tr>
<tr><th>[[JANUS WEB TYPE|TYPE]]</th><td>indicates the mime type of the output produced by
the specified URL (url value).</td></tr>
<tr><th>[[JANUS WEB NODEBUG|NODEBUG]]</th><td>disallow debugging for the specified URL</td></tr>
<tr><th>[[JANUS WEB DEBUG|DEBUG]]</th><td>indicates that requests for a specified URL (the url value) are to be debugged,</td></tr>
<tr><th>[[JANUS WEB ON|ON]]</th><td>indicates the action to be taken when a request for a specified URL (the url value), which is not redirected, is determined to be allowed access.</td></tr>
<tr><th>[[JANUS WEB SCREEN|SCREEN]]</th><td>sets parameters that control the mapping of 3270
screens to HTML, for ''[[Janus Web Legacy Support]]'', for example.</td></tr>
</table>
</td></tr>
<tr><th colspan="2">The JANUSDEBUG command is not a subcommand of JANUS, but stands on its own.</th></tr>
<tr><th>[[JANUSDEBUG]]</th><td>JANUSDEBUG works in conjunction with JANUS WEB DEBUG rules to assist in debugging Janus applications.</td></tr>
</table>
</div>
[[Category:Janus commands]]
[[Category:Commands]]

Revision as of 16:58, 1 July 2011


The Janus command set (simply referred to as "Janus commands") consists of commands and subcommands that begin with the string JAN. The two Janus commands currently supported as of Sirius Mods version 6.3 are JANUS and JANUSDEBUG.

You use Janus commands to:

  • Define Model 204 as a server on the TCP/IP network. Janus commands set port numbers for your Janus server applications and start, stop, and monitor Janus activity in the Model 204 address space.
  • Define remote servers to the Model 204 client for access by Janus Open Client applications and Janus Sockets client applications, and define which remote hosts can establish connections with Janus Specialty Data Store, Janus Open Server, and Janus Sockets.
  • Add security to Janus ports using Secure Sockets Layer (SSL) or Transport Layer Security (TLS) to provide encrypted communications.
  • Define server rules (like redirection or security filtering for specific data types, users, or TCP/IP addresses) for Janus Web Server and Janus Sockets applications.
  • Perform interactive, terminal-based debugging of Janus Web Server applications (using the JANUSDEBUG command).

Janus commands require the executing user to have System Manager privileges. The JANUSDEBUG command, which can be issued by any logged-in user, is an exception. Janus commands can also be issued as operator commands (on the Online virtual console under VM) or as replies to the HALT message under OS/390.

Janus commands make use of the following wildcard characters:

* An asterisk represents any string of characters.
? A question mark represents any character.
" A double quote escapes wildcard translation of the special character that follows it.

For example, the following command starts all Janus ports whose names begin with the string BA (like BART, BARNEY, BALES, BAY):

JANUS START BA*

The following command drains all Janus ports whose names are three characters long, beginning with BA (BAY, BAD, BAX, etc.):

JANUS DRAIN BA?

The following command starts all Janus ports whose names end in ? (WHODONEIT?, WHERES_THE_BEEF?, WHAT?_ME_WORRY?, WHO_YA_GONNA_CALL?, etc.):

JANUS START *"?

List of Janus commands

The principal command of the Janus command set is the JANUS command, which consists of a set of mutually exclusive subcommands. To execute a subcommand, you specify it with the prefix JANUS: for example, JANUS DEFINE, JANUS STATUS.

The following list shows the JANUS subcommands with a brief description of what they do.

ADDCAAdds a trusted certifying authority's certificate to a port.
CHARSETSpecifies the default character set.
CLSOCKSpecifies rules to allow a User Language program to access a CLSOCK port.
CONFIGURATIONDisplays global configuration values.
DEFINEDefines a Janus port.
DEFINEIPGROUPDefines a grouping of IP addresses for web access control.
DEFINEREMOTEDefines a remote server for Janus Open Client, and associates it with a Janus OPENSERV or SDS port.
DEFINEUSGROUPDefines a grouping of user IDs for web access control.
DELCADeletes a trusted certifying authority's certificate from a port.
DELETEDeletes a port definition.
DELETEIPGROUPDeletes a grouping of IP addresses.
DELETEREMOTEDeletes an association between a remote server and a Janus OPENSERV or SDS port.
DELETEUSGROUPDeletes a grouping of user IDs.
DISPLAYDisplays Janus port definitions.
DISPLAYCADisplays the contents of a trusted certifying authority's certificate.
DISPLAYREMOTEDisplays remoter server definitions.
DISPLAYSOCKDisplays CLSOCK and SRVSOCK port rules.
DISPLAYTRACEDisplays the TRACE settings for a named port.
DISPLAYWEBDisplays WEBSERV port rules.
DISPLAYXTDisplays translate table definitions.
DOMAINSpecifies the domain; used with IBM TCP/IP to resolve unqualified host names.
DRAINPrevents new connections to port and stops port when last connection is closed.
FORCEBreaks all connections to port and stops port when last connection is closed.
FTPSpecifies Janus FTP Server processing rules.
LANGUAGESpecifies default Janus Open Server language.
LIMITSDisplays the Janus connection limits for an Online.
LOADXTLoads or reloads a translate table and, optionally, an entity translate table.
NAMESERVERSpecifies IP address and port number of the domain name server used with Janus Sockets CLSOCK applications and Janus Open Client applications; only used with the IBM TCP/IP interfaces.
RELOADReloads the Model 204-to-SQL mappings from the JANCAT file for a Janus Specialty Data Store port.
SRVSOCKSpecifies rules that determine which SRVSOCK connections to allow.
SSLSTATUSDisplays SSL (Secure Sockets Layer) statistics for SSL ports.
STARTMakes a port available for connections.
STATUSDisplays port status.
STATUSCADisplays the status of a trusted certifying authority's certificate.
STATUSREMOTEDisplays status of remote servers.
TCPLOGStores all input and output streams to and from a port.
TRACEChanges trace settings for a port or for specific IP addresses connected to a port.
TSTATUSDisplays thread utilization statistics.
WEBSpecifies Janus Web Server processing rules. The kinds of rules specified are determined by the web rule "type" as shown below.
NOREDIRECTindicates that any request for a URL that matches the specified pattern (the url value) is not to be directed to another URL.
REDIRECTidentifies the URL to which incoming URL requests that match a specified pattern are redirected.
DISALLOWindicates that any request for a URL that matches a specified pattern (the url value) is not allowed access; that is, it is forbidden.
ALLOWindicates that a request from a particular user or

set of users can have access to any URL that matches a specified pattern (the url

value).
TYPEindicates the mime type of the output produced by the specified URL (url value).
NODEBUGdisallow debugging for the specified URL
DEBUGindicates that requests for a specified URL (the url value) are to be debugged,
ONindicates the action to be taken when a request for a specified URL (the url value), which is not redirected, is determined to be allowed access.
SCREENsets parameters that control the mapping of 3270 screens to HTML, for Janus Web Legacy Support, for example.
The JANUSDEBUG command is not a subcommand of JANUS, but stands on its own.
JANUSDEBUGJANUSDEBUG works in conjunction with JANUS WEB DEBUG rules to assist in debugging Janus applications.