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: - cimserver
- Returns the status of the cimserver daemon.
- inetd
- Returns the status of the inetd subsystem. The inetd subsystem
must be in the active state for the telnet and ftp daemons
to be active. If the inetd subsystem is in the inoperative
state, when you start the startnetsvc command with any of the
supported network services it reactivates the inetd subsystem.
- ssh
- Returns the status of the ssh daemon.
- telnet
- Returns the status of the telnet daemon.
- ftp
- Returns the status of the ftp daemon.
- xntpd
- Returns the status of the xntpd daemon.
|
Exit Status
Return Value |
Description |
9 |
Invalid network service |
Examples
- To list the status of the inetd subsystem, type:
lsnetsvc inetd
This
command will return either active or not
active.
- To list the status of the telnet daemon, type:
lsnetsvc telnet
This
command will return either active or not
active.
- To list the status of the ftp daemon, enter:
lsnetsvc ftp
This
command will return either active or not
active.