There are three "hidden" features that come bundled with the latest snapshot. They allow you to get very thorough information about the functioning of your node.
In order to enable them, add the following text to the Freenet settings file.
console.class=freenet.interfaces.servlet.MultipleHttpServletContainer
console.port=8000
console.params.servlet.1.uri=/ds
console.params.servlet.1.class=freenet.node.ds.DSConsole
console.params.servlet.1.name=DataStore Console
console.params.servlet.2.uri=/fs
console.params.servlet.2.class=freenet.fs.dir.FSConsole
console.params.servlet.2.name=FileSystem Console
console.params.servlet.3.uri=/rt
console.params.servlet.3.class=freenet.node.rt.RTConsole
console.params.servlet.3.name=Routing Table Console
You should also enable the service "console". The services line would typically look like:
services=fproxy,nodestatus,console
now, after you (re)start your node, you are ready to use the filesystem, datastore, and routing table consoles. Point your browser to:
- http://localhost:8000/rt to see the routing table console
- http://localhost:8000/fs to see the filesystem console
- http://localhost:8000/ds to see the datastore console
Deleting keys from the datastore console doesn't work (yet)
also, when your node is down: java freenet.node.FSTool
scipient: there's an alternate syntax if you need to specify multiple contexts here's the full example:
test.class=freenet.interfaces.servlet.MultipleHttpServletContainer
test.port=8001
test.params.context.1.uri=/foo
test.params.context.1.params.k1=v1
test.params.context.1.params.k2=v2
test.params.context.1.servlet.1.uri=/test1
test.params.context.1.servlet.1.class=freenet.interfaces.servlet.TestHttpServlet
test.params.context.1.servlet.1.name=Happy Foo Servlet 1
test.params.context.1.servlet.1.params.k1=v1
test.params.context.1.servlet.1.params.k2=v2
test.params.context.1.servlet.2.uri=/test2
test.params.context.1.servlet.2.class=freenet.interfaces.servlet.TestHttpServlet
test.params.context.1.servlet.2.name=Happy Foo Servlet 2
test.params.context.1.servlet.2.params.k1=v1
test.params.context.1.servlet.2.params.k2=v2
test.params.context.2.uri=/bar
test.params.context.2.params.k1=v1
test.params.context.2.params.k2=v2
test.params.context.2.servlet.1.uri=/test1
test.params.context.2.servlet.1.class=freenet.interfaces.servlet.TestHttpServlet
test.params.context.2.servlet.1.name=Happy Bar Servlet 1
test.params.context.2.servlet.1.params.k1=v1
test.params.context.2.servlet.1.params.k2=v2
test.params.context.2.servlet.2.uri=/test2
test.params.context.2.servlet.2.class=freenet.interfaces.servlet.TestHttpServlet
test.params.context.2.servlet.2.name=Happy Bar Servlet 2
test.params.context.2.servlet.2.params.k1=v1
test.params.context.2.servlet.2.params.k2=v2
This page needs a more thorough description of what DSConsole is and what it can. If you know it fill it in this page (SebastianSpaeth - 19 Jan 2002)
-- SebastianSpaeth - 19 Jan 2002
|