# Obtaining system information

You can obtain information about the Network Server, such as version and current property values, Java information, and Derby database server information, by using the `sysinfo` utility.

The `sysinfo` utility is available from scripts, the command line, and the NetworkServerControl API.

The following scripts are located in the `$DERBY_HOME/bin` directory. Before running these scripts, make sure that the Derby Network Server is started.

- Run the following script to obtain information about the Network Server on a Windows system:

      NetworkServerControl.bat sysinfo [-h hostname][-p portnumber]

- Run the following script to obtain information about the Network Server on a UNIX system:

      NetworkServerControl sysinfo [-h hostname] [-p portnumber]

For more information on the `sysinfo` utility, see the Derby Tools and Utilities Guide.

You can also use Java Management Extensions (JMX) technology to obtain system information. For details, see Using Java Management Extensions (JMX) technology.

- Obtaining system information by using the command line
  To run sysinfo from the command line, use a command like one of the following while the Network Server is running.
- Obtaining system information by using the API
  The getSysinfo method produces the same information as the sysinfo command.

Parent topic: Using the Network Server with preexisting Derby applications
Related concepts
The Network Server and Java Virtual Machines (JVMs)
Accessing the Network Server by using the network client driver
Accessing the Network Server by using a DataSource object
XA and the Network Server
Using the Derby tools with the Network Server
Differences between running Derby in embedded mode and using the Network Server
Related tasks
Installing required jar files and adding them to the classpath
Starting the Network Server
Shutting down the Network Server
Setting port numbers