# Obtaining system information by using the API

The sysinfo 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();

These methods return information about the Network Server running on the current machine on the default port number (1527).

- Obtaining Network Server runtime information
- Obtaining Network Server properties by using the getCurrent Properties method

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