User Tools

Site Tools


hub_distributor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hub_distributor [2024/05/09 18:17] parthahub_distributor [2024/05/10 14:04] (current) – [changing the endpoints] partha
Line 6: Line 6:
 ====== prerequisite ====== ====== prerequisite ======
  
-> you should have ''trisul hub'' and ''expect'' installed on your machine.+> you should have ''trisul hub'' , ''ssh-server'' and ''expect'' installed on your machine.
  
  
Line 14: Line 14:
 Goto "/usr/local/share/trisul-hub" on your machine. Goto "/usr/local/share/trisul-hub" on your machine.
  
-<code> cd /usr/local/share/trisul-hub </code>+<code bash> cd /usr/local/share/trisul-hub </code>
  
 Execute the hub_distributer.exp file as root user. Execute the hub_distributer.exp file as root user.
  
-<code> ./hub_distributer.exp </code>+<code bash> ./hub_distributer.exp </code>
  
 ===== inputs ===== ===== inputs =====
  
 Then it will ask from some inputs as below Then it will ask from some inputs as below
- 
-^ Hub IP Address | 192.168.1.6 | 
-^ Domain Description | distributed domain | 
-^ Starting Port | 12001 | 
  
 {{:hub_distributor_inputs.png?400|{{:hub_distributor_inputs.png?nolink&200 |}} {{:hub_distributor_inputs.png?400|{{:hub_distributor_inputs.png?nolink&200 |}}
Line 37: Line 33:
 ===== checking the license status ===== ===== checking the license status =====
  
-it will check the license status if you are using the free 3 days time trial license it will stop the process.+it will check the license status if you are using the free 3 days time trial license it will stop the process.
  
  
Line 50: Line 46:
   - Starting port   - Starting port
       * it gets a port number and use it to three values frontend port , backend port and TCP port by increasing the value by one for each.       * it gets a port number and use it to three values frontend port , backend port and TCP port by increasing the value by one for each.
 +
 +^ Value ^ Sample inputs |
 +|''Hub IP Address'' | 192.168.1.6 |
 +|''Domain Description'' | distributed domain |
 +|''Starting Port'' | 12001 |
 +
  
 ===== validating the inputs ===== ===== validating the inputs =====
Line 59: Line 61:
 ===== creating new domain ===== ===== creating new domain =====
  
-  +  * first it will stop all the contexts and the domain in the hub node. 
 +  * delete the default domain0 by removing the domain0 certificate files. 
 +  * create a new domain with the ''TCP'' socket by executing <code bash>trisulctl_hub create domain</code> 
 +  * then it will enter the ''domain discription'' and ''port values'' given by user. 
 +  * once the domain is successfully created, it will install it by executing <code bash> trisulctl_hub install domain /usr/local/share/trisul-hub/domain0.cert </code> 
  
 ===== changing the endpoints ===== ===== changing the endpoints =====
  
 +<note>By default , Trisul uses an IPC connection for each Hub node. If this is the first remote probe you are adding. You
 +need to switch the Hub to a TCP connection mode.</note>
 +
 +  * changing the endpoints by executing <code bash> /usr/local/share/trisul-hub/change_endpoints </code>
 +===== Finishing up =====
  
 +  * after changing the endpoints it will restart the domain and contxts in the hub node.
 +  * and it ends with the success message.
  
  
hub_distributor.1715258867.txt.gz · Last modified: 2024/05/09 18:17 by partha