Hi guys,
I've searched and search and searched some more but can't find the table in which this setting is stored.
Does anyone know where the change is being made?
TIA
/Deltona
BUMP
The settings is stored in the NCM_NCMSettings table.
Jiri
Are you sure?
I am not getting the list of nodes when running SELECT * FROM NCM_NCMSettings
All I get is the location of NCMIndexCatalogPath, Support Account Limitation in NCM Jobs, Vuln Last Error/Run.
I don't know if there is an explicit column in a table that says that. However, you can figure it out quite easily. In the "Nodes" table (or view) in NPM, you have your NodeID. In the NCM_NodeProperties table you have a couple columns "NodeID" (which is specific to NCM) and "CoreNodeID" which would be the same as the NodeID is in the NPM Nodes table. If you do a left outer join on them, if there isn't a NCM_NodeProperties.NodeID in the resulting table you know its not in NCM...
SELECT TOP 100 N.NodeID, CASE WHEN NCM.NodeID IS NULL THEN 'False' ELSE 'True' END AS InNCM
FROM Nodes N LEFT OUTER JOIN NCM_NodeProperties NCM ON (N.NodeID = NCM.CoreNodeID)
This query should illustrate it, rather than having the second column be the NCM_NodeProperties.NodeID (or NULL) I converted it to a true/false with the "CASE" statement..
HTH!!
Hi Craig,
Thanks for the query. I have tested it and it works as explained.
Ultimately, what I'm after is a query that will add nodes to the NCM_NodePorperties table because NCM currently can't do this automatically.
It would be a SQL job that runs once a day. If a Node who's vendor = Cisco, and is not in the NCM_NodeProperties table, then the query would add that Node to NCM.
Does it make sense?
Ok, then I would do the following using Orion SDK:
Any chance this could be done using raw SQL queries?
Use of the SDK add a layer of complexity that I'd rather avoid.
Hi @cvachovecj ,
Could you please let me know how to add multiple nodes in NCM using SDK.
Thanks
Prashant