(UNIX only) 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.
dscp [-p]
or
dscp -v
To exit from dscp:
quit
or
exit
suppresses command-line prompts.
displays the version and copyright message of dscp and returns to the operating system.
Opens the default interfaces file for editing and suppresses the command-line prompt:
dscp -p
Set the SYBASE environment variable to the location of the current version of Adaptive Server before using dscp.
The dscp utility program is a text-based utility.
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.
Documentation Chapter 4, “Using dscp to View and Edit Server Entries”
Utilities dsedit