lsnetsvc command
Purpose
Displays the status of a network service.
Syntax
lsnetsvc NetworkService
Description
The lsnetsvc command displays the status of a network service. Use the NetworkService parameter to specify which service must have its status displayed.
Parameters
Parameter name | Description |
---|---|
NetworkService | Specify on the following values:
|
Exit Status
Return Value | Description |
---|---|
9 | Invalid network service |
Examples
- To list the status of the inetd subsystem, type the following command:
This command returns eitherlsnetsvc inetd
active
ornot active
. - To list the status of the telnet daemon, type the following command:
This command returns eitherlsnetsvc telnet
active
ornot active
. - To list the status of the ftp daemon, type the following command:
This command returns eitherlsnetsvc ftp
active
ornot active
.