Renamed hub has a different hubname but the same IP address so it is a duplicate
search cancel

Renamed hub has a different hubname but the same IP address so it is a duplicate

book

Article ID: 280232

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

One of our storage hubs was using a duplicate IP address.

The customer was seeing two storage hubs with the same IP address in the Admin Console and/or Infrastructure Manager (IM).

All current methods/means of removing the bogus hubname with the duplicate IP address did not work.

 

Environment

  • DX UIM 20.4 or higher
  • 57 hubs

Cause

  • An old hubname needed to be permanently removed.
  • Need for quick and easy, permanent removal of a defunct hub (hubname) that has the same IP address as another hub in the UIM environment.

Resolution

This batch file (RemoveHub.bat) allows you to quickly and more easily speed up the process to eradicate any leftover hub artifact (hubname) because all the hubs communicate with each other so if you try to remove the Hub manually, you may not finish eradicating the hubname from the hublist maintained by the hubs in time. This .bat is especially helpful in medium to large UIM environments where there are at least 10 hubs or more.

In this particular support case, the customer was seeing two storage hubs with the same IP in the Admin Console but with different hubnames. The bogus hubname entry kept resurfacing/displaying in the Infrastructure Manager (IM) and despite taking steps to remove the bogus hubname, it always returned in the IM / Admin Console within 10-15 minutes.

WARNING! This .bat should only be used by experienced UIM administrators.

If you would like assistance with the script/process, please open a case with support.

RemoveHub.bat is attached to this article. As a reference, here is what the .bat contains...

===================================================================

@ECHO OFF 
 
:: Removes the given hub from all the hubs present in the given domain. If the hub is a dead hub it wont come back in the list of hubs present in the domain.
:: pu.exe should be present in "C:\Program Files (x86)\Nimsoft\bin\pu.exe"
:: Usage: RemoveHub.bat <username> <password> <hubname> <domain>
 
TITLE Remove Hub
set arg1=%1
set arg2=%2
set remhub=%3
set domain=%4
 
echo "%arg1%::%arg2%::%remhub%::%domain%"
"C:\Program Files (x86)\Nimsoft\bin\pu.exe" -u %arg1% -p %arg2% hub gethubs > hublist.txt
 
 
for /f "tokens=1,4 delims= " %%a in (hublist.txt) do call :Foo %%a %%b 
goto End
 
:Foo
set z=%1
set p=%2
 
if "%z%" == "addr" (
 
     echo "%z%:::%p%"
 
"C:\Program Files (x86)\Nimsoft\bin\pu.exe" -u %arg1% -p %arg2% %p% removehub %remhub% %domain%
 
if errorlevel 1 (
echo "****Error**** for %p%"
)
 
  )
goto :eof
 
:End
del hublist.txt
PAUSE
=======================================================

 

Attachments

RemoveHub.bat get_app