# Access Disable Service Subcommand

access: Managers

Disables a directory service (either nis or ads) from the Service Processor name service lookup system:

> access disable service {nis | ads}

Arguments | Description
--- | ---
{NIS | ADS} | Specifies the service type: nis or ads.

Return Codes

Following are the return values for this command:

Code | Numeric Code | Description
--- | --- | ---
NWSE_Success | 0 | Command successfully completed.
NWSE_InvalidUsage | 1 | Invalid usage: bad parameter usage, conflicting options specified. Either domain or servers argument not provided for NIS or ADS options.
NWSE_RPCTimeout | 2 | Request was issued, but was not serviced by the server. RPC procedure timed out and the request may or may not have been serviced by the server.
NWSE_RPCNotConnected | 3 | Unable to connect to the RPC server.
NWSE_InvalidArgument | 4 | One or more arguments were incorrect or invalid. The service type is not valid.
NWSE_NoPermission | 6 | Not authorized to perform this operation.
NWSE_InvalidOpForState | 22 | Invalid operation for current state. The specified service is not in use.

Related Topics

System Management Commands

Access Command