jbase_agent command

jbase_agent listens on a TCP port and serves jRemote and JDBC clients.

COMMAND SYNTAX

     jbase_agent [-p port] [-A none|user|account] [-b address]
                 [-c certificate -k key] [-N] [-R bytes] [-W bytes]
     jbase_agent start|stop [options]
     jbase_agent adduser|deluser|passwd

SYNTAX ELEMENTS

OptionMeaning
-p, --portthe port to listen on, 20002 by default
-A, --authenticationhow clients are checked: none (the default), user or account
-bthe address of the interface to listen on; all interfaces by default
-c, --certificate; -k, --private_keya certificate and its private key; given together, they turn on TLS for every connection
-Ndo not set TCP_NODELAY on connections
-R, -Wthe read and write buffer sizes of connections
start, stoprun the agent in the background, or stop the one running on the port; the process id is kept in /tmp/jagent.lock<port>
adduser, deluser, passwdmanage the users of -A user

NOTES

The agent starts a new process for each connection. That process serves the connection and ends when the connection closes, so a crash or a STOP in one client's request does not touch the others. Every process runs as the operating system user who started the agent.

The three ways to authenticate a client are:

ModeThe client sendsChecked against
nonea user name and a passwordnothing: every client is accepted
usera user name and a passwordthe agent's own user list, kept in the jBASE file JAGENT_USER and managed with jbase_agent adduser, deluser and passwd
accounta user name, an account and a passwordthe jBASE account in the SYSTEM file, as LOGTO does it; the session is then logged on to that account

In modes none and user the session runs in the environment the agent was started with. Set JBCOBJECTLIST, JEDIFILEPATH and the other variables described in [Environment variables relevant to jBC programming](#Environment variables relevant to jBC programming) before starting it.

A client can set environment variables in its own session, see Agent requests.

EXAMPLE

    export JBCOBJECTLIST=$HOME/lib
    jbase_agent -p 20002 -A user