Difference between revisions of "Ns info"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
: returns the primary IP address of this machine, or "0.0.0.0" if unable to determine | : returns the primary IP address of this machine, or "0.0.0.0" if unable to determine | ||
* '''ns_info argv0''' | * '''ns_info argv0''' | ||
+ | |||
+ | : returns the currently running nsd binary as launched and prior to normalizing path | ||
* '''ns_info boottime''' | * '''ns_info boottime''' | ||
Line 70: | Line 72: | ||
* '''ns_info scheduled''' | * '''ns_info scheduled''' | ||
* '''ns_info server''' | * '''ns_info server''' | ||
+ | |||
+ | : returns the name of the current virtual server. During the bootstrap process, when processing the config file, ns_info server returns the value of the -s parameter in AOLserver builds after 2004-12-02. | ||
* '''ns_info servers''' | * '''ns_info servers''' | ||
+ | : returns a list of virtual servers in the current nsd process | ||
* '''ns_info sockcallbacks''' | * '''ns_info sockcallbacks''' | ||
* '''ns_info tag''' | * '''ns_info tag''' | ||
Line 76: | Line 81: | ||
: returns the CVS tag (NSD_TAG from nsd.h); not guaranteed to be useful | : returns the CVS tag (NSD_TAG from nsd.h); not guaranteed to be useful | ||
* '''ns_info tcllib''' | * '''ns_info tcllib''' | ||
+ | : returns the path the virtual server's private tcl library - identical to [[[ns_library]] private] | ||
* '''ns_info threads''' | * '''ns_info threads''' | ||
* '''ns_info uptime''' | * '''ns_info uptime''' |
Revision as of 01:06, 4 October 2009
Man page: http://aolserver.com/man/4.0/tcl/ns_info.html
NAME
- ns_info - Return information about various aspects of the running AOLserver
SYNOPSIS
- ns_info option ?arg arg ...?
DESCRIPTION
- This command provides information about the current state of the running AOLserver. The legal options (which may be abbreviated) are:
- ns_info address
- returns the primary IP address of this machine, or "0.0.0.0" if unable to determine
- ns_info argv0
- returns the currently running nsd binary as launched and prior to normalizing path
- ns_info boottime
- returns the time in epoch seconds since the current server was started
- ns_info builddate
- returns the date and time at which the current server was compiled, e.g.: "Jul 20 2004 at 14:57:20"
- ns_info callbacks
- ns_info config
- returns the absolute path to the config file used to start the server
- ns_info home
- returns the current working directory of the server
- ns_info hostname
- returns the value of gethostname(), or "localhost" if that fails
- ns_info label
- returns the value of NSD_LABEL from nsd.h, e.g. "aolserver4_0"
- ns_info locks
- lists the mutexes that currently exist. A 5-element list is returned for each mutex: Dossy mutex name, {}, unique id, lock counter, busy counter
- ns_info log
- returns the name of the error log specified by the "serverlog" parameter in the "ns/parameters" section, or "server.log" if not defined. Prepends the server's current working directory
- ns_info major
- returns the value of NS_MAJOR_VERSION from ns.h, e.g. "4"
- ns_info minor
- returns the value of NS_MINOR_VERSION from ns.h, e.g. "0"
- ns_info name
- returns the value of NSD_NAME from nsd.h (currently 'AOLserver')
- ns_info nsd
- returns the absolute path to the currently running nsd binary
- ns_info pageroot
- returns the absolute path to the page root
- ns_info patchlevel
- returns the value of NS_PATCH_LEVEL from ns.h, e.g. "4.0.7"
- ns_info pid
- returns the process ID of the current nsd process
- ns_info platform
- returns the name of the current platform, or "?" if unable to determine
- ns_info pools
- ns_info scheduled
- ns_info server
- returns the name of the current virtual server. During the bootstrap process, when processing the config file, ns_info server returns the value of the -s parameter in AOLserver builds after 2004-12-02.
- ns_info servers
- returns a list of virtual servers in the current nsd process
- ns_info sockcallbacks
- ns_info tag
- returns the CVS tag (NSD_TAG from nsd.h); not guaranteed to be useful
- ns_info tcllib
- returns the path the virtual server's private tcl library - identical to [[[ns_library]] private]
- ns_info threads
- ns_info uptime
- ns_info version
- ns_info winnt
EXAMPLES
SEE ALSO
-