Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

OLDCMP usage

Posted on 2008-09-29
5
1,823 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 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