Commands to Start a Secure Data Grid

Goal: Create a secure data grid named grid1 running across four computers and access it from a client application running on a separate computer.

Hosts: host1, host2, host3, host4, host5 (for client application)

Procedure

  1. Perform the steps listed in Initial Setup to Start a Secure Data Grid.
  2. Perform the steps listed in Create Directories Needed to Run the Processes.
  3. Perform the steps listed in Setting Up and Starting TIBCO FTL Servers.
  4. In a browser, browse to https://host1:8085 or https://host2:8185 or https://host3:8285.
    An empty realm server with a working GUI is displayed.
  5. Initialize the data grid from host1.
    >tibdg -r https://host1:8085 -s /home/youruser/as/init/grid1/grid1.tibdg --trust-file /home/youruser/as/grid1/ftl-trust.pem
    Warning: If you do not provide the trust file as a command-line option, the command fails when communicating with a secure TIBCO FTL server.
  6. Check the status after configuring the data grid (no processes are running as expected).
    >tibdg -r https://host1:8085 --trust-file /home/youruser/as/grid1/ftl-trust.pem -g grid1 status
    Grid grid1:
    Grid is not functioning.
    FTL healthy.  Up for 824 seconds.
    Admin server is not running
    
    
    PROCESSES
    
         TYPE  NAME       HOST  PID  REV  TXNS  REQS  COPYSET  ROLE  EST SIZE  FS USED  FS CAP  DATA DIR  MAX WRITE
         node  cs_01.n_1  NOT RUNNING                                                                      
         node  cs_01.n_2  NOT RUNNING                                                                      
         node  cs_02.n_1  NOT RUNNING                                                                      
         node  cs_02.n_2  NOT RUNNING                                                                      
    
    
         TYPE     NAME HOST  PID  REV  ROLE  STATE DIR
         keeper   k_1  NOT RUNNING
         keeper   k_2  NOT RUNNING
         keeper   k_3  NOT RUNNING
    
    
         TYPE  NAME   HOST  PID  REV  CLIENTS  REQ  TXN  ITER  STMT  QRY  LSNR  MODE
         proxy  p_01  NOT RUNNING
         proxy  p_02  NOT RUNNING
         proxy  p_03  NOT RUNNING
         proxy  p_04  NOT RUNNING
    
  7. Perform the steps listed in Starting ActiveSpaces Processes.
  8. Start a tibdgadmind process to accept administration commands.
    # On host1
    >tibdgadmind -r "https://host1:8085" --trust-file /home/youruser/as/grid1/ftl-trust.pem -l localhost:7171
    
  9. Start a sample client to run operations.
    >/opt/tibco/as/4.2/samples/bin/operations -r "https://host1:8085|https://host2:8185|https://host3:8285" --trust-file /home/youruser/as/grid1/ftl-trust.pem -g grid1
    
    AS Product Version: 4.2.0  V5
    
    Connected to table: t1
    
    Operations commands:
            Enter 'p'  to put a row into the table
            Enter 'g'  to get a row from the table
            Enter 'd'  to delete a row from the table
            Enter 'pm' to put multiple rows into the table
            Enter 'gm' to get multiple rows from the table
            Enter 'dm' to delete multiple rows from the table
            Enter 'i'  to iterate the rows in a table
            Enter 'l'  to listen to changes to the table
            Enter 's'  to create an SQL SELECT or DML statement and execute it
            Enter 'u'  to execute an SQL DDL update
            Enter 'md' to display metadata about the grid and tables
            Enter 'h'  to display this help menu
            Enter 'q'  to quit
    
    Main: [p/g/d/pm/gm/dm/i/l/s/u/md/h/q]: p
    Put: Enter the key (long): 1
    Put: Enter the value (string): 1
    Put Success
    
    Main: [p/g/d/pm/gm/dm/i/l/s/u/md/h/q]: g
    Get: Enter the key (long): 1
    result: {long:key=1, string:value="1"}