1.recreating default ads instance ./
|
1
2
3
4 |
[root@dhcppc2 ~]# dsadm delete /usr/local/dsee7/var/dcc/ads #delete default
instance[root@dhcppc2 ~]# dsccsetup ads-create #create default
instance [root@dhcppc2 ~]# dsadm start /usr/local/dsee7/var/dcc/ads #start instance[root@dhcppc2 ~]# dsadm list-running-instances |
2.start Cacao, deploy Cacao init-script, register the DSCC agent in Common Agent Container
|
1
2
3 |
[root@dhcppc2 ~]# cacaoadm start /stop[root@dhcppc2 ~]# cacaoadm enable[root@dhcppc2 ~]# dsccsetup cacao-reg |
3.registering instance to DSCC
|
1 |
# dsccreg add-server -h hostname instance-install-path |
4.list registed instance
|
1 |
[root@dhcppc2 ~]# dsccreg list-servers |
5.create suffix
|
1 |
# dsconf create-suffix -h hostname -p port dc=example,dc=com |
|
1
2 |
Check to see if
the suffix has been created.$ dsconf list-suffixes -h host -p port -v |
6.import data online
|
1 |
[root@dhcppc2 ~]# dsconf import -h [hostname] -p [port] [file.ldif] dc=example,dc=com |
|
1 |
[root@dhcppc2 ~]# dsconf import -h hostname IP -p port -e -D cn=DirectoryManager -w [password] -Q dc=example,dc=com [file.ldif] |
7.import data offline
|
1 |
[root@dhcppc2 ~]# dsadm import $INSTANCEHOME [file.ldif] dc=example,dc=com |
8.export data offline
|
1 |
[root@dhcppc2 ~]# dsadm export INSTANCEPATH dc=example, dc=com PATN/[file.ldif] |
9.export data online
|
1 |
[root@dhcppc2 ~]# dsconf export -h IP -p port -e -D cn=DirectoryManager -w password -Q dc=example,dc=com [file.ldif] |
10.list indexes
|
1 |
[root@dhcppc2 ~]# dsconf list-indexes -D cn=DirectoryManager --pwd-file password -e -p port -v dc=example, dc=com |
11. Back Up the Directory Server Data
|
1 |
[root@dhcppc2 ~]# dsconf backup -h host -p port /tmp/backupArchiveDir |
12. Index an Attribute
|
1
2
3
4
5
6
7
8 |
In this
example, the preferredLanguage attribute is
going to be indexed.Create an index entry for
the attribute. By default, the index matching types are equity and presence.$ dsconf create-index -h host -p port dc=example,dc=com preferredLanguageCheck that the index entry has been created$ dsconf get-index-prop -h host -p port dc=example,dc=com preferredLanguageGenerate the index for
the attribute.$ dsconf reindex -h host -p port -t preferredLanguage dc=example,dc=com【[root@rusky ~]# dsconf create-index -D cn=DirectorManager--pwd-file password -h hostname -e -p port dc=example,dc=com Attribute】??? |
<!--[if !supportLineBreakNewLine]-->
< !--[endif]-->
原文地址:http://www.cnblogs.com/rusking/p/3731130.html