Lansa Axes User Guide

Embed Size (px)

Citation preview

  • 8/10/2019 Lansa Axes User Guide

    1/51

    Documentation Library

    User Guide

    Eighth Edition (July 2009) This edition applies to Version 1, Release 3, Modification 4of aXes, Version 5, Release 2, Modification 0 of OS/400,

    and all subsequent releases until otherwise indicated innew editions.

    Notices The licensed product described in this document and alllicensed material available for it, are provided by LANSAunder the terms of the LANSA License Agreement.

    The information supplied in this document could includetechnical inaccuracies or typographical errors. Correctionswill be incorporated in new editions of this document.

    Some of the material contained in this User Guide isderived from documentation provided by IBM Corporation.

    Trademarks Marks andService Marks

    LANSA, aXes, aXesW3, aXesTS, aXesWS, aXesDE andassociated logotypes are registered trademarks ortrademarks of LANSA.

    Other company, product, or service names may also betrademarks or service marks, and are the property oftheir respective owners.

  • 8/10/2019 Lansa Axes User Guide

    2/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 2 of 51

    2 of 51

    Contents

    Welcome to aXes for OS/400.................................................................................................................. 5

    Road Map ............................................................................................................................................ 5

    About aXes .......................................................................................................................................... 6

    About aXes Terminal Server ............................................................................................................... 6

    About aXes Application Server ............................................................................................................ 6

    About aXes Spool File Server ............................................................................................................. 7

    About aXes Data Explorer Server ....................................................................................................... 7

    Section 1 - Understanding aXes licensing .............................................................................................. 8

    Section 2 - Understanding FastCGI ...................................................................................................... 10 Section 3 - Managing aXes servers ...................................................................................................... 12

    Defining aXes Server Instances ........................................................................................................ 12

    Defining aXes Terminal Server as an internal server for aXes Application Server ....................... 12

    Defining aXes Terminal Server as an external server ................................................................... 12

    Defining aXes Data Explorer Server as an internal server for aXes Application Server ............... 13

    Defining aXes Data Explorer Server as an external server ........................................................... 13

    Defining aXes Spool File Server as an internal server for aXes Application Server ..................... 14

    Defining aXes Spool File Server as an external server ................................................................. 14

    Displaying aXes Server Instances ..................................................................................................... 14 Starting aXes Servers ........................................................................................................................ 15

    Stopping aXes Servers ...................................................................................................................... 15

    Automatically Starting aXes Servers when the System Starts .......................................................... 15

    Working with aXes Server Instances ................................................................................................. 16

    Section 4 - Managing aXes security ..................................................................................................... 17

    aXes Application Server Security ...................................................................................................... 17

    aXes Data Explorer Server Security .................................................................................................. 17

    aXes Spool File Server Security ........................................................................................................ 17

    aXes Terminal Server Security .......................................................................................................... 17 Basic authentication scheme ......................................................................................................... 17

    aXes Access Control Lists ............................................................................................................. 18

    Default aXes Access Control Lists ................................................................................................. 18

    aXes Access Control List commands ............................................................................................ 18

    Creating aXes Access Control Lists .............................................................................................. 18

    Deleting aXes Access Control Lists ............................................................................................... 19

    Section 5 - Managing aXes users ......................................................................................................... 20

    User commands ................................................................................................................................ 20

    Adding users to an aXes Access Control List ................................................................................... 20 Changing user passwords ................................................................................................................. 20

  • 8/10/2019 Lansa Axes User Guide

    3/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 3 of 51

    3 of 51

    Removing users from an aXes Access Control List .......................................................................... 21

    Working with aXes users ................................................................................................................... 21

    Section 6 - Understanding authorities and permissions ....................................................................... 22

    User Profiles ...................................................................................................................................... 22

    Adopted authority and system-state .............................................................................................. 22 Exclude authority ........................................................................................................................... 25

    Unix-style Permissions ...................................................................................................................... 25

    Overview ........................................................................................................................................ 25

    Users and access .......................................................................................................................... 26

    Files and permissions .................................................................................................................... 26

    Directories and permissions .......................................................................................................... 26

    How permissions are calculated .................................................................................................... 26

    How permissions are granted ........................................................................................................ 27

    Where to find more information ..................................................................................................... 27 aXes Application Server .................................................................................................................... 27

    aXes Data Explorer Server ................................................................................................................ 27

    aXes Spool File Server ...................................................................................................................... 28

    aXes Terminal Server ........................................................................................................................ 28

    aXes Gateway Interface................................................................................................................. 28

    Common Gateway Interface .......................................................................................................... 28

    FastCGI Servers ................................................................................................................................ 28

    Section 7 - Managing backup and recovery .......................................................................................... 29

    About backing up aXes for OS/400 ................................................................................................... 29 Backup tips .................................................................................................................................... 29

    Libraries and directories for aXes for OS/400 ............................................................................... 29

    Backing up aXes programs and product files ................................................................................ 30

    Backing up changed objects from aXes for OS/400 ...................................................................... 30

    Recovery of aXes for OS/400 ............................................................................................................ 31

    Recovering aXes libraries .............................................................................................................. 31

    Recovering aXes directories .......................................................................................................... 31

    Recovering changed objects to aXes for OS/400 .......................................................................... 31

    Section 8 - Using the Terminal Server .................................................................................................. 32 Starting the Terminal Session ........................................................................................................... 32

    Keyboard Mapping ............................................................................................................................ 34

    Automatic GUI Recognition ............................................................................................................... 35

    Cursor Focus ..................................................................................................................................... 35

    Disconnecting from the Host ............................................................................................................. 35

    Reconnecting to the Host .................................................................................................................. 36

    Browser Timeout ............................................................................................................................... 37

    Browser Limitations ........................................................................................................................... 37

    Connexions .................................................................................................................................... 37

    Responses ..................................................................................................................................... 37

  • 8/10/2019 Lansa Axes User Guide

    4/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 4 of 51

    4 of 51

    Input method editors ...................................................................................................................... 38

    Section 9 - Using the Spooler File session ........................................................................................... 39

    Starting the Spool File Session ......................................................................................................... 39

    Filtering Lists ..................................................................................................................................... 40

    Commands, Options, Attributes ........................................................................................................ 41 Converting Files ................................................................................................................................. 41

    Section 10 - Using the Data Explorer Server ........................................................................................ 43

    Starting the Data Explorer Session ................................................................................................... 43

    Filtering Lists ..................................................................................................................................... 44

    Select Wizard .................................................................................................................................... 44

    Advanced SQL .................................................................................................................................. 46

    Using Multi-member Files .................................................................................................................. 47

    Appendix A - Browser settings .............................................................................................................. 48

    General Settings ................................................................................................................................ 48 Cache control ................................................................................................................................. 48

    Advanced Settings ............................................................................................................................. 49

    Browsing ........................................................................................................................................ 49

    Use HTTP 1.1 protocol .................................................................................................................. 49

    Security .......................................................................................................................................... 50

    Proxy Servers .................................................................................................................................... 51

  • 8/10/2019 Lansa Axes User Guide

    5/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 5 of 51

    5 of 51

    Welcome to aXes for OS/400This section describes the aXes product. It explains how to use the product. It also includesa complete description of the Control Language commands and configuration directives, andprovides assistance with problem solving. For the latest information about aXes, refer to theLANSA web site.

    Road MapUse the following table to find the information you need to get started with aXes.

    If you want to Refer to

    Learn about system requirements for aXes aXes Quick Start

    Install aXes aXes Quick Start

    Apply maintenance to aXes aXes Quick Start

    Remove aXes aXes Quick Start

    Understand licensing Section 1. Understanding aXes Licensing

    Understand FastCGI Section 2. Understanding FastCGI

    Manage servers Section 3. Managing aXes Servers

    Manage security Section 4. Managing aXes Security

    Manage users Section 5. Managing aXes Users

    Learn about authorities Section 6. Understanding Authorities andPermissions

    Learn about recovery Section 7. Managing Backup and Recovery

    Use the Terminal Server Section 8. Using the Terminal Server

    Use the Spool File Server Section 9. Using the Spool File Server

    Use the Data Explorer Server Section 10. Using the Data Explorer Server

    Configure the Terminal Server aXes Reference

    Create keyboard maps aXes Reference

    Tune the Terminal Server aXes Reference

    Configure the Application Server aXes Reference

    Tune the Application Server aXes Reference

    Configure the Spool File Server aXes Reference

    Configure the Data Explorer Server aXes Reference

    Set up Secure Sockets Layer aXes Reference

    Learn about scenarios aXes Reference

  • 8/10/2019 Lansa Axes User Guide

    6/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 6 of 51

    6 of 51

    If you want to Refer to

    Solve problems aXes Reference

    Understand aXes commands aXes Reference

    For detailed information about using aXes, including installation, configuration and commandsyntax diagrams, see the aXes Quick Start and aXes Reference.

    About aXesaXes comprises an application server, a terminal server, a spool file server, a data explorerserver, and a set of tools that allow you to distribute existing AS/400 and iSeriesapplications via a TCP/IP network using a web browser. The application server component iscalled aXesW3, the terminal server component is called aXesTS, the spool file servercomponent is called aXesWS, and the data explorer server is called aXesDE. Multipleinstances of each server can be active at the same time. CL commands are provided tostart, stop and manage these servers.

    About aXes Terminal ServeraXes Terminal Server is an effective host access solution that is managed from a standardweb server. Offering all of the advanced features found in desktop-based solutions within abrowser-based interface. The aXes Terminal Server lowers your Total Cost of Ownership(TOC) for host access by exploiting the infrastructure of the Web and internet-basedprotocols. The aXes Terminal Server provides unprecedented control over host connectivitycombined with centralized configuration, licence management, and security.

    The aXes Terminal Server is an advanced host-based solution that provides access toenterprise applications via an industry standard Web browser interface in XML format overthe Web or company intranet. Using a browser, users simply access an URL eliminatingthe need to install software and user configurations on the individual desktops. Users accesstheir host-based applications in a variety of styles, with a click of the mouse via their webbrowser. The aXes Terminal Server uses open standards to ensure host access is quickly,efficiently, and securely managed between browser-based client and host applicationresulting in lower network traffic than native terminal protocols. You get reducedtelecommunication, administration, and client management costs with decreasedcomplexity.

    Terminal sessions created by the aXes Terminal Server can optionally access the full batchCPW capacity of your host system. These terminal sessions have the appearance andbehaviour of normal interactive jobs but they are not counted as interactive jobs by theinteractive CPW monitor. Terminal sessions created by the aXes Terminal Server areindependent of terminal sessions created by other mechanisms such as Telnet. Telnet andother emulator sessions continue to be counted against available interactive CPW.

    The ability to access the full batch CPW is enabled by the aXes Intersession configuration

    directive. See Section 1. Terminal Server Configuration in the aXes Reference for adetailed explanation of the syntax.

    About aXes Application ServeraXes Application Server is a fast, secure, non-blocking application server for the IBM AS/400and iSeries. Its features include:

    Speed Logging SSL support Authentication HTTP 1.1 support Multiple instances Embedded scripting Embedded database support

  • 8/10/2019 Lansa Axes User Guide

    7/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 7 of 51

    7 of 51

    Simple installation and configuration A l ight foot print; small memory utilization and low CPU consumption

    About aXes Spool File ServeraXes Spool File Server provides convenient, high speed access to OS/400 output queues andspooled file data using the HTTP protocol. It allows you to manage output queues andspooled files using your browser. Spooled content can be displayed in a variety of userselectable and defined formats:

    Automatically deliver spooled content in a variety of formats via your browser Spooled files can be manipulated with commands run directly from the browser Upon obtaining spooled content in the selected format, output can be seamlessly

    integrated with desktop applications; email, Excel etc. Management functions are provided for output queues and spooled content Server side script can be tailored (eg. allow for page range selection of print, insert

    corresponding pictures based on product codes etc.)

    aXes Spool File Server requires zero-client configuration and deployment.

    Print ready documents are delivered automatically in the following formats:

    XML - Publish spooled data using XSL transformations for speed and flexibility PDF - Deliver print ready PDF files HTML- Format spooled data into customisable web ready documents Text - Very fast access for large spooled files

    aXes Spool File Server integrates with aXes Terminal Server when the user has anestablished host session. Conversion of spooled data to XML, combined with event drivendispatching provides a very fast and effective e-business delivery mechanism.

    About aXes Data Explorer ServeraXes Data Explorer is supplied as an additional feature of aXes Application Server. Itprovides convenient, high-speed access to DB2/400 and other databases using the HTTP

    protocol and a web browser. Easy to use, you can create your first data query in minutes, no programming is required Create distributed SQL database queries for any accessible data source Support any browser for query definition and web publication Query output can be easily integrated with desktop business applications such as Word,

    Excel etc. Launch saved queries from any web page with a standard URL reference. Zero-client configuration and deployment, server side script can be tailored. SQL knowledge and client side configuration are not required. Improve web site functionality and data accessibility saving time and money.

    Web ready database content is delivered for a wide variety of everyday e-business uses:

    Data transfer- Query results can be s aved or printed locally on your PC or anywhere in a

    network. Web publication- Deliver real-time, web-ready query results when and where they are needed. Desktop integration- Query results can be seamlessly integrated with desktop applications like Exce l

    without writing macros.

  • 8/10/2019 Lansa Axes User Guide

    8/51

  • 8/10/2019 Lansa Axes User Guide

    9/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 9 of 51

    9 of 51

    Attempting to start more sessions than licensed. Attempting to run on more processors than licensed.

    It is possible, although unlikely, that licences might not be released when sessions end orwhen servers terminate. This would cause the usage to continually increase, eventuallyexceeding the limit. If this is the case it will be apparent from the DSPAXESLIC panel theCount value will be equal to or higher than the Limit value, and also higher than the number

    of sessions or processors the customer thinks are in use.If this situation of licences not being released does occur, it can be corrected by using theRelease aXes Licence (RLSAXESLIC) command. This command requires that the aXesinstance for which licences are being released is not active. The steps would be:

    Get users off aXes End aXes servers Release any licences Start aXes servers Let users on again

    Total elapsed time for such an operation is less than 15 minutes and can be accomplishedduring a lunch break or at end-of-day (or even during the day since the steps are easy andsimilar to normal problem resolution for device or application issues). If the problem occurs

    frequently then suitable diagnostic material should be collected and forwarded to LANSA forinvestigation.

    The DSPAXESLIC and RLSAXESLIC commands are described in the aXes Reference and on-line help.

  • 8/10/2019 Lansa Axes User Guide

    10/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 10 of 51

    10 of 51

    Note Before You Use FastCGIExternalServer

    The aXes FastCGIExternalServer feature may be used to achieve this type of configuration:

    In this configuration the aXes-TS server executes on an IBM i server located inside a firewall. Thisprovides an extra layer of security by not directly exposing the IBMi server to the Internet.

    However, a better option for implementing this type of configuration is a technique called reverse proxy .

    By using a reverse proxy solution you gain:

    The same level of additional security with the IBM i server behind the firewall.

    An environment that is simpler to configure and maintain.

    Use of aXes eXtensions - You cannot use them using FastCGIExternalServer.

    Please talk to your aXes reseller about using a reverse proxy solution before attempting toimplement a FastCGIExternalServer solution.

    Section 2 - Understanding FastCGIPlease read Note Before You Use FastCGIExternalServer .

    This section introduces you to FastCGI and how it relates to the aXes servers. Completeinformation about FastCGI can be found at www.fastcgi.com but this section provides asufficient overview to intelligently configure the aXes servers.

    CGI is the Common Gateway Interface, which is a standard protocol that defines how a webserver interfaces with external applications. This allows the web server to pass requestsfrom a client web browser to the external application. The web server receives output fromthe application and passes the output to the browser.

    FastCGI is a language-independent, scalable, open, extension to CGI that provides highperformance with the limitations of server-specific APIs.

    The aXes servers are FastCGI servers. This means they are written to the FastCGI interface

    specification. Therefore understanding FastCGI will be helpful in managing the aXes servers.FastCGI servers come in two types; Internal FastCGI Servers and External FastCGI Servers.

  • 8/10/2019 Lansa Axes User Guide

    11/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 11 of 51

    11 of 51

    Both server types behave the same. The difference is in how they are defined, started, andhow they communicate with the web server.

    Both server types are defined in the web server configuration file. Internal servers aredefined using the FastCGIServer directive. External servers are defined using theFastCGIExternalServer directive.

    Internal servers are started automatically by the web server and use a Unix-domain socket(essentially a special kind of stream file) to communicate. Internal servers must run on thesame host system as the web server.

    External servers are started by a user-command and use a TCP/IP network socket forcommunication. External servers also need to know the IP address and port on which theyare to listen for web server requests. Although external servers may run on the same hostsystem as the web server, because they use network sockets they can also run on a systemdifferent from the one on which the web server is running. External servers also have theadvantage that they can be started and stopped independently of the web server. See

    Appendix A. Configuration Scenarios in the aXes Reference for example configurations.

    The aXes product is shipped with Internal FastCGI definitions in the web server configurationfiles. This means that when the web server is started it automatically starts the other aXesservers. The product is also shipped with example External FastCGI Server definitions and

    the Work with aXes Servers (WRKAXESSVR) command shows predefined External FastCGIServer definitions for all the aXes servers. The aXesW3 server is defined withAUTOSTART(*YES) and the external servers are defined with AUTOSTART(*NO).

    In normal operation you would start only the aXes Application Server and let it automaticallystart the other servers as Internal FastCGI Servers. These internal servers are startedregardless of the Auto-start setting shown in the WRKAXESSVR panels. External FastCGIServers are intended for advanced users and should only be used when the web server mustbe on a different system, or when the aXes servers need to be started and stoppedindependently.

    The various aXes servers are optional components of the product. If they are not installedthen an error will occur when attempting to start them. An error message will be found inthe job log of the application server job for each internal server that failed to start. The errorcan be corrected by either installing the missing component (and obtaining a suitablelicence), or by commenting-out the appropriate FastCGIServer directive in the applicationserver configuration file.

    The aXes Application Server can be started in one of three ways:

    1. The Start aXes Application Server (STRAXESW3) commands.

    2. Option 9=Start on the WRKAXESSVR panel.

    3. Automatically when the AXES subsystem is started if the server instance is definedwith AUTOSTART(*YES) on the WRKAXESSVR panel.

    The STRAXESW3 command will start the application server. It will also start other aXesservers if they have been defined as internal servers in the application server configurationfile.

    External aXes server definitions can also be started in one of three ways:

    1. The various Start aXes Xxxxx Server (STRAXESXX) commands.

    2. Option 9=Start on the WRKAXESSVR panel.

    3. Automatically when the AXES subsystem is started if the server instance is definedwith AUTOSTART(*YES) on the WRKAXESSVR panel.

    The STRAXESXX (where XX is one of: DE, TS, or WS) commands will start an ExternalFastCGI Server instance. Each instance will require a corresponding FastCGIExternalServerdirective in the configuration file of the application server assigned to handle requests andresponses for the instance. The IP address and port supplied on the start command mustmatch the information specified in the directive.

  • 8/10/2019 Lansa Axes User Guide

    12/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 12 of 51

    12 of 51

    Section 3 - Managing aXes serversThis section introduces you to the commands that allow you to control and manage aXesservers. The aXes servers require a web server to handle connexions from a browser. It canuse the aXes Application Server or Apache (using the FastCGI module). LANSA recommendsthat you use the aXes Application Server.

    See Appendix G. Command Syntax Diagrams in the aXes Reference for information onmaking the aXes commands and menus available to your job.

    Defining aXes Server InstancesPlease read Note Before You Use FastCGIExternalServer .

    All aXes servers allow you to define server instances where you can associate a name with aspecific configuration file and override various server attributes. Server instances arecreated using the following commands:

    ADDAXESW3 (Add aXes Application Server) ADDAXESTS (Add aXes Terminal Server) ADDAXESDE (Add aXes Data Explorer Server) ADDAXESWS (Add aXes Spooler File Server)

    aXes servers can be configured in a number of different ways:

    As an internal FastCGI server started by aXes Application Server As an external FastCGI server

    Internal servers are started automatically by the aXes Application Server and use a privatecommunication channel between themselves and the associated application server. Internalservers also run on the same system as their associated application server. This is theeasiest way to configure the aXes servers because they will start and stop automaticallywhen aXes Application Server is started and stopped.

    External servers use Sockets to communicate between themselves and their associated webserver. External servers can also run on a system that is remote from their associated webserver. External servers provide a way to share one or more FastCGI servers with one ormore web servers. External servers provide a more flexible way of setting up the aXesservers because they can be started and stopped independently, however the configurationis more complicated.

    Defining aXes Terminal Server as an internal server foraXes Application Server

    The FastCGI section of the aXes Application Server configuration file is used to define aXesTerminal Server as an internal server. See Section 4. Application Server Configuration in the aXes Reference for a detailed explanation of the syntax. For example, the directive:

    FastCGIServer /axests \

    program AXESTS.PGM /axes/configs/aXesTS.conf mt \

    -idle-timeout 45 authpath=admin=/axests/admin/**

    will define an internal FastCGI aXes Application Server which will be started when the aXesApplication Server instance is started. Any URLs starting with /axests will be passed to thisserver, responses must occur within 45 seconds, and the administration functions in the URL/axests/admin are protected by the Access Control List found in the admin directoryunder the ServerRoot .

    Defining aXes Terminal Server as an external server

  • 8/10/2019 Lansa Axes User Guide

    13/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 13 of 51

    13 of 51

    The STRAXESTS (Start aXes Terminal Server) command is used to start aXes TerminalServer as an external server. For example, the command:

    STRAXESTS INSTANCE(AXESEXTERN)

    CFG(/axes/configs/axests.conf)

    INTNETADR(*ANY 6666)

    will start an instance of the aXes Terminal Server using a job name of AXESEXTERN whichwill listen for requests on port 6666. One or more web servers can reference this server intheir configuration file. The web servers may be running on remote systems.

    To allow a local aXes Application Server to forward requests to this external server you coulddefine the following directive in the W3 configuration file:

    FastCGIExternalServer /axests appConnTimeout 30 \

    -idle-timeout 30 host :6666

    If you want to allow remote web servers to use this external terminal server you mustspecify the IP address or name of the system on which the terminal server is running.

    To allow a remote Apache server to forward requests to this terminal server you could definethe following directive in the Apache configuration file:

    FastCGIExternalServer axests host remotehost:6666

    Where remotehost is the IP address or name of the system on which the Termin al Server isrunning.

    You must also configure the FastCGI module for this instance of the Apache server usingdirectives similar to the following:

    LoadModule fastcgi_module modules/mod_fastcgi.dll

    AddModule mod_fastcgi.c

    The actual syntax will vary according to the version of Apache and the platform on whichApache is running. See Appendix A. Configuration Scenarios in the aXes Reference andyour Apache configuration documentation for more information.

    Defining aXes Data Explorer Server as an internal serverfor aXes Application Server

    The FastCGI section of the aXes Application configuration file is used to define aXes DataExplorer Server as an internal server. See Section 4. Application Server Configuration in the aXes Reference for a detailed explanation of the syntax. For example, the directive:

    FastCGIServer /axesde \

    program AXESDE.PGM ' - config=/axes/configs/aXesDE.conf' \

    -idle-timeout 45

    will define an internal FastCGI aXesDE server which will be started when the aXesW3 serverinstance is started. Any URLs starting with /axesde will be passed to this server andresponses from the server must occur within 45 seconds.

    Defining aXes Data Explorer Server as an external serverThe STRAXESDE (Start aXes Data Explorer Server) command is used to start aXes DataExplorer Server as an external server. For example, the command:

    STRAXESDE INSTANCE(AXESEXTERN)

    CFG(/axes/configs/axesde.conf)

    INTNETADR(*ANY 6666)

    will start an instance of the aXes Data Explorer using a job name of AXESEXTERN which willlisten for requests on port 6666. One or more web servers can reference this server in their

    configuration file. The web servers may be running on remote systems.

  • 8/10/2019 Lansa Axes User Guide

    14/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 14 of 51

    14 of 51

    To allow a local aXes Application Server to forward requests to this external server you coulddefine the following directive in the W3 configuration file:

    FastCGIExternalServer /axesde appConnTimeout 30 \

    -idle-timeout 30 host :6666

    If you want to allow remote web servers to use this external server you must also specify

    the IP address or name of the system on which the terminal server is running.FastCGIExternalServer axesde host remotehost:6666

    where remotehost is the IP address or name of the system on which the Data Explorer isrunning.

    You must also configure FastCGI support for the remote web server. See the documentationsupplied with your remote web server or the FastCGI web site.

    Defining aXes Spool File Server as an internal server foraXes Application Server

    The FastCGI section of the aXes Application Server configuration file is used to define aXes

    Spool File Server as an internal server. See Section 4. Application Server Configuration in the aXes Reference for a detailed explanation of the syntax. For example, the directive:

    FastCGIServer /axesws \

    program AXESWS.PGM '- config=/axes/configs/aXesWS.conf' \

    -idle-timeout 45

    will define an internal FastCGI aXesDE server which will be started when the aXesW3 serverinstance is started. Any URLs starting with /axesws will be passed to this server andresponses from the server must occur within 45 seconds.

    Defining aXes Spool File Server as an external serverThe STRAXESWS (Start aXes Spool File Server) command is used to start aXes Spool File

    Server as an external server. For example, the command:STRAXESWS INSTANCE(AXESEXTERN)

    CFG(/axes/configs/axesws.conf)

    INTNETADR(*ANY 6666)

    will start an instance of the aXes Spool File Server using a job name of AXESEXTERN whichwill listen for requests on port 6666. One or more web servers can reference this server intheir configuration file. The web servers may be running on remote systems.

    To allow a local aXesW3 server to forward requests to this external server you could definethe following directive in the W3 configuration file:

    FastCGIExternalServer /axesws appConnTimeout 30 \

    -idle-timeout 30 host :6666

    If you want to allow remote web servers to use this external server you must also specifythe IP address or name of the system on which the terminal server is running.

    FastCGIExternalServer axesws host remotehost:6666

    Where remotehost is the IP address or name of the system on which the Web Spooler isrunning.

    You must also configure FastCGI support for the remote web server. See the documentationsupplied with your remote web server or the FastCGI web site.

    Displaying aXes Server InstancesDefined server instances and active ad-hoc instances can be displayed using theWRKAXESSVR (Work with aXes Server) command. Option 5=Display will show you detailsabout the instance definition.

  • 8/10/2019 Lansa Axes User Guide

    15/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 15 of 51

    15 of 51

    Starting aXes ServersServers can be started using the appropriate start command. aXes Application Servers arestarted using the STRAXESW3 (Start aXes Application Server) command. aXes ApplicationServers can be configured to automatically start the other aXes servers as internal FastCGIservers.

    aXes Terminal Server external FastCGI servers are started explicitly using the STRAXESTS (Start aXes Terminal Server) command or implicitly by the STRAXESW3 or STRTCPSVR (Start TCP/IP Server) command.

    aXes Data Explorer Server external FastCGI servers are started explicitly using theSTRAXESDE (Start aXes Data Explorer Server) command or implicitly by the STRAXESW3command.

    aXes Spool File Server external FastCGI servers are started explicitly using theSTRAXESWS (Start aXes Spool File Server) command or implicitly by the STRAXESW3command.

    An implicit start happens when an instance of an aXes Application Server has an aXes serverdefined as an internal FastCGI server. You cannot use the STRAXESxx commands to start orrestart an internal FastCGI server.

    aXes Application Servers and external FastCGI Servers can also be started using option 9 ofthe WRKAXESSVR (Work with aXes Server) command.

    Note : All releases of aXes will have default servers defined with the same name (AXES).You may use the ADDAXESSVR command to define instances for the new release that havedifferent instance names from those used by the existing release.

    Note : All servers that listen on TCP ports for incoming requests must listen on unique ports.You can define the port numbers in an instance definition or on the server start command.

    Stopping aXes ServersServers can be stopped using the appropriate end command. aXes Application Servers are

    stopped using the ENDAXESW3 (End aXes Application Server) command. Servers that havebeen automatically started by aXesW3 are automatically stopped when aXesW3 ends.

    aXes Terminal Server external FastCGI servers are stopped explicitly using the ENDAXESTS (End aXes Terminal Server) command or implicitly by the ENDAXESW3 or ENDTCPSVR (End TCP/IP Server) command.

    aXes Data Explorer Server external FastCGI servers are stopped explicitly using theENDAXESDE (End aXes Data Explorer Server) command or implicitly by the ENDAXESW3 .

    aXes Spool File Server external FastCGI servers are stopped explicitly using theENDAXESWS (End aXes Spool File Server) command or implicitly by the ENDAXESW3 .

    Servers can also be ended using option 10 of the WRKAXESSVR (Work with aXes Server)command.

    Note : You must use the end command from the same release as the start command used tostart the server.

    Automatically Starting aXes Servers when the SystemStarts

    Defined aXes server instances can be started when the system starts by setting the serverinstance auto-start attribute to *YES using the appropriate add or change command.

    The ADDAXESW3 (Add aXes Application Server), the ADDAXESTS (Add aXes TerminalServer), the ADDAXESDE (Add aXes Data Explorer Server), and the ADDAXESWS (AddaXes Spool File Server) commands can be used to set the auto-start attribute for a newexternal FastCGI instance.

    The CHGAXESW3 (Change aXes Application Server), the CHGAXESTS (Change aXesTerminal Server), the CHGAXESDE (Change aXes Data Explorer Server), and the

  • 8/10/2019 Lansa Axes User Guide

    16/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 16 of 51

    16 of 51

    CHGAXESWS (Change aXes Spool File Server) commands can be used to set the auto-startattribute for an existing external FastCGI instance.

    You must also start the AXES subsystem from the system start-up program. The systemstart-up program is named in the QSTRUPPGM system value. Edit the source for the start-up program and add a STRSBS (Start Subsystem) command to start the AXES subsystemfrom the installed product library. Ensure you start the AXES subsystem after TCP/IP is

    successfully started.Note : You cannot automatically start servers from multiple releases. You must choose onerelease and start its supplied subsystem. To start servers from a different release, youshould use the start command from that release.

    Working with aXes Server InstancesThe WRKAXESSVR command displays a list of defined server instances and active ad-hocinstances. This command also allows you to add, change, display, and remove serverinstances, start and end servers, display and answer server messages, and work with theserver job.

  • 8/10/2019 Lansa Axes User Guide

    17/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 17 of 51

    17 of 51

    Section 4 - Managing aXes securityThis section introduces you to security considerations for using the aXes servers.

    See Appendix G. Command Syntax Diagrams in the aXes Reference for information onmaking the aXes commands and menus available to your job.

    aXes Application Server SecurityaXes Application Server supports HTTP Basic Authentication. Basic authentication providesan optional challenge-response authentication mechanism, which can be used by an aXesW3server instance to challenge a client request and allow a client to provide authenticationinformation.

    aXes Data Explorer Server SecurityaXes Data Explorer Server requires a valid user ID and password to access the target datasource. For DB2/400 this means that incorrect passwords may result in a disabled userprofile if the number of failed sign-on attempts exceeds the value specified in theQMAXSIGN system value.

    Table security is handled by the target data source database manager so users cannotaccess data in table (or views) to which they are not authorised.

    aXes Spool File Server SecurityaXes Spool File Server requires a valid OS/400 user profile and password to access spooledfiles. This means that incorrect passwords may result in a disabled user profile if the number

    of failed sign-on attempts exceeds the value specified in the QMAXSIGN system value.Spooled file security is handled by OS/400 so a user accessing spooled files via aXesWScannot perform functions that they cannot also perform using traditional system access.

    aXes Terminal Server SecurityaXes Terminal Server requires a valid OS/400 user profile and password. This means thatincorrect passwords may result in a disabled user profile if the number of failed sign-onattempts exceeds the value specified in the QMAXSIGN system value.

    Terminal security is handled by OS/400. Normal device security considerations apply such asthe user attempting to sign on to the device must be authorized to use that device, andusers with *ALLOBJ or *SERVICE special authority are subject to the setting of the

    QLMTSECOFR system value. In addition, users can be defined to aXes Terminal Server bylisting them in the Users section of the aXesTS configuration file. See Section 1. TerminalServer Configuration in the aXes Reference for a detailed explanation of the syntax.

    aXes Terminal Server will only perform administration functions, such as displaying statisticsor user sessions, if it has received an authentication header from the browser. Theapplication server manages the authentication challenge-response process.

    When using the aXes Application Server, the authpath FastCGI switch is used to informaXes Application Server which Access Control List should be used for authentication. SeeFastCGI Directives in the aXes Reference for detailed information about this switch.

    Basic authentication schemeThe basic HTTP authentication scheme is based on the model that the client must

    authenticate itself with a user-ID and a password for each realm. A realm allows protectedresources to be partitioned into a set of protection spaces referenced by name. Each realmcan have its own authentication scheme and authorization information. A realm for aXes

  • 8/10/2019 Lansa Axes User Guide

    18/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 18 of 51

    18 of 51

    Application Server maps to a directory path. The aXes Application Server will service therequest only if it can validate the user ID and password for the protection space of theRequest-URI. The aXes Application Server uses Access Control Lists ( ACL ) to verify user IDand password combinations.

    aXes Access Control ListsAn aXes Access Control List is an object that contains the names of authorized users andencrypted passwords. It is used to control access to a directory path. You can protectspecific directories, and therefore the files in those directories, by creating an ACL in thedirectory you want to secure. An empty ACL effectively denies access to the directory.

    You can add the names of users and an associated password to the ACL to allow those usersaccess to the directory and its files. The aXes Application Server will issue an authenticationchallenge to any browser requesting a URL that maps to a file in a protected directory. It willcompare the user name and password provided by the user to the entries in the ACL. Accesswill be denied to users who do not have a valid entry in the ACL.

    Note : Directory protection is not inherited by sub-directories. Each directory you want toprotect must have its own ACL.

    Access control lists are implemented as hidden files and are created in each directory youwant to protect. The name of the hidden file is .axespwd . The file must have a code pageor CCSID attribute of 37. Passwords are stored in an encrypted form. You must use theaccess control list CL commands to manage these objects, although you can use stream filecommands to copy them if you want to duplicate an ACL from one directory to another.

    See Section 3. Managing aXes Users for information about managing users in an ACL.

    Default aXes Access Control ListsThere are two Access Control Lists supplied with axes: one is in the /ts/admin directory and protects the aXes Terminal Server session and statistics forms. The other is inthe /admin directory and protects access to the aXes Application Serverstatistics forms.

    The default user and password for both these ACLs is admin and admin . You should changethe default password using the CHGAXESUSR (Change aXes User) command.

    If logging is activated, then an empty ACL is created in the specified log directory. TheaXesW3 server does this to stop log files being served by the web server. If you want toserve log files then you can add user entries to this ACL for those users who are allowed toview the logs.

    aXes Access Control List commandsControl Language (CL) commands are provided on the aXes Administration Menu (GOAXESADM) to assist in managing and administering access control lists. See Appendix G.Command Syntax Diagrams in the aXes Reference for information on making the aXescommands and menus available to your job. The following commands are available:

    Create aXes Access Control List (CRTAXESACL):The Create aXes Access Control List command allows you to create an aXes access controllist object.

    Delete aXes Access Control List (DLTAXESACL):The Delete aXes Access Control List command allows you to delete an aXes access controllist object.

    Restriction : To use these commands, you must have *SECADM special authority.

    Creating aXes Access Control ListsYou can use the CRTAXESACL (Create aXes Access Control List) command to create an

    Access Control List in a specific directory. For example, the command:CRTAXESACL DIR(/company/sales/forecasts)

  • 8/10/2019 Lansa Axes User Guide

    19/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 19 of 51

    19 of 51

    would protect the contents of the specified directory. Only users who were added to the ACLwould be allowed to see files in that directory in their browser.

    Deleting aXes Access Control ListsYou can use the DLTAXESACL (Delete aXes Access Control List) command to delete anAccess Control List in a specific directory.

    DLTAXESACL DIR(/company/sales/forecasts)

    would remove the ACL and therefore also remove the protection on the specified directory.

  • 8/10/2019 Lansa Axes User Guide

    20/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 20 of 51

    20 of 51

    Section 5 - Managing aXes usersThis section introduces you to the commands needed to manage users. aXes considers thatthere are two kinds of user terminal users and web users.

    Terminal users are normal OS/400 users, that is, users with a user profile ( *USRPRF )object who have the capability to sign on to OS/400. Terminal users are managed using thenormal OS/400 user profile commands (CRTUSRPRF, CHGUSRPRF, DLTUSRPRF, andWRKUSRPRF).

    A web user is created by adding the user name and associated password to an AccessControl List ( ACL ). See Section 2. Managing aXes Security for information about how tocreate and delete ACLs.

    User commandsControl Language (CL) commands are provided on the aXes Administration Menu (GOAXESADM) to assist in managing and administering users. See Appendix G. CommandSyntax Diagrams in the aXes Reference for information on making the aXes commandsand menus available to your job. The following commands are available:

    Add aXes User (ADDAXESUSR):The Add aXes User command allows you to add a user to an aXes access control list object.

    Change aXes User (CHGAXESUSR):The Change aXes User command allows you to change a user in an aXes access control listobject.

    Remove aXes User (RMVAXESUSR):

    The Remove aXes User command allows you to remove a user from an aXes access controllist object.

    Work with aXes Users (WRKAXESUSR):The Work with aXes Users command allows you to display and work with a list of usersdefined in an aXes access control list. You can add, change, and remove users.

    Restriction : To use these commands, you must have *SECADM special authority.

    Adding users to an aXes Access Control ListYou can add a user to an ACL using the ADDAXESUSR (Add aXes User) command. Forexample, the command:

    ADDAXESUSR USER(hayashi) PASSWORD(d6wi89g)

    DIR(/company/sales/forecasts)

    would allow Hayashi-san to access files in the specified directory.

    Changing user passwordsYou can change a users password in an ACL using the CHGAXESUSR (Change aXes User)command. For example, the command:

    CHGAXESUSR USER(hayashi) PASSWORD(xyz876)

    DIR(/company/sales/forecasts)

    would change the password used by Hayashi san to access files in the specified directory.

  • 8/10/2019 Lansa Axes User Guide

    21/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 21 of 51

    21 of 51

    Removing users from an aXes Access Control ListYou can remove a user from an ACL using the RMVAXESUSR (Remove aXes User) command.For example, the command:

    RMVAXESUS R USER(hayashi) DIR(/company/sales/forecasts)

    would remove Hayashi-san from the ACL and therefore cause the web server to deny heraccess to any files in the specified directory.

    Working with aXes usersThe WRKAXESUSR command displays a list of defined web server users. This command alsoallows you to add, change, and remove users.

  • 8/10/2019 Lansa Axes User Guide

    22/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 22 of 51

    22 of 51

    Section 6 - Understanding authorities and permissionsThis section provides information about the necessary authorities and permissions requiredfor aXes to function correctly.

    User Profiles Adopted Authority Exclude Authority aXes Application Server aXes Data Explorer Server aXes Terminal Server aXes Spool File Server aXes Gateway Interface FastCGI Servers

    User ProfilesaXes provides two user profiles; AXES and AXES_GROUP . The AXES_GROUP profile isused to provide Primary Group Profile (PGP) authority for stream files and directories. TheAXES profile is a member of AXES_GROUP and also owns the product stream files anddirectories. This arrangement is used because PGP authority is automatically propagated tonew objects created in the directory tree therefore AXES will inherit appropriate authority tonew objects.

    aXes server jobs run using the AXES user profile therefore the AXES user profile must haveauthority to the product objects and to any directories and stream files used by the servers.

    The AXES_GROUP user profile does not require any special authorities. The AXES userprofile requires *JOBCTL special authority to retrieve job information. During installation arandom password is generated for the AXES user profile. If you want to change this

    password do so using the CHGUSRPRF (Change User Profile) command.A password is required for the AXES user profile because it is used by the aXesW3 application server to connect to the *LOCAL database when running Lua scripts that containSQL statements. You may change this password to another value of your choice.

    Note : None of the aXes servers need to know the AXES profile password but one must existto allow it to access the *LOCAL database. If you set the password to *NONE then Luascripts running under the aXes Application Server fail unless a user profile and password aresupplied within the Lua script. The aXes Data Explorer Server will also fail when building thelist of available data sources.

    Adopted authority and system-stateaXes generally relies on *PUBLIC authority to access objects, however there are someprogram objects that adopt authority. The programs that adopt authority are:

    Object Type Reason

    AXADOPT *SRVPGM Verify the password for aXes Terminal Server users

    AXCHKATNKY *PGM Check if the job has an Attention program (ATNPGM)defined.

    AXCHKPGSTK *PGM Check the program stack of a job for a particular program.Used to support the System Request (SysRq) function.

    AXDSPMSGW *PGM Display the message for jobs in MSGW state

    AXENDTS *PGM *JOBCTL required to end aXes Terminal Server

  • 8/10/2019 Lansa Axes User Guide

    23/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 23 of 51

    23 of 51

    Object Type Reason

    AXENDW3 *PGM *JOBCTL required to end aXes Application server

    AXSTRTS *PGM *JOBCTL required to start AXES subsystem and *USE authority required to AXES user profile to submit jobs

    under that profile

    AXSTRW3 *PGM *JOBCTL required to start AXES subsystem and *USE authority required to AXES user profile to submit jobsunder that profile

    AX5250INZ *PGM *SAVSYS authority required.

    There are also some programs that must run in system state to perform their functions. Thesystem state programs are:

    Object Type Reason

    AXCHKATNKY *PGM Check if the job has an Attention program (ATNPGM)defined.

    AXCHKPGSTK *PGM Check the program stack of a job for a particular program.Used to support the System Request (SysRq) function.

    AXDSPMSGW *PGM Display the message for jobs in MSGW state

    AXGETCCSID *PGM Determine the CCSID of a display file

    AXRTVVTDEV *PGM Determine the associated virtual device

    STDERRC2 *PGM Dump a CL program

    AXSPACE *PGM Insert space into a context

    AXINDEX *PGM Insert index into a context

    AXRUNCMD *PGM Run remote command

    AXCMDCLNUP *PGM Clean up remote command

    AX5250INZ *PGM InterSession support

    AX5250EXIT *PGM InterSession support

    AX5250ORSV *PGM InterSession support

    AX5250OSJE *PGM InterSession support

    AX5250OSPM *PGM InterSession support

    AX5250RQT *PGM InterSession support

    AX5250SQ *PGM InterSession support

    AX5250DEVD *PGM InterSession support

    AXINLPGM *PGM InterSession support

    AXGRPPGM *PGM InterSession support

    If having programs which adopt authority or have system state set concerns you then youmay alter or delete some of the programs as long as you understand the effect that willhave on the product.

  • 8/10/2019 Lansa Axes User Guide

    24/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 24 of 51

    24 of 51

    You may delete the following programs:

    AXCHKATNKY Deleting the program will mean that aXes can no longer protect a userfrom pressing the Attention (Attn) key when it is not appropriate. Becausethis can cause the TS client session to appear to hang aXes will no longerallow the Attention key to be pressed.

    AXCHKPGSTK Deleting the program will mean that aXes can no longer protect a userfrom pressing the Attention (Attn) key or System Request (SysRq) keywhen it is not appropriate. Because this can cause the TS client session toappear to hang aXes will no longer allow the Attention key or SystemRequest key to be pressed.

    AXDSPMSGW Deleting the program will mean that you can no longer answer messagesfor aXes servers which are in a MSGW state from the Work with aXesServers display.

    STDERRC2 Deleting the program will mean that you can no longer get a diagnosticdump from CL programs that may end in error.

    AXRUNCMDAXCMDCLNUP

    AX5250INZ

    AX5250EXIT

    AX5250ORSV

    AX5250OSJE

    AX5250OSPM

    AX5250RQT

    AX5250SQ

    AX5250DEVD

    AXINLPGM

    AXGRPPGM

    AXSPACE

    AXINDEX

    Deleting any of these programs will mean you can no longer use the aXesIntersession capability.

    You may change the following programs to remove authority adoption:

    AXENDTS You must ensure that users of the End aXes Terminal Server( ENDAXESTS ) command have *JOBCTL special authority.

    AXENDW3 You must ensure that users of the End aXes Application Server( ENDAXESW3 ) command have *JOBCTL special authority.

    AXSTRTS You must ensure that users of the Start aXes Terminal Server( STRAXESTS ) command have *JOBCTL special authority and that theyhave *USE authority to the AXES user profile.

    AXSTRW3 You must ensure that users of the Start aXes Application Server( STRAXESW3 ) command have *JOBCTL special authority and that theyhave *USE authority to the AXES user profile.

  • 8/10/2019 Lansa Axes User Guide

    25/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 25 of 51

    25 of 51

    You must not alter or delete the following programs because authority adoption isfundamental to the correct working of the product.

    AXADOPT

    Exclude authorityThe following objects are shipped with *PUBLIC *EXCLUDE authority:

    Object Type Description

    ENDAXESTS *CMD End aXes Terminal Server

    ENDAXESW3 *CMD End aXes Application Server

    STRAXESTS *CMD Start aXes Terminal Server

    STRAXESW3 *CMD Start aXes Application Server

    AXRUNCMD *PGM aXes Intersession support

    AX5250INZ *PGM aXes Intersession support

    AX5250EXIT *PGM aXes Intersession support

    AX5250ORSV *PGM aXes Intersession support

    AX5250OSJE *PGM aXes Intersession support

    AX5250OSPM *PGM aXes Intersession support

    AX5250RQT *PGM aXes Intersession support

    AX5250SQ *PGM aXes Intersession support

    Unix-style PermissionsMost of the files served by aXesW3, the files used to describe panels for aXesTS, and thescript files containing Lua source, are stored as stream files in the Integrated File System( IFS ). As such they have a slightly different level of data authorization, called permissions,from the normal OS/400 data authorities. This section is intended to give you anunderstanding of how these permissions are managed. It contains the following topics:

    Overview Users and access Files and permissions Directories and permissions How permissions are calculated How permissions are granted Where to find more information

    OverviewPermissions are associated with each file and directory. For files, permissions control whichusers have access to read, write, and execute them. For directories, permissions controlwhich users can view directory contents, create or delete files in a directory, or navigate intothat directory.

    Any of the permissions can be applied in any combination to any users, and there are threeclassifications for users: Owner , Group , and Other .

  • 8/10/2019 Lansa Axes User Guide

    26/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 26 of 51

    26 of 51

    Users and accessThe concept of users is an abstract classification; referring not to a specific user, but toaccess:

    Owner (also Admin, or You)

    The owner of the file has access.

    GroupOther members of the same classification as the owner have access.

    Other (also Public, World, or Everyone)Everyone else has access. This is the same as *PUBLIC .

    Files and permissionsPermissions for files mean exactly what they sound like:

    ReadControls whether a user can read the file.

    WriteControls whether a user can write to the file.

    ExecuteControls whether the user can run the file, that is, the file is a script or program.

    Directories and permissionsPermissions for directories are subtly different from those for files:

    ReadControls whether a user can view the contents of the directory, that is list the files in thedirectory.

    WriteControls whether a user can create new files or delete existing files in the directory.

    Note : This means a user with write access to a directory can delete files in that directory,even without write permission to the file.

    ExecuteControls whether the user can navigate (cd, change directory) into that directory. It alsocontrols whether the user can navigate through that directory. That is, in order tomanipulate the contents of a sub-directory, the user must have execute permission to all

    directories in the path.

    How permissions are calculatedPermissions are stored in 9 bits split into 3 groups of 3 bits each. Each bit represents aspecific permission for a specific user classification. The full range of permissions can berepresented as rwxrwxrwx where the first group holds permissions for the owner, thesecond group holds permissions for the group, and the final group holds public permissions.This arrangement lends itself to a convenient, if arcane, method of describing permissionsusing octal (or base 8) notation. Each permission is assigned a numeric value: read = 4 ,write = 2 , execute = 1 , thus each user ( owner, group, other ) permission can becalculated by summing the permissions to be granted.

    For example, to grant permission to read and write , the permission is 4+2=6 ; to grant

    permission to read , write , and execute is 4+2+1=7 , and so on.

  • 8/10/2019 Lansa Axes User Guide

    27/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 27 of 51

    27 of 51

    How permissions are grantedUnix-style permissions are commonly set with the chmod shell command. On the OS/400this command can be run via QSHELL and it has the general format:

    chmod mode filename

    Where chmod is the command, mode is the numerical expression of the permissions, andfilename is the name of the file or directory. For example:

    chmod 644 /sales/forecasts/2002data.csv

    would grant read and write permission to the owner, read permission to the group, and readpermission to *PUBLIC .

    The chmod command also supports a mnemonic form that would allow the previous exampleto be written as:

    chmod u=rw,g=r,o=r /sales/forecasts/2002data.csv

    Since we are discussing OS/400 rather than a Unix system, there is also a commandinterface to changing permissions. The command is the Change Authority (CHGAUT)command and it provides a more natural mechanism. For example:

    Files:CHGAUT OBJ(/w3/dir/*) USER(*PUBLIC) DTAAUT(*R)

    Directories:

    CHGAUT OBJ(/w3/dir) USER(*PUBLIC) DTAAUT(*RX)

    Or

    CHGAUT OBJ(/w3/dir) USER(*PU BLIC) DTAAUT(*R)

    AGI:

    CHGAUT OBJ(/w3/agi/sample.agi) USER(*PUBLIC) DTAAUT(*X)

    which is at least more obvious at the expense of more typing.

    FTP client utilities generally provide a means of setting the permissions, either by thenumeric representation of the permissions, or with a check-box selection.

    In summary, data files should be mode 644 (rw-r--r--) , directories should be 755 (rwxr-xr-x) if you want to allow indexing and 711 (rwx--x--x) to disallow it, and AGI programsshould be mode 755 (rwxr-xr-x) or 711 (rwx--x--x) .

    Where to find more informationYou can find information specific to permissions on the OS/400 in the Information Centre.For a generic Unix view of permissions you can find information on the Internet, withthousands of articles and tutorials available. Use any of the better search engines andsearch for UNIX permissions .

    aXes Application ServerThe aXes Application Server requires that *PUBLIC has read (*R) authority to the filesbeing served. aXes Application Server explicitly checks for public read permission. Thisrequirement applies to all data files served by aXes Application Server such as HTML files orimages, and is imposed to ensure that no file is ever delivered to the web unless it isaccessible to *PUBLIC .

    aXes Application Server also requires that execute (*X) permissions are not set for datafiles. A file that is marked executable but does not match the AGI pattern might be a scriptor program that was accidentally left in the wrong directory. Allowing a browser to fetch thecontents of an executable file is considered a security exposure and thus is not allowed.

    aXes Data Explorer ServeraXes Data Explorer has no special requirements.

  • 8/10/2019 Lansa Axes User Guide

    28/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 28 of 51

    28 of 51

    aXes Spool File ServerThe aXes Spool File Server requires that *PUBLIC has read (*R) authority to the filesbeing served. aXes Spool File Server explicitly checks for public read permission. Thisrequirement applies to all data files served by aXes Spool File Server such as HTML files orimages, and is imposed to ensure that no file is ever delivered to the web unless it isaccessible to *PUBLIC .

    aXes Spool File Server also requires that *PUBLIC execute (*X) permissions are set forfiles that contain Lua script, however *PUBLIC must not have *X permission for files thatdo not contain Lua script.

    aXes Terminal ServeraXes Terminal Server has no special requirements.

    aXes Gateway InterfaceaXes Gateway Interface ( AGI ) scripts run with the authorities of the user profile of the

    aXesW3 job. In addition, AGI scripts must have *PUBLIC *X (execute) authority but theymust not have *PUBLIC *R (read) authority. Further, AGI scripts must exist in adesignated directory. The reason for these specific settings is so that scripts cannot beretrieved or served by the aXes Application Server and can only be run by the server. This isdone in order to protect the contents of script files from being viewed in a web browser.

    Either the AXES or AXES_GROUP profile must have read (*R) permission to the file.

    Common Gateway InterfaceCommon Gateway Interface ( CGI ) scripts are subject to the same permission requirementsas AGI scripts. In addition, either the AXES or AXES_GROUP profile must have read andexecute (*RX) permission to the file so it can be spawned successfully.

    FastCGI ServersFastCGI servers provide a way for you to extend the function of a web server by writing yourown programs to handle requests from web browser clients.

    FastCGI servers are supported directly by the aXesW3 web server and also by the IBM HTTPserver if you configure the FastCGI service adapter supplied with the aXes product.

    FastCGI servers run as separate jobs and are classed as internal servers or as externalservers. Internal servers are started from within a FastCGI enabled web server. Externalservers are started by some other means.

    Internal servers are started as Batch-Immediate ( BCI ) jobs and inherit their authoritiesfrom the process that started them. External servers are submitted as Batch ( BCH ) jobs anduse the authorities of the user profile under which they are started. Both forms of FastCGI

    server may dynamically change the current user profile by using the appropriate IBM APIs ifthey are authorized to the APIs and to the new user profile.

    Once a FastCGI server is started it is just another OS/400 job and is subject to the sameobject level security as any other job on the system.

  • 8/10/2019 Lansa Axes User Guide

    29/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 29 of 51

    29 of 51

    Section 7 - Managing backup and recoveryThis section provides guidelines for saving aXes components and recovering in the event ofa disaster. You use OS/400 commands to perform the backup and recovery tasks.

    About backing up aXes for OS/400aXes server instances may contain data and programs that are vital to the on-goingoperation of your business. For example, web interfaces may rely on AGI or CGI scripts thatexist only within the aXes directory structure.

    To protect data and programs from disasters (such as a site loss or hardware failure) andfrom human error (such as accidentally deleting an important script) you should develop agood strategy for regularly backing up the information in aXes. Your backup plan shouldinclude:

    Objects that change infrequently, such as programs for the aXes product. Objects that change often, such as web pages and script files.

    aXes takes advantage of the OS/400 single-level store architecture. aXes programs andstream files are spread across all disk units, along with other OS/400 objects. The OS/400operating system automatically manages the allocation of disk space for you. To back upinformation in OS/400 you back up logically (by object name), not physically (by disk unit).To plan a backup strategy, you must understand the logical location of your aXes objects.

    Backup tipsFor information about planning a backup strategy for your system see the OS/400 Backupand Recovery (SC41-5304) manual supplied with your OS/400 software. You may also wantto refer to the descriptions of using the Save menu and using the SAVxxx and RSTxxx

    commands.

    Libraries and directories for aXes for OS/400The aXes program code is held in OS/400 libraries. The terminal components are held asstream files. Web components such as HTML pages and AGI scripts are also stored asstream files.

    OS/400 Library StructureA default installation of aXes creates the following libraries:

    AXES The aXes base product library. The actual name depends on thevalues specified when aXes was installed.

    AXES29nn A library containing objects that are specific to your nationallanguage.

    IFS Root File SystemThe integrated file system (IFS) is a part of OS/400 that supports stream files and storagemanagement similar to personal computer and Unix operating systems, while providing anintegrating structure over all information stored in OS/400. When you install aXes, a numberof directories are created in the IFS root file system. They are:

    axes This directory is the root directory for the product. The actual namedepends on the values specified when aXes was installed.

    axes/admin This directory controls access to the aXes Application Serveradministration and configuration forms.

  • 8/10/2019 Lansa Axes User Guide

    30/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 30 of 51

    30 of 51

    axes/agi This directory contains the Lua script files.

    axes/configs This directory contains the default configuration files.

    axes/de This directory contains the aXes Data Explorer Server files.

    axes/de/images This directory contains the aXes Data Explorer Server images.

    axes/de/lua This directory contains the aXes Data Explorer Server script files.

    axes/de/skins This directory contains the aXes Data Explorer Server skins.

    axes/docs This directory contains the product documentation.

    axes/errors This directory contains customized HTTP error pages.

    axes/images This directory contains image files (i.e., JPEGs and GIFs, etc.).

    axes/logs This directory contains HTTP log information and trace output.

    axes/samples This directory contains examples.

    axes/ts This directory contains aXes Terminal Server files.

    axes/ts/admin This directory contains the aXes Terminal Server administration andconfiguration forms.

    axes/ts/skins This directory contains the aXes Terminal Server skins and images.

    axes/wba This directory contains the aXes Server administration andconfiguration forms and images.

    axes/ws This directory contains aXes Spool File Server files.

    axes/ws/images This directory contains the aXes Spool File Server images.

    axes/ws/lua This directory contains the aXes Spool File Server script files.

    axes/ws/skins This directory contains the aXes Spool File Server skins.

    Backing up aXes programs and product filesAfter you install aXes you should save a copy of the product off-line, especially if you appliedPTFs during installation. You should also save a copy of aXes periodically such as when youupgrade to a new release or apply PTFs. You should incorporate these saves in your currentbackup strategy.

    Backing up changed objects from aXes for OS/400Modified stream files such as company or user specific terminal skins, AGI or CGI scripts, orHTML pages should be saved when they change. Ideally, modified skins should be created ina separate directory structure and referenced from aXes instances. Separating your modifiedfiles from the aXes product files will make it easier to manage your changes.

    When you use the CRTAXESACL (Create aXes Access Control List) command you arecreating a special file named .axespwd in the specified directory. This file contains useridentifiers and encrypted passwords. When you use the ADDAXESUSR (Add aXes User),CHGAXESUSR (Change aXes User), or RMVAXESUSR (Remove aXes User) commands youare altering the contents of these files. You should save the Access Control List filesregularly so you do not run the risk of losing access for web users.

    When you use the ADDAXESTS, ADDAXESW3, CHGAXESTS, CHGAXESW3, RMVAXESTS, orRMVAXESW3 commands you are modifying records in the AXINSTANCE database file located

  • 8/10/2019 Lansa Axes User Guide

    31/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 31 of 51

    31 of 51

    in the aXes product library. You should save this file regularly so you do not lose serverinstance definitions.

    Most of the values used to control the behaviour of the aXes servers are held inconfiguration files. By default these files are kept in the configs directory but you can storeconfiguration files in any directory. You should save the configuration files regularly toensure you do not lose server definition information.

    The HTML skins used by the aXes terminal can be customised for specific corporaterequirements. If you modify the skins then you should save them to ensure your changesare not lost.

    Recovery of aXes for OS/400In the event of a disaster that requires you to reload your system you can restore theproduct from the copies saved to the backup media.

    Recovering aXes librariesUse the RSTLIB (Restore Library) command to restore the aXes product library, languagelibraries, and samples library.

    Use the RSTOBJ (Restore Object) command to restore individual objects to the aXeslibraries.

    Recovering aXes directoriesUse the RST (Restore) Command to restore directories and stream files to the aXes productdirectories.

    Recovering changed objects to aXes for OS/400If you are saving changed objects in the aXes product libraries using the SAVCHGOBJ (SaveChanged Objects) command you can use the RSTOBJ (Restore Object) command to restorechanged objects from your incremental backup media.

    If you are saving changed stream files using the SAV (Save) command you can use the RST(Restore) command to recover files and directories.

    Note that saving changed objects only saves objects that have changed since the last fullbackup or changed since a specific date and time. If the object you want to restore has notchanged it will not be saved to incremental media. In this case you will need to restore fromthe most recent full backup media.

  • 8/10/2019 Lansa Axes User Guide

    32/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 32 of 51

    32 of 51

    Section 8 - Using the Terminal ServerThis section provides information about using the aXes terminal in the browser. Theinformation provided here is intentionally brief. Refer to the on-line help for aXesTS for moreinformation about using a terminal session.

    If the aXes terminal client is not displayed correctly then read the information in theTroubleshooting section of the aXes Reference.

    Starting the Terminal SessionA terminal session can be started by one of the following methods:

    Specify the system name and port, if other than 80, an d follow the link to the aXes home page.From there click on the link to launch the aXes terminal session.

    Specify a URL in the form:

    http://system:port/ts/skins

    where system is the name of your OS/400 host and port is the port on which theaXes Application Server is listening. Note: the port is required only if it is not 80. Fromthere select one of the links to launch the terminal.

    Specify the full URL for the terminal. For example:

    http://system:port/ts/skins/ts.html

    will launch aXes terminal session including mini - mode integration with aXes SpoolFile Server.

    http://system:port/ts/skins/ts_basic.html

    will launch aXes terminal session without spool file availability.

    The first panel displayed is a logon panel.

  • 8/10/2019 Lansa Axes User Guide

    33/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 33 of 51

    33 of 51

    If you click the Advanced button additional fields will be displayed allowing you to select thedevice type and device name, and override the initial program, initial menu, and currentlibrary. Note that the system administrator may have removed this button or may haveconfigured aXes Terminal Server to ignore client overrides for these fields.

    Enter your OS/400 user profile name and password. A successful logon will cause your initialprogram to run and your normal initial OS/400 panel will be displayed. The default terminalview displays only the terminal but you can click the icon in the top-left corner to make the

    Action Tabs panel appear.The Action Tabs panel let you select different keyboard maps and provides access to OS/400keys not normally available on a PC keyboard.

    This panel also lets you access your printed output via integration with the aXes Spool FileServer.

  • 8/10/2019 Lansa Axes User Guide

    34/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 34 of 51

    34 of 51

    If the system administrator allows it, you can select between all spooled files associated withyour user profile (current user) or only those created in the current session (current job).

    Keyboard MappingTwo keyboard layouts are supplied with the aXes terminal:

    PC-style 5250-style

    The primary difference is that PC-style uses the PC Enter key for Enter and the PC Right-Control key for Field Exit while the 5250-style uses the PC Enter key for Field Exit and thePC Right-Control key for Enter.

    The default key map is the PC-style but you can choose the one you prefer by opening thesidebar of the terminal and selecting a keyboard map from the list box.

    See the aXes Reference for information about creating your own keyboard mapping files and

    how to add them to the list.You can apply function keys to the current application panel by pressing the key or byclicking the function key button in the Function Keys section.

    You can apply other 5250 terminal keys by pressing the mapped key combination or byclicking the appropriate button in the User Defined Keys section.

  • 8/10/2019 Lansa Axes User Guide

    35/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 35 of 51

    35 of 51

    Automatic GUI RecognitionThe default behaviour of the aXes terminal client is to perform automatic GUI recognition,which involves the client searching each screen for recognisable identifiers such as functionkeys, menus, subfiles, and URLs. The system administrator can disable this function and can

    also control the various aspects of the recognition algorithm. You can control whether GUIrecognition is active or not via the check box in the menu bar.

    Cursor FocusWhen the mouse cursor is clicked on a browser element that is outside the aXes terminalframe, such as a browser menu item, the focus is no longer on the terminal frame. This hasthe side effect of causing subsequent keystrokes to be sent to the browser component thatcurrently has the focus and thus are not received by the terminal.

    If you use the mouse to perform actions such as selecting options from the browser menubar, selecting options from the terminal menu bar, or selecting items from the Favourites orHistory panels, then you must click the mouse cursor within the terminal frame to return thefocus to the terminal before continuing your work.

    You are most likely to notice this effect when you press function keys and find they are

    handled by the browser rather than being passed on to the host application.aXes Terminal Server catches most of these errors and will send a message indicating thefunction key has been ignored and that you should try it again. Focus will automatically bereturned to the terminal if this occurs.

    Disconnecting from the HostBecause the browser does not maintain a permanent connexion to the host, aXes TerminalServer cannot determine when a browser no longer requires its services. TheTSExpiryTime= directive in the aXesTS configuration file is used to handle terminal sessionsthat are no longer required. When no request has been received from a browser for a periodof time that is greater than the value specified for TSExpiryTime, aXes Terminal Server willdisconnect the session. If the display device used by the session is a QPADEV* deviceautomatically assigned by the system the session will be ended by OS/400. If the device is anamed device, even if the name is a QPADEV* device, then the session will be disconnected.

  • 8/10/2019 Lansa Axes User Guide

    36/51

    User Guide

    Content LANSA Group. All Rights Reserved Page 36 of 51

    36 of 51

    Named sessions will remain disconnected for the time specified by the QDSCJOBITV systemvalue. The operating system will attempt to reconnect a disconnected session the next timethe user signs on to the named device.

    To explicitly suspend an aXes terminal session, use the mouse to select Session->Suspendfrom the aXes terminal menu bar.

    Reconnecting to the HostIf the user checks the Reconnect box when they sign on and aXesTS is aware of a sessionfor that user then the user will be reconnected to that session. If the session has ended thena new session will be started. If multiple sessions exist for that user then a new session willbe started. aXes Terminal Server does not present a list of available sessions becausecustomers frequently, and incorrectly, share user profi