Skip to main content
Solved

Adding massiv new clients in CommCell

  • 4 September 2024
  • 7 replies
  • 51 views

Forum|alt.badge.img+1

Hello all, 

 

I have to add around 400+ new clients in my CommCell. 

The XML script doesn’t work.

 

Is there another way to adding massiv new clients?

 

 

Best regard,

CP

Best answer by Javier

Hi CP,

 

Could you provide more details of which operation you are attempting and where it is failing please?

View original
Did this answer your question?

7 replies

Forum|alt.badge.img+11
  • Vaulter
  • 237 replies
  • Answer
  • September 4, 2024

Hi CP,

 

Could you provide more details of which operation you are attempting and where it is failing please?


Forum|alt.badge.img+7

Are you trying to pre-register the clients? Why not just install those clients instead?


Forum|alt.badge.img+1
  • Author
  • Bit
  • 4 replies
  • September 4, 2024

Hello @Amey Karandikar yes we just want to pre-register the clients. 
Becouse those clients are special and needed to be install seperate in Commvault. 


Forum|alt.badge.img+1
  • Author
  • Bit
  • 4 replies
  • September 4, 2024

Hi @Javier we are trying with a .bat command. The command is created from Commvault. 

 

@echo off

setlocal

if not defined GALAXY_BASE set GALAXY_BASE=D:\Program Files\Commvault\ContentStore\Base

set PATH=%PATH%;%GALAXY_BASE%
set response="hu.tmp"

qlogin -cs "XXXX.root.local"  -csn "XXXX" 
if %errorlevel% NEQ 0 (
    echo Login failed.
    goto endOfScript )


:loopx
if "%~1"=="" ( goto loopz )
set input=%input% %1
shift
goto loopx
:loopz
qoperation execute -af "huhu.xml"  %input% > %response%
    if %errorlevel% NEQ 0 (
        echo Failed to execute operation.
        goto end_1725364975 )
    for /F "tokens=1* usebackq" %%i in (%response%) do (
    echo %%i %%j )

:end_1725364975
    set OrigErrLevel=%errorlevel%
     qlogout
    if %errorlevel% NEQ 0 (
        echo Logout failed. )
    del %response%
    if %OrigErrLevel% NEQ 0 exit /b %OrigErrLevel% 

:endOfScript 
 


In the attachment you can see the XML that the batch will get it new clients infos.

 

Best regard,

CP

 


Forum|alt.badge.img+11
  • Vaulter
  • 237 replies
  • September 4, 2024

Thank you for the additional details CP.

I cannot find any command line operation that will allow to bulk import client.

We can register them after a decoupled installation however = https://documentation.commvault.com/2023e/expert/qoperation_register.html

 

Would it be possible to install them this way and then register then with the CV?

Even if they are initially only deploy with the file system core iDA, you should be able to push any other packages to them once they’ve been already onboarded.


This can be as simple as the below example (of course after qlogin):

client.xml

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <App_CreatePseudoClientRequest registerClient="0">
        <processinginstructioninfo>
            <user userId="1" userName="admin"/>
            <locale country="US" language="en" localeId="0"/>
            <formatFlags continueOnError="0" elementBased="0" filterUnInitializedFields="0" formatted="0" ignoreUnknownTags="1" skipIdToNameConversion="1" skipNameToIdConversion="0"/>
            </processinginstructioninfo>
        <clientInfo clientType="1">
            <openVMSProperties cvdPort="0"/>
            <ibmiInstallOptions/>
        </clientInfo>
        <entity _type_="3" clientId="0" clientName="" hostName=""/>
    </App_CreatePseudoClientRequest>

 

client_list.txt:

mucsap100|mucsap100.sap.ri-solution.com
mucsap101|mucsap101.sap.ri-solution.com
mucsap103|mucsap103.sap.ri-solution.com
mucsap104|mucsap104.sap.ri-solution.com
mucsap106|mucsap106.sap.ri-solution.com

 

client-add.cmd:

for /F "tokens=1,2 delims=|" %%i in (client_list.txt) do (
echo qoperation execute -af client.xml -clientname %%i -hostname %%j
)

 


Forum|alt.badge.img+1
  • Author
  • Bit
  • 4 replies
  • September 5, 2024

Good morning @Jacek Piechucki

 

thank you for script. We will try it out and let you konw. 

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings