Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[terapaths@terapaths yee]$ 
[terapaths@terapaths yee]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/terapaths/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/terapaths/.ssh/id_rsa.
Your public key has been saved in /home/terapaths/.ssh/id_rsa.pub.
The key fingerprint is:
cd:74:d1:37:b0:0c:a5:1a:6f:c7:e4:62:40:ea:12:3b terapaths@terapaths
[terapaths@terapaths yee]$ 
[terapaths@terapaths yee]$ 
[terapaths@terapaths yee]$ cat /home/terapaths/.ssh/id_rsa.pub > /home/terapaths/.ssh/authorized_keys

Check Service

Code Block

http://192.124.59.130:53470

Log into the SJSAS server and determine that under the task bar, we have

Applications->Web Applications

and that it shows the terapaths* applications

Application

Description

terapathsWebInterface

Web frontend to terapaths

terapathsInternalWebServices

terapathsPublicWebServices

terapathsESnetOSCARSProxy

Interaction with OSCARS

terapathsRemoteTPsListeners

Interaction with other terapaths instances

terapathsNetworkDeviceControllers

Router interactions

Web Interface

Located at

http://192.124.59.130:40860/terapathsWebInterfaceImage Added

You can log in using accounts that have been setup in the MySQL table 'users'; if you can't log on, that's because you don't have an account in the database.

Code Block

mysql> select * from users;
+----+-----------+-------------------------------------------+----------+------+
| id | userName  | passWord                                  | type     | info |
+----+-----------+-------------------------------------------+----------+------+
|  1 | terapaths | ***************************************** | standard | NULL | 
+----+-----------+-------------------------------------------+----------+------+
1 row in set (0.00 sec)

In the above case, you can see that there is only one terapaths user. The passWord is stored from the function password().

Logging in will show some IP addresses and a table at the bottom of green boxes. This is the reservation table. Click once on a box to select the appropriate time and bandwidth allocation requested. Click again somewhere else to select the end time.

This will then take you to a confirmation page where the details can be finalised.

Schedules

Schedules are created on the web interface and stored in the table reservations:

Code Block

mysql> select * from reservations;
+--------------------+-----------------------+---------------+----------+----------+----------------+--------------------+-----------+---------------+-----------+-----------+----------------+------------+------------+----------------+-------------+-------------+--------+
| id                 | relatedReservationIds | startTime     | duration | protocol | direction      | bandwidthClassName | bandwidth | timeout       | userName  | who       | srcIp          | srcPortMin | srcPortMax | destIp         | destPortMin | destPortMax | status |
+--------------------+-----------------------+---------------+----------+----------+----------------+--------------------+-----------+---------------+-----------+-----------+----------------+------------+------------+----------------+-------------+-------------+--------+
| SLAC-1194994094410 | NULL                  | 1194993900000 |    36000 | tcp      | unidirectional | AF41               | 100000000 | 1195029900000 | terapaths | terapaths | 192.124.59.200 |      10000 |      10000 | 192.124.59.204 |       10000 |       10000 | active | 
+--------------------+-----------------------+---------------+----------+----------+----------------+--------------------+-----------+---------------+-----------+-----------+----------------+------------+------------+----------------+-------------+-------------+--------+
1 row in set (0.00 sec)

Here we see one active reservation. status=temporary reservations may appear that reflect in transient reservations that are being created.

Router configs

Routers are intrinsically defined in the table under routers:

Code Block

mysql> select * from routers;
+----+----------------+------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+----------+--------------------+----------------+---------------------+----------+
| id | ipAddress      | name | routerInfo                                     | driverParameters                                                                                                                            | driverId | basicConfiguration | managingNodeId | bottleneckBandwidth | position |
+----+----------------+------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+----------+--------------------+----------------+---------------------+----------+
|  1 | 192.124.59.129 | tera | hardware,CISCO,type,WS-6509,os,IOS12.2(18)SXD1 | system_prompt,swh-iepm-10g,user_name,********,entry_pass,********,enable_pass,********,policy_name_root,QoS_slac |        3 | NULL               |              1 |                NULL | edge     | 
+----+----------------+------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+----------+--------------------+----------------+---------------------+----------+
1 row in set (0.00 sec)

The driverParameters defines the expect script info for logging into the router. the values comes as key-value pairs.

The driverId field determines the driver to use to communication to by Terapaths. It references an index value in the routerDrivers table:

Code Block

mysql> describe routerDrivers;
+---------------+---------------------+------+-----+---------+----------------+
| Field         | Type                | Null | Key | Default | Extra          |
+---------------+---------------------+------+-----+---------+----------------+
| id            | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment | 
| name          | varchar(50)         | YES  | UNI | NULL    |                | 
| driverInfo    | text                | YES  |     | NULL    |                | 
| javaClassFile | varchar(255)        | YES  |     | NULL    |                | 
| javaClassName | varchar(255)        | YES  |     | NULL    |                | 
| javaClass     | longblob            | YES  |     | NULL    |                | 
+---------------+---------------------+------+-----+---------+----------------+
6 rows in set (0.01 sec)

note that contains the java byte code in the 3 last fields.

Code Block

mysql> select id,name,driverInfo from routerDrivers;
+----+---------------------------+---------------------------------------------------------+
| id | name                      | driverInfo                                              |
+----+---------------------------+---------------------------------------------------------+
|  1 | DUMMY_DRIVER              | hardware,DUMMY,type,DUMMY,os,DUMMY,comm_protocol,DUMMY  | 
|  2 | CISCO_WS-C6509_IOS_TELNET | hardware,CISCO,type,WS-6509,os,IOS,comm_protocol,TELNET | 
|  3 | CISCO_WS-C6509_IOS_SSH    | hardware,CISCO,type,WS-6509,os,IOS,comm_protocol,SSH    | 
+----+---------------------------+---------------------------------------------------------+
3 rows in set (0.00 sec)

show's the info for 3 drivers. Note that in the above router, we had id ref of 3 - which refers to the SSH driver.

Adding in External Services

Code Block

mysql> select * from routerManagers;
+----+----------------+-------------------------------+-----------------------------------------------------------------------+---------------------+------------------------------+
| id | ipAddress      | name                          | wsdlURL                                                               | interface           | managerDir                   |
+----+----------------+-------------------------------+-----------------------------------------------------------------------+---------------------+------------------------------+
|  1 | 192.124.59.130 | terapaths01.slac.stanford.edu | https://192.124.59.130:48580/terapathsNetworkDeviceControllers/tpsNDC | GigabitEthernet3/33 | /home/terapaths/routerConfig | 
+----+----------------+-------------------------------+-----------------------------------------------------------------------+---------------------+------------------------------+
1 row in set (0.00 sec)

Code Block

mysql> select * from remoteLANServiceURL;
+---------------+---------------+-----------------+--------+-----------------------------------------------------------------+------------+
| ipAddress     | mask          | maskedIpAddress | prefix | wsdlURL                                                         | preference |
+---------------+---------------+-----------------+--------+-----------------------------------------------------------------+------------+
| 198.124.220.0 | 255.255.255.0 |      3330071552 |     24 | http://198.124.220.9:48588/terapathsRemoteTPsListeners/tpsRTPsL |          0 | 
+---------------+---------------+-----------------+--------+-----------------------------------------------------------------+------------+
1 row in set (0.00 sec)