EPICenter Utilities
EPICenter Concepts and Solutions Guide
260
Table 18 specifies the options you can use with this command:
ImportResources Examples
The following examples illustrate the usage of these commands.
● To import resources from a tab-delimited file named importdata.txt into a source group named
ImportedUsers in the EPICenter database running the local server with the default administrator
name and password, enter the following command:
ImportResources -user admin -s ImportedUsers -f importdata.txt
● To import resources from an LDAP directory from a LDAP server into a source group named
CorpUsers in the EPICenter database running on host
snoopy on port 81, with EPICenter login
“master” and password “king,” enter the following command:
ImportResources -host snoopy -port 81 -user master -password king
-s CorpUsers -ldap
This requires a configuration file named LDAPConfig.txt to be present in the EPICenter user.war/
import
directory.
● To import resources from an Windows Domain server into a source group named NewUsers in the
EPICenter database running the local server with the default administrator name and password,
enter the following command:
ImportResources -user admin -s NewUsers -domain
Table 18: ImportResources command options
Option Value Default
-user <username> EPICenter user name. This option is required. None
-password <password> EPICenter user password. If the password is blank, do not
include this argument.
No password
-host <hostname | IP address> EPICenter server hostname or IP address localhost
-port <port> EPICenter server port number 80
-help Displays syntax for this command None
-s <Source name> A name that will identify the source of the imported
resources. This name is used to create a group under which
all the resources imported in this operation are placed.
None
-f <file name> The name of a tab-delimited text file that contains the data
to be imported. See “Importing from a File” in Chapter 8 of
the EPICenter Reference Guide for details.
None
-ldap Specifies that the information to be imported is from an
LDAP directory. Requires a specification file named
LDAPConfig.txt, that resides in the EPICenter user.war/
import directory. See “Importing from an LDAP Directory” in
Chapter 8 of the EPICenter Reference Guide for details.
None
-domain Specifies that the information to be imported is from an
Windows Domain Controller server or a Linux or Solaris NIS
server. See “Importing from an Windows Domain Controller
or NIS Server” in Chapter 8 of the EPICenter Reference
Guide for details.
None