• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.


    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Automated deletion script with replication

Hi all

First of all, this is my first post here, so thanks for letting me part of this community :D

I am currently creating a script that will handle deletion of replicated nodes on a server and would like a sanity check.

I am using TSM scripting to achieve my goal and I send the following commands to the server:

DEFINE SCRIPT {uniquescriptname}
UPDATE SCRIPT {uniquescriptname} 'REMOVE REPLNODE {nodename} WAIT=YES' LINE=2
UPDATE SCRIPT {uniquescriptname} 'DELETE FILESPACE {nodename} * WAIT=YES' LINE=3
UPDATE SCRIPT {uniquescriptname} 'REMOVE NODE {nodename}' LINE=4
RUN {uniquescriptname}
DELETE SCRIPT {uniquescriptname}
{replicationservername}: DEFINE SCRIPT {uniquescriptname}
{replicationservername}: UPDATE SCRIPT {uniquescriptname} 'DELETE FILESPACE {nodename} * WAIT=YES' LINE=2
{replicationservername}: UPDATE SCRIPT {uniquescriptname} 'REMOVE NODE {nodename}' LINE=3
{replicationservername}: RUN {uniquescriptname}
{replicationservername}: DELETE SCRIPT {uniquescriptname}

The problem I am facing is that when running the script I get the following message:
ANR1633E REMOVE NODE: Node {nodename} is set up for replication and cannot be renamed or removed.

I find it strange that I get this message as I actually use the command REMOVE REPLNODE and await it.
I send each command to the server one after another and check the response from each command before advancing to the next.
Also; Should I put WAIT=YES when using the REMOVE NODE command?
I hope someone is able to shed some light on this problem.


ADSM.ORG Moderator
Try to do update node {nodename} replmode=disabled before the remove. The remove replnode only impacts the source.
Thanks. I didn't realise that replication was also on the target node. Using REMOVE REPLNODE on the target server seems to have fixed the problem. Thanks so much for the help.

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.4%
  • Keep using TSM for Spectrum Protect.

    Votes: 60 61.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.2%
  • Other (please comement)

    Votes: 8 8.2%

Forum statistics

Latest member