# Obtaining system information by using the command line

To run sysinfo from the command line, use the following command while the Network Server is running:

    java org.apache.derby.drda.NetworkServerControl
    sysinfo [-h <hostname>][-p <portnumber>]

Administrative commands such as `org.apache.derby.drda.NetworkServerControl sysinfo` can only execute on the host where the server was started, even if the server was started with the `-h` option.

Parent topic: Obtaining system information
Related tasks
Obtaining system information by using the API