One or more of the following conditions may exist in the environment:
Need to be able to remove this device completely.
All supported releases of NCM
If you encounter this issue in your environment, do the following:
su - pgdba
psql voyencedb voyence
select count(*),device_status from cm_device group by device_status;
select device_name,device_idx from cm_device where device_name like '%<deviceName>%';
\q
Review the output of the above select commands and verify whether the device is present in the database (see Note statement).
If the device is still present in the database as confirmed in the select command output, or if you still cannot delete the device completely from Smarts NCM application, do the following:
In the Smarts NCM application, go to the following:
Tools > System Administraton > Global > Access > Device Servers > {Device Server Name} > Devices
Confirm that all the devices are present on the right hand side panel.
Select the device with the desired "device_idx" (in the following Note statement example, this ID is 1104), and click on the Unmanage button.
Select the same device entry and click on Remove button.
Confirm that the device is completely removed from Smarts NCM application and database.
If Unmanage and Remove button is greyed out, you could set device_status=enum.deviceStatus.removed and is_operational_device=f for the desired device haiving device_status=enum.deviceStatus.unclassified and then restart transformer service.
NOTE: Once updated, above devices cannot be retrieved.
The following is an example of the output where the device called deviceName is still present in the database:
select count(*),device_status from cm_device group by device_status; voyencedb=# select count(*),device_status from cm_device group by device_status; count | device_status -------+-------------------------------- 1 | enum.deviceStatus.unclassified 154 | enum.deviceStatus.operational 3 | enum.deviceStatus.unconfigured select device_name,device_idx from cm_device where device_name like '%<deviceName>%'; voyencedb=# select device_name,device_idx from cm_device where device_name like '%deviceName%'; device_name | device_idx ----------------+------------ deviceName | 1104 (1 row)