# 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.

    java -jar $DERBY_HOME/lib/derbyrun.jar server sysinfo
      [-h hostname][-p portnumber]

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

Administrative commands such as `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