Hey Gang,
new to the whole API scene and I am trying the following code with the program Postman:
https://<hostname>:17778/SolarWinds/InformationService/v3/Json/Create/Orion.Nodes
{
"ObjectSubType": "SNMP",
"IPAddress": "10.x.x.x",
"IPAddressType": "IPv4",
"DNS": "switchname.company.com",
"DynamicIP": false,
"SysName": "switchname",
"IOSImage": "",
"IOSVersion": "",
"Vendor": "Test",
"Icon": "9.gif ",
"Location": "City",
"IsServer": false,
"Contact": "me",
"CMTS": "N",
"SNMPVersion": 2,
"Community": "<password>",
"RWCommunity": "",
"EngineID": 1,
"Status": 1,
"NodeName": "switchname",
"Allow64BitCounters": true,
"EntityType": "Orion.Nodes",
"UnManaged": false
}
and this is the output that I get in the DB:
{
"NodeID": 18,
"ObjectSubType": "SNMP",
"IPAddress": "10.91.0.2",
"IPAddressType": "IPv4",
"DynamicIP": false,
"Caption": "switchname",
"NodeDescription": "",
"Description": "Unknown",
"DNS": "switchname.company.com",
"SysName": "switchname",
"Vendor": "Test",
"SysObjectID": "",
"Location": "City",
"Contact": "me",
"VendorIcon": "9.gif ",
"Icon": "9.gif ",
"Status": 1,
"StatusLED": null,
"StatusDescription": "Node status is Unknown.",
"CustomStatus": false,
"IOSImage": "",
"IOSVersion": "",
"GroupStatus": "Unknown.gif ",
"StatusIcon": "Unknown.gif ",
"LastBoot": null,
"SystemUpTime": null,
"ResponseTime": null,
"PercentLoss": null,
"AvgResponseTime": null,
"MinResponseTime": null,
"MaxResponseTime": null,
"CPULoad": -2,
"MemoryUsed": -2,
"MemoryAvailable": null,
"PercentMemoryUsed": null,
"PercentMemoryAvailable": null,
"LastSync": null,
"LastSystemUpTimePollUtc": null,
"MachineType": "Unknown",
"IsServer": false,
"Severity": null,
"UiSeverity": null,
"ChildStatus": 1,
"Allow64BitCounters": true,
"AgentPort": "161",
"TotalMemory": null,
"CMTS": "N",
"CustomPollerLastStatisticsPoll": "1899-12-30T07:00:00",
"CustomPollerLastStatisticsPollSuccess": "1899-12-30T07:00:00",
"SNMPVersion": 2,
"PollInterval": 120,
"EngineID": 1,
"RediscoveryInterval": 30,
"NextPoll": "2019-04-01T20:39:45.67",
"NextRediscovery": "2019-04-01T21:09:44.67",
"StatCollection": 10,
"External": null,
"Community": "<password>",
"RWCommunity": "",
"IP": "10.x.x.x",
"IP_Address": "10.x.x.x",
"IPAddressGUID": "02005b0a-0000-0000-0000-000000000000",
"NodeName": "switchname",
"BlockUntil": "1899-12-30T07:00:00",
"BufferNoMemThisHour": -2,
"BufferNoMemToday": -2,
"BufferSmMissThisHour": -2,
"BufferSmMissToday": -2,
"BufferMdMissThisHour": -2,
"BufferMdMissToday": -2,
"BufferBgMissThisHour": -2,
"BufferBgMissToday": -2,
"BufferLgMissThisHour": -2,
"BufferLgMissToday": -2,
"BufferHgMissThisHour": -2,
"BufferHgMissToday": -2,
"OrionIdPrefix": "N:",
"OrionIdColumn": "NodeID",
"SkippedPollingCycles": null,
"MinutesSinceLastSync": null,
"EntityType": "Orion.Nodes",
"DetailsUrl": "/Orion/NetPerfMon/NodeDetails.aspx?NetObject=N:18",
"DisplayName": "switchname",
"Category": null,
"IsOrionServer": false
}
The problem is the node doesn't ever poll or uprade and leaves a lot of the nodes with "null" values. rediscovers and manual poll updates don't work.