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 should 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 will return either active or not active.lsnetsvc inetd
- To list the status of the telnet daemon, type the following
command:
This command will return either active or not active.lsnetsvc telnet
- To list the status of the ftp daemon, type the following
command:
This command will return either active or not active.lsnetsvc ftp