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 inetdactiveornot active. - To list the status of the telnet daemon, type the following command:
This command returns eitherlsnetsvc telnetactiveornot active. - To list the status of the ftp daemon, type the following command:
This command returns eitherlsnetsvc ftpactiveornot active.