Oracle Unified Directory (OUD) & Oracle Directory Server Enterprise Edition/Sun DSEE


backup monitor


Hi all,
Is there a way to verify that the backup process is successful ?
I mean using "db2ldif.pl" or "db2bak.pl" or using the console itself. We can do the backup process, specify where to put the backup file, and take a look the result manually (the file itself).
I noticed that when using the perl script (I think console too), the servers add a "backup job" entry into cn=task,cn=config. This were logged in the "access log" file. Like following :
[09/Apr/2006:21:00:01 -0400] conn=16198 op=-1 msgId=-1 - fd=30 slot=30 LDAP connection from 10.10.10.1 to 10.10.10.1
[09/Apr/2006:21:00:01 -0400] conn=16198 op=0 msgId=1 - BIND dn="uid=backupusr, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot" method=128 version=3
[09/Apr/2006:21:00:01 -0400] conn=16198 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0 dn="uid=backupusr,ou=administrators,ou=topologymanagement,o=netscaperoot"
[09/Apr/2006:21:00:01 -0400] conn=16198 op=1 msgId=2 - ADD dn="cn=backup_2006_4_9_21_0_1, cn=backup, cn=tasks, cn=config"
[09/Apr/2006:21:00:02 -0400] conn=16198 op=1 msgId=2 - RESULT err=0 tag=105 nentries=0 etime=1
[09/Apr/2006:21:00:02 -0400] conn=16198 op=2 msgId=3 - UNBIND
[09/Apr/2006:21:00:02 -0400] conn=16198 op=2 msgId=-1 - closing - U1
[09/Apr/2006:21:00:02 -0400] conn=16198 op=-1 msgId=-1 - closed.
By closing the connection using "U1" (cleanly closed connection "UNBIND by client" as supposed to B1) , is that mean the backup is successfully implemented ?
any thoughts are welcome ! constructive only :)
thank you,
joseph 
of course the task will be deleted once the backup process is done. Is this also another indication for a successfull backup ?
Will this particular entry/task remain, if the backup process fail ? 
Joseph,
You could have a look at the errors log on the directory box, which will advise when the backups are 100% complete. If you have different databases all backing up to ldif, at the end of each database you will see the line e.g. processed 188131 entries (100%). If you wrote a quick little script or just grep-ed for the 100% lines, you could find out which databases were backed up completely?
thanks
ndrb 
thanks for the input, man ! 
No, the task entry being deleted isn't a indicator that it completed successfully. Poll the task entry to see progress and completion status. 
Once a task has finished (good or bad), the entry will stay visible for 2 minutes. By viewing the nstaskstatus and nstaskexitcode attributes you can find out how far it has gone and if the task has finished successfully or with an error.
Here is an example using a persistent search filtering on nstaskexitcode so you only get a response back once the job has completed:
./db2ldif.pl -D cn=directory\ manager -w password -n userRoot
adding new entry cn=export_2006_4_12_15_52_18, cn=export, cn=tasks, cn=config
-bash-3.00# ldapsearch -D cn=directory\ manager -w password -b "cn=export_2006_4_12_15_52_18, cn=export, cn=tasks, cn=config" -C ps:modify nstaskexitcode=* nstaskstatus nstaskexitcode
version: 1
dn: cn=export_2006_4_12_15_52_18, cn=export, cn=tasks, cn=config
persistentSearch-changeType: modify
nstaskstatus: userRoot: Processed 500002 entries (100%).
nstaskexitcode: 0
If you just filter objectclass=* you will get an update every 1000 entries, just like the error log
...
dn: cn=export_2006_4_12_15_51_3, cn=export, cn=tasks, cn=config
persistentSearch-changeType: modify
nstaskstatus: userRoot: Processed 455000 entries (90%).
dn: cn=export_2006_4_12_15_51_3, cn=export, cn=tasks, cn=config
persistentSearch-changeType: modify
nstaskstatus: userRoot: Processed 455000 entries (90%).
dn: cn=export_2006_4_12_15_51_3, cn=export, cn=tasks, cn=config
persistentSearch-changeType: modify
nstaskstatus: userRoot: Processed 456000 entries (91%).
... 
yes, right. I should also check these two important indicator : the nstaskstatus and nstaskexitcode.
Thanks for the correction. 
Along the same lines, I am using the method above to monitor. The issue is that the backup is failing and I can't figure out why. Here is what I get for output:
version: 1
dn: cn=backup_2007_1_9_1_0_0, cn=backup, cn=tasks, cn=config
nstaskexitcode: 1
nstaskstatus: Backup failed (error 1)
Not exactly helpful. I've checked everything I can think of, directory permissions, etc. Anyone have an idea where else to look to see what the "real" error is? 
I think you can always checkup the error log and access log for details.

