![]() |
iPlanet Web Server, Enterprise Edition Administrator's Guide |
Appendix A Command Line Utilities
This appendix provides instructions for using command line utilities in place of the user interface screens.
This appendix contains the following sections:
Formatting LDIF Entries
Formatting LDIF Entries
LDIF consists of one or more directory entries separated by a blank line. Each LDIF entry consists of an optional entry ID, a required distinguished name, one or more object classes, and multiple attribute definitions.
For information about formatting LDIF entries, see the iPlanet Directory Server 5.0 Command and File Reference or the Netscape Schema Reference, Directory Server 4.0 on http://docs.iplanet.com/docs/manuals/directory.html.
Modifying Database Entries Using ldapmodify
You use the ldapmodify command-line utility to modify entries in an existing Directory Server database. ldapmodify opens a connection to the specified server using the distinguished name and password you supply, and modifies the entries based on LDIF update statements contained in a specified file. Because ldapmodify uses LDIF update statements, ldapmodify can do everything that ldapdelete can do.
For more information about command-line utilities used with Directory Server database entries, see the iPlanet Directory Server 5.0 Command and File Reference or the Netscape Schema Reference, Directory Server 4.0 on http://docs.iplanet.com/docs/manuals/directory.html.
HttpServerAdmin (Virtual Server Administration)
HttpServerAdmin is a command line utility that performs the same administrative functions as the virtual server user interface in the Server Manager and the Class Manager. If you prefer to set up your virtual servers using the command line interface, use HttpServerAdmin.
HttpServerAdmin is in server_root/bin/https/httpadmin/bin.
Before you can run HttpServerAdmin, you need to set the environment variable IWS_SERVER_HOME to the server root directory in your environment.
For example, on Unix/Linux systems:
setenv IWS_SERVER_HOME /usr/iplanet/servers
On the Control Panel, choose System.
Type IWS_SERVER_HOME in the Variable field and the path to your server root in the Value field.
Note In order to perform all commands, you need to have write permissions to the file server.xml where the virtual server information is stored.
HttpServerAdmin Syntax
The HttpServerAdmin syntax is as follows:
HttpServerAdmin command_name command_options -d server_root -sinst http_instance
You can get an online explanation of the command parameters by typing the following command:
There are four possible values for the command_name parameter:
Each command has its own set of command options. For more information, see the sections in this chapter that describe each command.
Regardless of the value of the command parameter, the parameters shown in Table A-1 can apply to all uses of the HttpServerAdmin command.
control Command
Use the control command to start, stop, and disable classes and virtual servers. If you do not specify a virtual server, the command starts, stops or disables every virtual server in the class.
Options
Use the options shown in Table A-2 with the control command to control classes and virtual servers.
Syntax
HttpServerAdmin control -cl classname, -control_option [-id virtual_server] -d server_root -sinst http_instance
Parameters
Use these parameters with the command options to control virtual servers
Table A-3    Control command parameters
Parameters
Value
(optional) Designates the virtual server ID you are controlling.
create Command
Use the create command to create classes of virtual servers, virtual servers, listen sockets and connection groups.
Options
Use the options shown in Table A-4 with the create command to create classes, listen sockets, and virtual servers.
Table A-4    Create command options
Option
Value
Each of these options in turn has its own parameters, which are shown in the following sections.
Create Virtual Server Class
Use this option of the create command to create a virtual server class.
Syntax
HttpServerAdmin create -c -cl classname [-docroot document_root] [-obj obj.conf_file] -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-5 with the create -c command option to create classes.
HttpServerAdmin create -c -cl myclass1 -d /export/iplanet/servers -sinst https-iplanet.com
Create Connection Group
Use this option of the create command to create a connection group.
Syntax
HttpServerAdmin create -g group_ID -lsid listen_socket -ip IPaddress -sname server_name -defaultvs default_virtual_server -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-8 with the create -g command option to create connection groups.
HttpServerAdmin create -g conngroup2 -lsid ls1 -ip 1.1.1.1 -sname iplanet -defaultvs vs2 -d server_root -sinst https-iplanet.com
Create Listen Socket
Use this option of the create command to create a listen socket.
Syntax
HttpServerAdmin create -l -ip ip_address -port port_number -sname server_name -defaultvs default_virtual_server [-sec security] [-acct number_of_accept_threads] -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-7 with the create -l command option to create listen sockets.
HttpServerAdmin create -l -id ls3 -ip 0.0.0.0 -port 1333 -sname austen -defaultvs vs2 -sec on -acct 4 -d /export/carey/server6 -sinst https-austen.com
Create Virtual Server
Use this option of the create command to create a virtual server.
Please note that if you do not include values for some of the optional parameters, defaults are provided. You can always change the default values after the virtual server is created.
Syntax
HttpServerAdmin create -v -id virtual_server -cl classname -urlh urlhosts -conngroupid connection_group_ID[-state state][-docroot document_root] [-mime mime_types_file] [-aclid acl_ID] -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-8 with the create -v command option to create virtual servers.
delete Command
Use the delete command to delete classes of virtual servers, virtual servers, and listen sockets.
Options
Use the options shown in Table A-9 with the delete command to delete classes.
Table A-9    Delete command options
Option
Value
Delete Class
Use this option of the delete command to delete a virtual server class.
Syntax
HttpServerAdmin delete -c -cl classname -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-9 with the delete command to delete classes.
Table A-10    Delete class parameters
parameter
Value
HttpServerAdmin delete -c -cl class1 -d /export/iplanet/server6 -sinst https-iplanet.com
Delete Connection Group
Use this option of the delete command to delete a connection group.
Syntax
HttpServerAdmin delete -g -id connection_group -lsid listen_socket -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-9 with the delete command to delete a connection group.
Table A-11    Delete connection group parameters
parameter
Value
HttpServerAdmin delete -g -id conngroup3 -lsid ls2 -d /export/iplanet/server6 -sinst https-iplanet.com
Delete Listen Socket
Use this option of the delete command to delete a listen socket.
Syntax
HttpServerAdmin delete -l -id listen_socket -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-9 with the delete command to delete classes.
Table A-12    Delete class parameters
parameter
Value
HttpServerAdmin delete -l -id ls3 -d /export/iplanet/server6 -sinst https-iplanet.com
Delete Virtual Server
Use this option of the delete command to delete a virtual server.
Syntax
HttpServerAdmin delete -v -id virtual_server -cl classname -d server_root -sinst http_instance
Parameters
Use the parameters shown in Table A-9 with the delete command to delete a virtual server.
Table A-13    Delete virtual server parameters
parameter
Value
HttpServerAdmin delete -v -id vs3 -cl class1 -d /export/iplanet/server6 -sinst https-iplanet.com
list Command
Use the list command to list classes of virtual servers, virtual servers, listen sockets and connection groups.
Syntax
HttpServerAdmin list -command_option -d server_root -sinst http_instance
Table A-14    List command options
Option
Value
The list of information appears in your command window.
Previous Contents Index DocHome Next
Copyright © 2001 Sun Microsystems, Inc. Some preexisting portions Copyright © 2001 Netscape Communications Corp. All rights reserved.
Last Updated August 08, 2001