NCM - 10.1.x
To confirm that a device is present in the infradb:
source /etc/voyence.conf
$VOYENCE_HOME/cgi-bin/cflist.cgi |grep 'DEV {Device IDX}'
For Example:
[root@<HOSTNAME> ~]# source /etc/voyence.conf
[root@<HOSTNAME> ~]# $VOYENCE_HOME/cgi-bin/cflist.cgi |grep 'DEV <Device_IDX>'
DEV <Device_IDX> "<Device_Name>" ElemList= PopParent=1000 EmsParent= : UID="<Serial>" HOSTNAME="<Hostname>" DOMAINNAME="<Domain_Name>" SYSOBJECTID="<SysOID>" ADDR="<Device_IP>" PACKAGE=1460 PACKAGE_IS_SET=0 CM_MANAGED=1 CREATE_DATE=1433361854 AUTO_DISCOVERED=1
To confirm that a device is present in the controldb:
SELECT
/* encode(device_id, 'hex') AS device_id, */
device_idx,
device_name,
management_ip_address,
vendor_model
FROM cm_device
WHERE device_idx = {Device IDX};
For Example:
voyencedb=# SELECT
voyencedb-# /* encode(device_id, 'hex') AS device_id, */
voyencedb-# device_idx,
voyencedb-# device_name,
voyencedb-# management_ip_address,
voyencedb-# vendor_model
voyencedb-# FROM cm_device
voyencedb-# WHERE device_idx = <Device_IDX>;
device_idx | device_name | management_ip_address | vendor_model
------------+-------------+-----------------------+--------------
<Device_IDX>| <Device_Name> | <Device_IP | MDS 9148
(1 row)