Related Links

Data required to update replica has been purged.
Problems importing NDS 4 LDIF file with iDS 5
Why is referral not working on consumer when relication initialized ?
SSHA & iDS 5.1
Inappropriate authentication
replica hub
Inappropriate authentication
iDAR search and write request routing?
We are in the process of upgrading to Directory Server 5.1, and are currently using Netscape C SDK 4.0. Is it recommended (or required) that we update to the latest version (5.08) of the SDK as well?
Where can I download Directory Server 5.1 service pack 1
DS51 - Dynamic Group Processing
Inappropriate authentication -again
How to define auxiliary classes and create them
hashing passwords using SSHA (iDS 5.1)
how to operate iplanet directory server with jms?
i have two iplanet Directory Server ,how to synchronize them?so i can get same data from the two server.tks a lot.

Categories

ORACLE DEV
E-Business Suite Techn...
Oracle Call Interface ...
ODBC
Ultra Search
Heterogeneous Connecti...
Oracle Application Exp...
Collaboration Suite Ar...
Advanced Planning & Sc...
Development Tools Arch...
Communications and Media
PHP
Oracle By Example (OBE)
On Demand: SaaS and Ma...
SOA Suite
Technologies - Perform...
Oracle Providers for A...
Essbase
Hyperion Query and Rep...
Industrial Manufacturing
Performance Management...
Documaker
Product Hub
Oracle技术论坛
ServerStats
WebCenter - Interaction
Business Process Manag...
Business Intelligence ...
E-Business Suite Secur...
Archived BEA Dev2Dev F...
bea.education.weblogic...
weblogic.developer.int...
weblogic.developer.int...
weblogic.support.install
Tuxedo Newsgroups
jrockit.developer.inte...
Business Intelligence ...
Primavera Contract Man...
Retail Data Model
小憩一会
EJB Development (Chinese)
SOA & Web Services (Ch...
Beehive Online
User Productivity Kit ...
Java Essentials
JavaServer Pages (JSP)...
Remote Method Invocati...
Java 3D
New To Java Technology...
Java Business Integrat...
Oracle Communications ...
Cloud Resource Model API
開発ツール製品
ADF Mobile Preview
Software as a Service ...
Oracle Lite (Korean)
Oracle Servlet Develop...
JD Edwards (Chinese)
Java 8 Questions
Oracle Messaging Cloud...
Infrastructure as a Se...
Social Media Hub
Houston TX Eloqua Users
Philadelphia PA Eloqua...
eloquacertified
Eastern Canada Eloqua ...
B2B Digital Marketing
B2B Marketing
Local Eloqua User Groups
JDBC & UCP
BICS Data Visualization
OMC - Industry Solutio...
El Salvador
Oracle and TCS Initiat...
Oracle JET
Java SE [ARCHIVE]
Optimized Solutions
Software in Silicon (S...
Ventana/Roche
Oracle Database Cloud ...
Java.net Forge Sunset
Sites Cloud Service (SCS)
IDGOUG - (Internationa...
México
NightHacking
Oracle Management Cloud
See It
Kansas City Eloqua Use...
Modern Marketing Eloqu...
Ecuador
Enterprise Resource Pl...
Financials
Discoverer
C++ Call Interface (OCCI)
Sensor-Based Services ...
개발자 (Korean)
Oracle Business Rules ...
Data Integrator
PeopleSoft General Dis...
Data Quality
General
aqualogic.enterprisese...
liquid.developer.inter...
User Productivity Kit ...
Integrated Operational...
AutoVue Integrations
Oracle Java Cloud Service
Develop
Do It
DevOps

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App