This Question is Answered

1 "helpful" answer available (10 pts)
14 Replies Last post: Jan 5, 2009 9:30 AM by EGarlepp  
nickmo Rookie 22 posts since
Nov 20, 2008
Currently Being Moderated

Nov 20, 2008 6:42 AM

Unable to delete old users from Console LDMS 8.8 SP2

I have three old users that need to be deleted from LMDS console.

I have removed said users from:

·          Local group “ LANDesk Management Suite”

·          Queries

·          Schedule Tasks

·          Reports

·          User Devices

But it comes up with the error when deleting:

(You can not delete the selected user “domain\username” because the user’s queries, reports, APM policies, delivery methods, distribution packages, tasks or scripts are not deleted!)

Any ideas?

MikeCompton Apprentice 123 posts since
Dec 19, 2007
Currently Being Moderated
1. Nov 20, 2008 7:11 AM in response to: nickmo
Re: Unable to delete old users from Console LDMS 8.8 SP2

I have had this problem since we installed 8.8, only it is even more irritating because the two messages complete contradict each other!!!

 

When you click to delete a user you get 1.jpg and after clicking yes you get 2.jpg.

 

I wonder if two different LD Developers coded from opposite directions, hoping to meet in the middle!

 

See attached

Attachments:
Paul Hoffmann Master 1,803 posts since
Dec 11, 2007
Currently Being Moderated
2. Nov 20, 2008 7:19 AM in response to: nickmo
Re: Unable to delete old users from Console LDMS 8.8 SP2

This is usually because there's still some artifact of the user somewhere in the DB. Here's two "quickies" to help you.

 

 

Option 1:
=========
The only script in this regard that is known is to be found here:
http://www.droppedpackets.org/scripts/ldms_delete_users/

Option 2:
==========
If Option 1 should fail, you'll need to take a more manual approach. Here's what needs to be done.

  Delete all the related data with this user in the database. Steps:
  1. Open up your SQL Enterprise manager (I assume you are using SQL Server), and find your LANDesk Database.
  2. Find the 'ConsoleUser' table
  3. Right click on the user that you wish to delete, and click on delete.
  4. It will ask you if you wish to permantly delete that user. Click on Yes.
  5. It will then give you an error saying something about the Delete statement conflicted with a column reference constraint. Then it will give you the database name, table, and column. You will then have to go to that table, and delete the column that it referenced.

  Example:
  a. I have a database called 'April', and my user is named 'splintercell'
  b. I open up the 'ConsoleUser' table and find the user 'splintercell'. I notice that the 'ConsoleUser_IDN' = 5
  c. I right click on the user 'splintercell' and then click on 'delete'
  d. It asks me if I want to permantly delete this user, and I click on 'Yes'
  e. SQL gives me an error about the Delete statement conflicted with a column reference constraint. Then it says, "The conflict occurred in
  database 'April', table 'ConsoleUserScope', column 'ConsoleUser_IDN'
  f. I then open up table 'ConsoleUserScope' and find 'ConsoleUser_IDN' of 5(Since 5 was the ConsoleUser_IDN of my user 'splintercell'
  g. I then right click on 5 and click on delete.

  This will keep bringing up errors until you have gotten to the child object that you can delete. You just have to keep going to each table that it tells you to go to. It is a long process.

NOTE -- this assumes your competent and comfortable using SQL. If you're not, you can open up a case with LANDesk support, and we can help you out here (assuming we can get a DB backup from you).

Do *NOT* attempt Option 2 if you're not sure what you're doing - at best you're not going to do anything, at worst (with a bit of "wrong" SQL) you could break the DB. So always have a full backup beforehand (that's verified).

Paul Hoffmann
LANDesk EMEA Technical Lead


Paul Hoffmann Master 1,803 posts since
Dec 11, 2007
Currently Being Moderated
4. Nov 20, 2008 7:52 AM in response to: nickmo
Re: Unable to delete old users from Console LDMS 8.8 SP2

Yes, it doesn't (particularly) care what kind of DB you've got in the backend.

 

NOTE - if you're using SQL Express, try out this little sweetheart:

http://www.microsoft.com/downloadS/details.aspx?familyid=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en

 

SQL Server Management Studio ... no more SQL Buddy

 

Paul Hoffmann

LANDesk EMEA Technical Lead

CCzech Apprentice 194 posts since
Apr 28, 2008
Currently Being Moderated
7. Nov 20, 2008 10:09 AM in response to: nickmo
Re: Unable to delete old users from Console LDMS 8.8 SP2

Sign in to the web console and you can delete them there with no problem.

Jack Coates Expert 796 posts since
Nov 16, 2007
Currently Being Moderated
8. Nov 20, 2008 10:13 AM in response to: Paul Hoffmann
Re: Unable to delete old users from Console LDMS 8.8 SP2

I'm considering a refresh of the ldms_deleteusers code, and would probably just integrate it into ldms_core as a recurrent maintenance task. The question is, is there consensus on whether objects should be reassigned, or deleted? I'll probably need to offer an option. Also, how far back is it necessary to support? The current code does 8.6 and 8.7, but isn't tested on 8.8.

 

Feedback welcome.

MikeCompton Apprentice 123 posts since
Dec 19, 2007
Currently Being Moderated
9. Dec 19, 2008 3:13 AM in response to: Jack Coates
Re: Unable to delete old users from Console LDMS 8.8 SP2

Hi Jack

 

I would like to try this on our 88 core - should i just go ahead with the cirrent version or does it need tweaking first?

MikeCompton Apprentice 123 posts since
Dec 19, 2007
Currently Being Moderated
10. Dec 19, 2008 4:55 AM in response to: Jack Coates
Re: Unable to delete old users from Console LDMS 8.8 SP2

Scrap last - have tried it on a couple of users but they are still showing in the console.

Jack Coates Expert 796 posts since
Nov 16, 2007
Currently Being Moderated
11. Dec 22, 2008 10:50 AM in response to: MikeCompton
Re: Unable to delete old users from Console LDMS 8.8 SP2

I'll have to hunt down what's changed (and worse, when it changed). Unfortunately, this is lower priority than several other projects right now.

EGarlepp Specialist 206 posts since
Dec 15, 2007
Currently Being Moderated
12. Dec 22, 2008 12:18 PM in response to: nickmo
Re: Unable to delete old users from Console LDMS 8.8 SP2

The webconsole is the way to go as that should get most.  You could also purhcase Database Doctor from Managed Planet that will do it for you, it is a small cost but does it without a problem.  We have used it to delete many a users that would not delete.  ;-)

MikeCompton Apprentice 123 posts since
Dec 19, 2007
Currently Being Moderated
13. Jan 5, 2009 9:11 AM in response to: EGarlepp
Re: Unable to delete old users from Console LDMS 8.8 SP2

EGarlepp - can you give me a rough idea of the cost of that?  We have a lot of issues with crap in our DB.  I know i can just contanct Managed Planet, but usually that means having to fend off a sales guys for the next couple of weeks.

 

Thanks.

EGarlepp Specialist 206 posts since
Dec 15, 2007
Currently Being Moderated
14. Jan 5, 2009 9:30 AM in response to: MikeCompton
Re: Unable to delete old users from Console LDMS 8.8 SP2

It is based on the number of systems that you have and as always the more the merrier.  It is quite cheap if I remember.  Sorry, but I don't remember what we paid for it as we purchased DTS/ERP for it as well at the same time.

More Like This

  • Retrieving data ...
LANDesk Community powered by Jive Software's Clearspace ® Subscribe| Legal Notices| Investor Relations| Avocent| Privacy Policy © 2009 LANDesk Software