Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

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 NCM: How do I delete an obsolete device server? Can I remove it using the Smarts NCM console? (323162)

Last Updated: 3/20/2024Categories: How toTotal Views: 2544Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Resolution

How do I delete an obsolete device server in Smarts NCM ?

Can I remove an obsolete device server using the Smarts NCM console?

What are the steps to remove an obsolete device server in Smarts NCM ?

Preface:

It is not possible to remove a Device Server (DS) entirely from within the Smarts Network Configuration Manager (NCM) console. To delete a DS from NCM you must use the command line to remove any reference to the device server from the NCM PostgreSQL Control Database (controldb) and from the NCM Infrastructure Database (infradb) as described in the following sections.

Task 1 - Remove a DS from the NCM controldb

To remove any reference to a DS from the controldb, do the following:

Log into the NCM Client using an account with full administrator access to all network containers.

Select Tools then System Administration from the top menu to launch the System Administration window.

In the System Administration window, access the Device Servers node under each network in the instance to display what DS hosts are assigned to each network. Select any instance of the DS host to be deleted under each network, then click the Manage button in the lower right hand corner of the window to launch the Manage Device Servers window for each network having an instance of the DS host to be deleted.

In each network's Manage Device Servers window, select the DS host to be deleted from the right-hand Slected pane, then click the Remove button to move the host to the left-hand Available pane, then click the OK button at the bottom to cause the change to take effect.

After confirming that there are no remaining instances of the DS host being associated with any network in the NCM Client, log into a command line shell on the NCM PostgreSQL Control Database (controldb) host as 'root' (Linux) or under an account that has full local administrator privileges (Windows).

Run the following command to launch a controldb shell (current controldb password will be required):

Linux:
su - pgdba -c 'psql voyencedb voyence'

Windows:
%VOYENCE_HOME%\db\controldb\bin\psql -p 5435 -h 127.0.0.1 --username=voyence -d voyencedb

Run the following SQL command to delete the DS host record from the controldb (where {DS Name} is the case sensitive name of the DS host as shown in the NCM Client UI):

DELETE * FROM cm_device_server WHERE device_server_name = '{DS Name}';

Run the following SQL command to list all remaining DS hosts to confirm that the DS host to be deleted is no longer present:

SELECT * FROM cm_device_server;

Log out of the controldb shell by running the following PostgreSQL command:

\q

Task 2 - Remove the DS from the infradb

To remove any reference to a DS host from the infradb, do the following:

Log into a command line shell on the NCM Application Server (AS) host as 'root' (Linux) or under an account that has full local administrator privileges (Windows).

Run the following command to stop all NCM services on the AS host:

Linux:
service vcmaster stop

Windows (where %VOYENCE_HOME% is the path where NCM was installed):
%VOYENCE_HOME%\bin\ncmstop.bat

Run the following commands to navigate to the path where the command line tools for working with the NCM infradb are located and export the content of the infradb to an editable text file:

Linux:
source /etc/voyence.conf
cd $VOYENCE_HOME/cgi-bin/
./cflist.cgi > _temp_infradb.txt

Windows (where %VOYENCE_HOME% is the path where NCM was installed):
cd %VOYENCE_HOME%\cgi-bin\
cflist.cgi > _temp_infradb.txt

Make a backup copy of the editable text file containing the exported infradb content in another, non-NCM path for easy recovery in case of human errors that could be introduced while editing the original infradb content export text file.

Using an appropriate text file editor that does not alter the encoding of the text file, modify the original infradb content export text file to remove any references to the DS host to be deleted as follows:

Search for any lines starting with a POP character string that reference the name of the DS host to be deleted.

Make a note of the ID number immediately following the POP character string for any lines found.

Delete all lines found in the preceding Step A.

Scroll to the line near the beginning of the file that begins with the HEAD character string, then search the line for the PopList= field.

Delete the ID number noted in Step B above from the line along with any trailing comma.

Save and exit the file.

Import the revised infradb content contained in the export text file back into the infradb by running the following command:

Linux:
./cfwrite.cgi < _temp_infradb.txt

Windows (where %VOYENCE_HOME% is the path where NCM was installed):
cfwrite.cgi < _temp_infradb.txt

Start NCM services on the AS host by running the following command:

Linux:
service vcmaster start

Windows (where %VOYENCE_HOME% is the path where NCM was installed):
%VOYENCE_HOME%\bin\ncmstart.bat

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

VMware Smart Assurance - NCM

Take Our Survey

Support Assistant