Playing with our hosting service with telnet

We have chosen to start our hosting service with a telnet server for administration. We can telnet in and have a little play with it. Our interaction is minimal, and some of the output is large, but it's a start.

See Section [*] for a longer discussion of this, but this is what we're going to do. First we connect to the hosting service via telnet. You'll probably have to use your fully qualified domain name or IP address rather than just ``localhost''.

After connecting we'll get a list of commands. Then we'll have a look at hosting service's status, much of which is meaningless to anyone but the authors of the applications on the node. However, it shows broadly that things are running. Then we'll create a new hosting contract, which is an account allowing someone to run netlets on our hosting service and we'll take ``control'' of this account, meaning that we'll switch into it to see what's going on. After seeing what commands we have at our disposal, and seeing the status of that contract, we'll quit out of that contract and quit telnet.


% telnet victoria.intranet.hyperlink.com 2000
Trying 10.119.8.139...
Connected to victoria.intranet.hyperlink.com.
Escape character is '^]'.
admin> help
available commands:
Help - show this help
Quit - Close connection
status [<oid>] - show global hospitality status
control <contractid> - work with a specific contract
warrant <contractid> - get a contract control warrant
create [<oid> <string>]* - create a contract with arbitrary extra information
adminwarrant - get an admin warrant
list - list contract IDs
kill [<contractid>] - kill a contract
admin> list
Contracts
=========
contractid: 0
contractid: 1
admin> status
10.100.0: 100
10.100.3.6613600.1.0: org.jtrix.facets1.node.ISocketFactory
10.100.3.6613600.2: true
10.100.3.6613600.3: true
10.100.3.6613600.4.102.3: 100
10.100.3.6613601.1.0: org.jtrix.facets1.util.io.IFileSystem
10.100.3.6613601.2: true
10.100.3.6613601.3: true
10.100.3.6613601.4.101.1: true
10.100.3.6613601.4.101.2: true
10.100.4.1: 7
10.100.4.2: 4485688
10.100.4.3: 17371128
30.0.1: 100
30.0.2: 0
30.0.3: 0
30.0.4: org.jtrix.project.beatrix.plugins.netlets.Manager
30.0.5.0: 0
30.0.5.1: 0
30.0.5.2.0: 0
30.0.5.2.1: 0
30.0.5.2.2: 0
30.0.5.3: 0
30.0.6.1.1: <<null>>
30.0.6.1.2: Beatrix Netlet: O=jtrix, CN=sas2, N=sas01, PID=8907
30.0.6.2.0: Wed Dec 05 10:51:53 GMT 2001
30.0.6.2.1: 0a77088b0404000001000000
30.0.6.2.2: Initial Manager
30.0.6.2.3.0: LEADER
30.0.6.2.4.0: admin
30.0.6.2.4.1: admin-embedded
30.0.6.2.4.2: contract
30.0.6.2.4.3: contract-embedded
30.0.6.2.8: O=jtrix, CN=sas2, N=sas01, PID=8907
30.0.6.2.9: 2
30.0.6.2.10: 60
30.0.7: 0
30.1.1: 100
30.1.2: 0
30.1.3: 0.-1767796489
30.1.4: org.jtrix.project.beatrix.plugins.netlets.Worker
30.1.5.0: 0
30.1.5.1: 0
30.1.5.2.0: 0
30.1.5.2.1: 0
30.1.5.2.2: 0
30.1.5.3: 0
30.1.6.1.1: <<null>>
30.1.6.1.2: Beatrix Netlet: O=jtrix, CN=sas2, N=sas01, PID=8907
30.1.6.2.0: Wed Dec 05 10:52:03 GMT 2001
30.1.6.2.1: 0a77088b0504000001000000
30.1.6.2.2: worker_pool_1_1007549515659.0
30.1.6.2.3.0: WORKER
30.1.6.2.3.1: worker_pool_1
30.1.6.2.5: 0
30.1.6.2.7.45632.0: victoria.intranet.hyperlink.com/10.119.8.139
30.1.6.2.7.45632.1: 50000
30.1.6.2.8: O=jtrix, CN=sas2, N=sas01, PID=8907
30.1.7: 1
50.0.2.0.1: 6613601
50.0.2.1.1: 6613600
50.0.3: 0
50.1.3: 1
90.0.1: 6613601
90.0.2: 0
90.0.4: 100
90.1.1: 6613600
90.1.2: 0
90.1.4: 100
100.10.1: <<warrant>>
100.10.2: <<byte array>>
100.10.3: 2
100.10.4: 2
100.10.5: 2
100.10.7.6613600.10.1: 50000
100.10.7.6613600.20.50000: true
100.10.7.6613601.10.0: dsk-6613601-0
100.10.8.6613600.50000: 100
100.10.8.6613601.10.0: 100
100.20.1.20.0: console created contract
100.20.1.20.1: sample
100.30.100.1: 20
100.30.100.2: 0a77088b0204000001000000
admin> create
created contract #2
admin> list
Contracts
=========
contractid: 0
contractid: 1
contractid: 2
admin> control 2
control> help
available commands:
filter [<event>]* - set auditing filter
connectresource <node> <instance> - create a resource
setmanager <warrant url> <time> - Set application manager and lapse time
exec <node> <descriptor url> [<name> <id>]* - execute a netlet
dmesg [-c] - fetch (and flush) auditing buffer
Help - show this help
Quit - Close connection
status - show hospitality status for this contract
disconnectresource <instance> - disconnect a resource
releaseresource <instance> - create a resource
kill <netlet id> - kill a netlet
createresource <type> - create a resource
cancellease - release management lease
acquirelease <wait> <time> - wait <wait> ms for management lease of <time> ms
control> status
10.100.0: 100
10.100.3.6613600.1.0: org.jtrix.facets1.node.ISocketFactory
10.100.3.6613600.2: true
10.100.3.6613600.3: true
10.100.3.6613600.4.102.3: 100
10.100.3.6613601.1.0: org.jtrix.facets1.util.io.IFileSystem
10.100.3.6613601.2: true
10.100.3.6613601.3: true
10.100.3.6613601.4.101.1: true
10.100.3.6613601.4.101.2: true
10.100.4.1: 7
10.100.4.2: 4485688
10.100.4.3: 17371128
50.2.3: 2
control> quit

admin> quit

Connection closed by foreign host.
% 

Nik Silver 2002-03-09