# Obtaining system information by using the API

The `getSysinfo` method produces the same information as the `sysinfo` command.

The signature for this method is

    String getSysinfo();

For example:

    NetworkServerControl serverControl = new NetworkServerControl();
    String myinfo = serverControl.getSysinfo();

The `getSysinfo` method returns information about the Network Server that is running on the current machine on the default port number (1527).

- Obtaining Network Server runtime information
  Use the runtimeinfo command or the getRuntimeInfo method to get memory usage and current session information about the Network Server, including user, database, and prepared statement information.
- Obtaining Network Server properties by using the getCurrentProperties method
  The getCurrentProperties method is a Java method that you can use to obtain information about the Network Server.

Parent topic: Obtaining system information
Related tasks
Obtaining system information by using the command line