Appliance Entry Remains in EMM After Running nbdecommission Command

Appliance Entry Remains in EMM After Running nbdecommission Command

Article: 100046070
Last Published: 2020-01-14
Ratings: 2 0
Product(s): Appliances, NetBackup

Problem

After running nbdecommission command, the decommissioned appliance entry remains in EMM.  Attempting to run nbemmcmd -deletehost with machinetype appliance does not remove the appliance entry from EMM.

Error Message

Run the following command to decommission the appliance media server.

# nbdecommission -oldserver nbappliance -machinetype media

The nbdecommission command runs successfully, but when checking EMM after, the entry for the appliance is still present.

# nbemmcmd -listhosts

NBEMMCMD, Version: 8.1.1
The following hosts were found:
server            MasterSrvr
master            MasterSrvr
ndmp              MasterSrvr
appliance         nbappliance
Command completed successfully.

Cause

The appliance continues to remain configured as a device in EMM after the decommission attempt and cannot be deleted from EMM until removed as a device host.

Solution

To clean up the appliance entry in emm, first run tpconfig to delete the appliance entry:

# tpconfig -delete -nb_appliance nbappliance

 

Once the device is removed, you can now run nbemmcmd to delete the host from EMM:

# nbemmcmd -deletehost -machinename nbappliance -machinetype appliance

 

Check EMM for the entry:

# nbemmcmd -listhosts


       Example outputs from lab:

netbackup00:~ #nbdecommission -oldserver netbackup00a1 -newserver netbackup00.veritas.lab.com -machinetype media


netbackup00:~ # nbemmcmd -deletehost -machinename netbackup00a1 -machinetype ndmp
NBEMMCMD, Version: 8.1                                                           
Command completed successfully.                                                  
netbackup00:~ # nbemmcmd -deletehost -machinename netbackup00a1 -machinetype appliance
NBEMMCMD, Version: 8.1                                                                
The function returned the following failure status:                                   
generic EMM SQL error (193)                                                           
Command did not complete successfully.                                                
netbackup00:~ #    

To resolve
netbackup00:/usr/openv/netbackup # tpconfig -delete -nb_appliance netbackup00a1

netbackup00:/usr/openv/netbackup # nbemmcmd -deletehost -machinename netbackup00a1 -machinetype appliance
NBEMMCMD, Version: 8.1
Command completed successfully.

netbackup00:/usr/openv/netbackup # nbemmcmd -listhosts |grep 400a1
netbackup00:/usr/openv/netbackup #

 

Was this content helpful?