Class ::nsmcp::ServerTopology
::nsmcp::ServerTopology
create ... \
[ -command (default "::ns_stats") ] \
[ -description (default "Report the versions running on this site and describe NaviServer topology via ns_stats. Use for questions about installed runtime versions, loaded modules, build information, or the current installation before an upgrade. Returns NaviServer version, compiler and Tcl build information, OS/version/architecture, loaded module metadata including versions and build tags when reported, and driver library versions when available. Treat unreported versions as unknown. Also reports connection-pool limits, database-pool configuration and network bindings. Virtual-server modules, pools and bindings are restricted to the authenticated server; process information and network drivers are process-wide. Does not start sampling. Reports available=false on installations without ns_stats.") ] \
[ -inputSchema (default "{} object {type string object properties object {} additionalProperties boolean false}") ] \
[ -name (default "server_topology") ] \
[ -outputSchema (default "") ] \
[ -permission (default "diagnostics.runtime.read") ]
Defined in /usr/local/ns/tcl/nsmcp/lib/stats-tools.tclClass Relations
- class: ::nx::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- superclass: ::nsmcp::StatsTool
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::nx::Class create ::nsmcp::ServerTopology \
-superclass ::nsmcp::StatsTool
Methods (to be applied on instances)
execute (scripted, public)
<instance of nsmcp::ServerTopology
> execute context arguments
- Parameters:
- context (required)
- arguments (required)
- Testcases:
-
No testcase defined.
if {![:available]} {
return [:unavailable $context]
}
set data [${:command} describe -server [$context server]]
return [list {} object [list server string [$context server] available boolean true topology object [:encode topology $data]]]