Solved

OLDCMP usage

Posted on 2008-09-29
5
1,811 Views
Last Modified: 2008-10-06
I want to use OLDCMP to target a particular OU for some mainteanance tasks.
The only issue I have is that the OU in question has a space in the name and the search qualifier doesn't work.
Any hints on syntax to get this working ? Renaming the OU is not something we can do at this time.

Here is what I am running to start with:

oldcmp -report -b ou=namewith aspace in it, dc=dcname,dc=com -age 0

This works fine on other OU's without spaces. In the file this command generates it shows the following:

Search Base: namewith


0
Comment
Question by:Conchial
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:aissim
ID: 22607181
Should just need to put quotes around the path:

oldcmp -report -b "ou=namewith aspace in it,dc=dcname,dc=com" -age 0
0
 

Author Comment

by:Conchial
ID: 22627815
That does appear to work.
However , i need to modify what I asked.
The OU i want to taget is underneath another OU and oldcmp  is returning an error.


The actual line I am running is :

oldcmp -report -b "ou=level1ou, ou=namewith aspaceinit, dc=**, dc=***,dc=***,dc=com" -age 0

That returns

Processed at DCNAME.***.**.**.com
Default Naming Context: DC=***,DC=**,DC=***,DC=***

ldap_get_next_page_s: [DCNAME.***.**.**.com] Error 0x20 (32) - No Such Object

When i this command:

dsquery computer "ou=level1ou, ou=namewith aspaceinit, dc=**, dc=***,dc=***,dc=com"

That returns
dsquery failed:Directory object not found.

I'm sure it's a syntax issue but cannot figure it out



0
 

Author Comment

by:Conchial
ID: 22627909
dsquery computer "cn=level1ou, cn=namewith aspaceinit, dc=**, dc=***,dc=***,dc=com"

also fails with a Directory Object not found error.
0
 
LVL 19

Accepted Solution

by:
aissim earned 500 total points
ID: 22628684
Yeah, looks like something's wrong with the path. Using dsquery I would start at the top-level domain and work backwards; that should tell us where it breaks...

dsquery computer dc=**,dc=***,dc=***,dc=com


Also - you say it doesn't work with CN either - I would find out for certain whether they're containers or OU's.
0
 

Author Comment

by:Conchial
ID: 22652260
Finally nailed it, thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question