Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Smarts IP: How do I delete multiple devices in a Smarts IP domain? (335013)

Last Updated: 1/31/2023Categories: TroubleshootingTotal Views: 4853Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

How do I delete multiple devices in a Smarts IP domain?
How do I run batch topology remove devices in a Smarts AM domain?

Resolution

Attach to the IP domain using the Domain Manager Administration Console and then select Administer Instances from the Edit menu. This will allow multiple instances to be selected using filters and deleted.

The below scripted resolution is not a GA Supported Script.  While it has been tested, customers must understand that they accept all risk that may be associated with using this script.  If you are not familiar with scripting in asl, VMWare recommends that you see the additional notes below that may be helpful to provide helpful tips on making sure your IP domain rps file is backed up before you apply this solution:

1. Run from the smarts\bin directory   ./dmctl -s AMPM geti UnitaryComputerSystem  This will list out all the devices in the IP domain.  Copy this output into a notepad file.
2.Create a node_delete.txt  in my smarts\bin directory

a. Use vi node_delete.txt from the smarts\bin directory

b.and insert the names of the devices that you want to remove with data with the output from Step 1.

3.       The node_delete.txt file is to be filled with the respective UCS name to be deleted and each device name must be on separate line. This is mainly to delete the UCS (UnitaryCompyterSystems) in batch

Create the asl below.  The script can be placed in the <Basedir\IP\smarts\local\script folder.  I found that placing the node_delete.txt  in the bin directory, where the sm_adapter command is run works as well.

After creating the file with the asl script, I did a chmod 777 on the file, and applied the sm_adapter command to run the script.

To run the batch and delete multiple devices, run the following:

<BASEDIR>/smarts/bin/sm_adapter -s <IP domain name> -b <broker_port> --file=node_delete.txt  <path>/node_delete.asl

File: node_delete.asl
topo_manager = object(getInstances("ICF_TopologyManager")[0]);
START {
node:rep(word) eol
}
do {
Node_obj = object();
Node_obj = topo_manager->findComputerSystem(node);
if (Node_obj->isNull()) {
print("Cannot find node :: ".node);
} else {
print("Deleting NODE :: ".Node_obj);
Node_obj->remove();
}
}
EOF
do {
print("Done with deleting the nodes");
}

Related Information

Recommendations for back up to preserve the devices in your IP domain.

AM-PM domain repository save:
<BASEDIR>/IP/smarts/bin/sm_tpmgr -s <DomainName> --save

Save your IP domain rps with the above command.  Once this command is complete, make a backup copy of your IP domain just in case you need it.  Do a cp command to copy the rps and provide a new name.  The location for the saved repository file is:  <BASEDIR>/IP/smarts/local/repos/icf

Should you need to recover the IP domain, stop the IP domain, use the backup copy to overwrite the current file and restart the IP domain.

As another backup measure you can also create a seed file for the IP domain prior to running the script.  The use the seed file to rediscover the devices that you removed to restore the topology to the IP domain.  Review the following KB articles:

How to create a seedfile of devices currently in the Smarts topology (321233)
https://kb.vmware.com/s/article/321233

The command below will generate a seedfile consisting of SNMP Agent IP Addresses of devices present in the topology.

$cd <BASEDIR>/IP/smarts/bin
$./sm_tpmgr s <DM_Name> --dump-agents > <PATH>/seedfile

Smarts IP: How to discover the devices through seedfile from command line.  (318336)

https://kb.vmware.com/s/article/318336

Store the seedfile in <BASEDIR>/IP/smarts/local/conf/ or <BASEDIR>/IP/smarts/conf

<BASEDIR>/IP/smarts/bin/sm_tpmgr -s <IP domain> --seed=<seedfile filename>

This will allow you to rediscover the devices back in the IP domain in case you deleted some that should not have been deleted.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
VMware の VMware Tools 11.0.0 - 11.0.6 を使用している場合の Horizon 仮想マシンでのパフォーマンスの問題 (78434)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

VMware Smart Assurance - SMARTS

Take Our Survey

Support Assistant