dscp

(UNIX only) A text-based utility that allows you to view and edit server entries in the interfaces file from the command line in UNIX platforms.

The utility is located in $SYBASE/$SYBASE_OCS/bin.

Set the SYBASE environment variable to the location of the current version of SAP ASE before using dscp.

Syntax

dscp [-p]

or:

dscp -v
To exit from dscp:
quit
or:
exit

Parameters

Examples

Usage

You can perform various functions by entering commands at the dscp prompt:
  • add servername – adds server entry servername in the current session. dscp prompts you for information about servername. Press Return to accept the default value, which is shown in square brackets [  ]. Enter “#done” to exit add mode.

  • addattr servername – adds an attribute to the server entry servername in the current session.

  • close [sess] – closes a session identified by the sess number. If you do not specify sess, closes the current session.

  • config – displays configuration information related to your Sybase environment.

  • copy name1 to {name2 | sess | sess name2} – copies server entry name1 in the current session to:
    • Server entry name2 in the current session,

    • Session sess, or

    • Server entry name2 in session sess.

  • copyall to sess – copies all server entries in the current session to session sess.

  • del servername – deletes server entry servername in the current session.

  • delete-all – deletes all server entries in the current session.

  • exit – exits dscp.

  • help, ?, h – displays the online help.

  • list [all] – lists the server entries for the current session. To list the names of the entries, use the list command. To list the attributes for each entry, use the list all command.

  • mod servername – modifies server entry servername in the current session. dscp prompts you for information about servername. Press Return to accept the default value, which is shown in square brackets [ ]. Enter “#done” to exit modify mode.

  • open [dsname] – opens a session for the specified directory service, where dsname is the directory service name. If you do not specify a value for dsname, this command opens a session for the default directory service. To open a session, specify the value “InterfacesDriver” for dsname.

  • quit – exits dscp.

  • read servername – displays the contents of server entry servername.

  • sess – lists all open sessions.

  • [switch] sess – makes session number sess the current session.

Related concepts
Using dscp to View and Edit Server Entries
Threaded Versions of Utilities
Utility Commands Reference
Installation or Configuration Utilities
Related reference
dsedit