diff options
author | Diva Canto | 2011-02-05 17:57:30 -0800 |
---|---|---|
committer | Diva Canto | 2011-02-05 17:57:30 -0800 |
commit | b20ab1063f5717a69fb3226c44b4af5228280d35 (patch) | |
tree | c2c9ae477759644e6d394243fada94d92405aa9c /OpenSim/Region/Application/OpenSim.cs | |
parent | Add sane packing of ServiceURLs -- OSDMap. The old way (OSDArray) is still su... (diff) | |
download | opensim-SC-b20ab1063f5717a69fb3226c44b4af5228280d35.zip opensim-SC-b20ab1063f5717a69fb3226c44b4af5228280d35.tar.gz opensim-SC-b20ab1063f5717a69fb3226c44b4af5228280d35.tar.bz2 opensim-SC-b20ab1063f5717a69fb3226c44b4af5228280d35.tar.xz |
Added a couple of console commands to help diagnose issues:
show circuits: shows the lists of agent circuit data
show http-handlers: shows the currently registered http handlers
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index ed4b620..bbcc588 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -294,6 +294,14 @@ namespace OpenSim | |||
294 | "show connections", | 294 | "show connections", |
295 | "Show connection data", HandleShow); | 295 | "Show connection data", HandleShow); |
296 | 296 | ||
297 | m_console.Commands.AddCommand("region", false, "show circuits", | ||
298 | "show circuits", | ||
299 | "Show agent circuit data", HandleShow); | ||
300 | |||
301 | m_console.Commands.AddCommand("region", false, "show http-handlers", | ||
302 | "show http-handlers", | ||
303 | "Show all registered http handlers", HandleShow); | ||
304 | |||
297 | m_console.Commands.AddCommand("region", false, "show modules", | 305 | m_console.Commands.AddCommand("region", false, "show modules", |
298 | "show modules", | 306 | "show modules", |
299 | "Show module data", HandleShow); | 307 | "Show module data", HandleShow); |
@@ -943,6 +951,48 @@ namespace OpenSim | |||
943 | MainConsole.Instance.Output(connections.ToString()); | 951 | MainConsole.Instance.Output(connections.ToString()); |
944 | break; | 952 | break; |
945 | 953 | ||
954 | case "circuits": | ||
955 | System.Text.StringBuilder acd = new System.Text.StringBuilder("Agent Circuits:\n"); | ||
956 | m_sceneManager.ForEachScene( | ||
957 | delegate(Scene scene) | ||
958 | { | ||
959 | //this.HttpServer. | ||
960 | acd.AppendFormat("{0}:\n", scene.RegionInfo.RegionName); | ||
961 | foreach (AgentCircuitData aCircuit in scene.AuthenticateHandler.AgentCircuits.Values) | ||
962 | acd.AppendFormat("\t{0} {1} ({2})\n", aCircuit.firstname, aCircuit.lastname, (aCircuit.child ? "Child" : "Root")); | ||
963 | } | ||
964 | ); | ||
965 | |||
966 | MainConsole.Instance.Output(acd.ToString()); | ||
967 | break; | ||
968 | |||
969 | case "http-handlers": | ||
970 | System.Text.StringBuilder handlers = new System.Text.StringBuilder("Registered HTTP Handlers:\n"); | ||
971 | |||
972 | handlers.AppendFormat("* XMLRPC:\n"); | ||
973 | foreach (String s in HttpServer.GetXmlRpcHandlerKeys()) | ||
974 | handlers.AppendFormat("\t{0}\n", s); | ||
975 | |||
976 | handlers.AppendFormat("* HTTP:\n"); | ||
977 | List<String> poll = HttpServer.GetPollServiceHandlerKeys(); | ||
978 | foreach (String s in HttpServer.GetHTTPHandlerKeys()) | ||
979 | handlers.AppendFormat("\t{0} {1}\n", s, (poll.Contains(s) ? "(poll service)" : string.Empty)); | ||
980 | |||
981 | handlers.AppendFormat("* Agent:\n"); | ||
982 | foreach (String s in HttpServer.GetAgentHandlerKeys()) | ||
983 | handlers.AppendFormat("\t{0}\n", s); | ||
984 | |||
985 | handlers.AppendFormat("* LLSD:\n"); | ||
986 | foreach (String s in HttpServer.GetLLSDHandlerKeys()) | ||
987 | handlers.AppendFormat("\t{0}\n", s); | ||
988 | |||
989 | handlers.AppendFormat("* StreamHandlers ({0}):\n", HttpServer.GetStreamHandlerKeys().Count); | ||
990 | foreach (String s in HttpServer.GetStreamHandlerKeys()) | ||
991 | handlers.AppendFormat("\t{0}\n", s); | ||
992 | |||
993 | MainConsole.Instance.Output(handlers.ToString()); | ||
994 | break; | ||
995 | |||
946 | case "modules": | 996 | case "modules": |
947 | MainConsole.Instance.Output("The currently loaded shared modules are:"); | 997 | MainConsole.Instance.Output("The currently loaded shared modules are:"); |
948 | foreach (IRegionModule module in m_moduleLoader.GetLoadedSharedModules) | 998 | foreach (IRegionModule module in m_moduleLoader.GetLoadedSharedModules) |