UNSOLVED

otern

updated

16 years ago

O

otern

5 Posts

2

27507

July 28th, 2010 03:00

Completely delete a client

Hello

I have a couple of clients that i need to destroy. That means removing everything from networker relevant to this client. Indexes, client IDs, etc.

There are also a couple of clients that have been deleted from networker console, but their indexes and probably their client ids are still registered somewhere in networker. I need to remove these as well.

So how do i do this? I do not want to encounter a problem with duplicate client ids in the future if i ever needed to add those same clients again.

  • Daniea3

    123 Posts

    5404

    0

    Posted July 28th, 2010 03:00

    You need to delete the indexes, client id etc manually. You wont be able to delete the client id unless all the realted backup for this client is removed (expired) from mm.

    Regards,

    Arun

    .

  • Abdelghany1

    25 Posts

    5404

    0

    Posted July 28th, 2010 03:00

    you will need to make sure first no saveset exist in mediaDB for this client

    use mminfo -avot -q client=clientname to check

  • praviad

    21 Posts

    5404

    0

    Posted July 28th, 2010 03:00

    Hello Otern

    If you still having issues trying to remove a client from NW server, you need to use nsradmin to complete delete it.

    Best regards

    David Pravia | Senior Networker Support | EMEA, Mon-Fri 08:00 - 16:30 GST

  • 5404

    0

    Posted July 28th, 2010 03:00

    Hi,

    I believe you should remove the client index directory manually after deleting the client in networker (either through Management Console or nsradmin), the client directory is normally located in /index/ unless overridden in the client config (index path).

    It is properbly also wise  to remove the location/directory where networker was installed on the client after uninstalling the client.

    Regards,

    René

  • otern

    5 Posts

    5404

    0

    Posted July 28th, 2010 04:00

    Ok

    So what would be the quickest and most effective way to delete all savesets, etc for a client?

    If all those old backups are deleted then the client ID will cease to excist?

  • praviad

    21 Posts

    5404

    0

    Posted July 28th, 2010 04:00

    Hello Otern

    You dont need to delete old backups in order to remove a client. If you have done that it is fine as removing those backups will free up space in your filesystem.

    You only have to delete the client in NMC, if you cant do that then it would be the time to remove it using nsradmin

    Many thanks


    David Pravia | Senior Networker Support | EMEA, Mon-Fri 08:00 - 16:30 GST

  • 5430

    1

    Posted July 28th, 2010 07:00

    Also you can hash out the IP address in host-files in Networker server if the client is going get decommissioned.

  • jstamp

    88 Posts

    3950

    0

    Posted July 28th, 2010 08:00

    Hello otern,

    Seems you have received some really good information here. 

    In a nutshell a streamlined 10 step process have I have found to be successfull in deleting clients from NW is described below:

    1. Perform a full bootstrap backup  (if the NW Server is in the groupname TEST then a command line backup would be savegrp -l full -O -G TEST    . Please ensure to record the ssid for that full bootstrap backup for future uses)

    2. On the client stop nsr services (nsrexecd) . If the client will no longer be backed up by NW, you may consider uninstalling the binary or (on Windows Clients) just changing the Service startup to Manual or Disabled.

    - On NW Server

    3. delete the client in NMC
    4. stop nsr services

    5. delete the client's index folder (install_dir\nsr\index\client_name)

    6. clear the cache by renaming \nsr\tmp\ folder to \nsr\tmp_old_todaysdate

    7. start nsr services

    8. temporarily set the Autostart function on all Groups to Disabled (it is best to perform the following when NW is idle)

    9. run the following commands to verify, fix and purge the index and mdb records

        nsrck -L6

      nsrim -X

    10. set the Autostart function on groups that was changed in step 8 back to Enabled.

    It is my experience that the abovementioned process helps to prevent the possibility of corruption and conflicts after a client removal.

    Hope this helps in your environment.

    Thanks

  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    5430

    1

    Posted August 19th, 2010 03:00

    otern wrote:

    Ok

    So what would be the quickest and most effective way to delete all savesets, etc for a client?

    If all those old backups are deleted then the client ID will cease to excist?

    I would do following (assuming data from this client is no longer required):

    - mminfo -avot -q client= -r ssid > ssid.lst

    - for ssid in `cat ssid.lst`;do nsrmm -dy -S $ssid;done

    Now you removed all ssids from mdb.  At this point you can delete client from NMC.

    Last, go to /nsr/index and remove index file.

    Data itself is still present on tape (which has been backed up previously) , but NW is not aware of it any longer.

  • otmanix

    2 Intern

    •

    52 Posts

    3037

    0

    Posted August 26th, 2010 07:00

    delete client and corresponding savesets once and for all howto

    If name resolution for client isn't possible anymore create a dummy entry in /etc/hosts on networker server.
    If client has been deleted via NMC create it once again.

    AA=hostname of Networker client to be deleted

    execute on Networker server:

    for xxx in `mminfo -av -r "ssid(53)" -c AA`; do nsrmm -d -S $xxx -y; echo $xxx; done

    nsrck -YR AA
    rm -r /nsr/index/AA
    nsrim -c AA -X

    after that delete client in NMC

    if you have used software administration feature and clients is still in inventory list execute this:


    nsradmin -d /nsr/res/cpdb
    print name: AA
    nsradmin> delete
    (answer with yes for each confirmation)
    nsradmin> quit

    Best regards,

    Otmanix