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

NetworkService The following values may be used:
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, executing the startnetsvc command with any of the supported network services will reactivate the inetd subsystem.
telnet
Returns the status of the telnet daemon
ftp
Returns the status of the ftp daemon

Exit Status

9 Invalid network service

Examples

  1. To list the status of the inetd subsystem, type:
    lsnetsvc inetd
    This command will return either active or not active.
  2. To list the status of the telnet daemon, type:
    lsnetsvc telnet
    This command will return either active or not active.
  3. To list the status of the ftp daemon, enter:
     lsnetsvc ftp
    This command will return either active or not active.

Related Information

The entstat command, the hostmap command, the hostname command, the mktcpip command, the netstat command, the optimizenet command, the startnetsvc command, and the stopnetsvc command.


Send feedback |  Rate this page