Unable to delete alias using nbemmcmd -deletealias

Unable to delete alias using nbemmcmd -deletealias

  • Article ID:100022628
  • Last Published:
  • Product(s):NetBackup

Problem

Unable to delete alias using nbemmcmd -deletealias

Error Message

invalid host name (136)

Command did not complete successfully.

Solution

Overview:
If a Domain Name change occurs in yourenterprise, it may be necessary to remove the old FQDN as an alias within EMMafter adding the new FQDN as an alias.  You may experience this error whenattempting to delete the old alias.

Deleting an alias using this syntaxfails with the below message:
nbemmcmd -machinealias-machinename BigMaster -machinetype master -deletealias -aliasBigMaster.my_old_network.com

NBEMMCMD,Version:6.5.4
The function returned thefollowing failure status:
invalid host name(136)
Command did not completesuccessfully.

Note:
Tolist aliases for a machine within EMM, use thissyntax:
nbemmcmd -machinealias -getaliases -machinetype <type>-machinename <name>

Toadd an alias for a machine within EMM, use thissyntax:
nbemmcmd -machinealias -addalias -alias <name> -machinetype<type> -machinename <name>


Details:
The EMM log(OID 111) has this message:
[Error] V-111-1153 Can notdelete an alias BigMaster.my_old_network.com which is same as primary name orFQName


Solution:
A FQDN alias is automaticallycreated when a Media Server or Master Server is added to the EMMdatabase.

It is then marked as the primary fully qualified key for therecord in the database and therefore it can not be deleted.  Newly addedFQDN's are not the Primary.


In order to remove the old alias, followthese steps:
1. To add a different Primary:
nbemmcmd -renamehost-machinename BigMaster -newmachinename BigMaster.my_new_network.com -machinetypemaster

2. To remove the old alias:
nbemmcmd -machinealias -machinenameBigMaster -machinetype master -deletealias -aliasBigMaster.my_old_network.com

3. List aliases to validate yourwork:
nbemmcmd -machinealias -getaliases -machinetype master -machinenameBigMaster

Was this content helpful?