Appliance Entry Remains in EMM After Running nbdecommission Command

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

Problem

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

Error Message

After running the following nbdecommission command to decommission the appliance media server...

nbdecommission -oldserver nbappliance -machinetype media

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

nbemmcmd -listhosts

Example output:

NBEMMCMD, Version: 8.1.1
The following hosts were found:
server            nbmaster1
master            nbmaster1
ndmp              nbmaster1
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 the EMM database 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 database for the entry:

nbemmcmd -listhosts

 

Example outputs from lab:

# nbdecommission -oldserver nbmedia01 -newserver nbmedia02.veritas.lab.com -machinetype media

# nbemmcmd -deletehost -machinename nbmedia01 -machinetype ndmp
NBEMMCMD, Version: 8.1                                                           
Command completed successfully.                                                  

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

To resolve the following commands were ran:

# tpconfig -delete -nb_appliance nbmedia01

# nbemmcmd -deletehost -machinename nbmedia01 -machinetype appliance
NBEMMCMD, Version: 8.1
Command completed successfully.

# nbemmcmd -listhosts | grep nbmedia01

(The appliance entry does not return, as it has been successfully removed.)

Note: The tpconfig and nbemmcmd commands are in the following location...

  • UNIX/Linux:
    /usr/openv/volmgr/bin/tpconfig
    /usr/openv/netbackup/bin/admincmd/nbemmcmd
  • Windows:
    install_path\Veritas\Volmgr\bin\tpconfig.exe
    install_path\Veritas\NetBackup\bin\admincmd\nbemmcmd.exe

Was this content helpful?