stopnetsvc command

Purpose

Disables the ndpd-host, telnet, ftp, xntpd, ssh, snmp, ldap, or cimserver daemon.

Syntax

stopnetsvc [NetworkService][TracingSelection]

Description

The stopnetsvc command stops the ndpd-host, telnet, ftp, xntpd, ssh, snmp, ldap, or cimserver daemon. By disabling a service daemon, users can prevent anyone from being able to connect through the associated network service. The tracelog or errorlog options stop sending CLI tracing information or system error log information to the system log.

Parameters

Parameter Description
NetworkService The following values can be used:
ndpd-host
Disables the ndpd-host daemon.
telnet
Disables the telnet daemon.
ftp
Disables the ftp daemon.
xntpd
Disables the xntpd daemon.
ssh
Disables the ssh daemon.
snmp
Disables the snmp daemon.
ldap
Disables the ldap daemon.
cimserver
Disables the cimserver daemon.
ALL
Disables all service daemons, but does not disable the tracelog or errorlog option.
TraceSelection The following values can be used:
tracelog
Stops sending CLI tracing information to the system log.
errorlog
Stops sending system error log information to the system log.
Note: A padmin user can use the vi command to view files sent to the system log.

Examples

  1. To disable the telnet daemon, type the following command:
    stopnetsvc telnet
  2. To disable the ftp daemon, type the following command:
    stopnetsvc ftp
  3. To disable the ndpd-host daemon, type the following command:
    stopnetsvc ndpd-host
    This command produces output similar to the following:
    0513-044 The /usr/sbin/ndpd-host Subsystem was requested to stop.
  4. To stop the tracelog option, type the following command:
    stopnetsvc tracelog
  5. To disable all service daemons, type the following command:
    stopnetsvc ALL



Last updated: Wed, November 18, 2020