Hey, I just tried to use the Perl SDK to create a new node, and the discovered node is never rediscovered, nor does it ever act like a normal node. Here's the code I used:
print $swis->Create('Orion.Nodes',
{
'EntityType'=>'Orion.Nodes',
'IP_Address'=>'10.215.255.236',
'IPAddressGUID'=>'ECFFD70A-0000-0000-0000-000000000000',
'SNMPVersion'=>'2',
'Community'=>'public',
'Caption'=>'RDCASANTAC-B',
'DNS'=>'rdcasantac-b.oneabbott.com',
'SysObjectID'=>'1.3.6.1.4.1.9.1.543',
'SysName'=>'RDCASANTAC-B.oneabbott.com',
'Location'=>'',
'Contact'=>'',
'DynamicIP'=>0,
'EngineID'=>2,
'Status'=>1,
'UnManaged'=>0,
'Allow64BitCounters'=>1
});
The SysObjectID and GUID are correct because they are taken directly from the DisocveredNodes table. Thing is, I ran this 5 days ago, and while it created the node, it never rediscovers it, and never fills in the details like system description and Machine Type. In fact, below, I've copied the Polling details section below. As you can see, the database update is as of today (8/3/2012) but the next rediscovery is listed as 7/30/2012 11:22 AM.
This is reproducible, repeatedly, and happens no matter what I put in the code. Thing is, if I go through the frontend and go off of the discovered entry in the discovery profile, it works fine. So there's nothing wrong with this particular router node as far as managability, and the values that I used in the addnode code above are identical to what gets added to the nodes table after I go through the frontend.
I think that there's something wrong with the SDK itself, rather than the code, since there's nothing special about what I'm doing here.
Ideas?
Node Details
| | Management | Edit Node List Resources Unmanage Remanage Pollers Poll Now Rediscover | | | Node Status | | Node is Up. | | | IP Address | | 10.215.255.236 | | | Dynamic IP | | No | | | Machine Type | | Unknown | | | DNS | | rdcasantac-b.oneabbott.com | | | System Name | | RDCASANTAC-B.oneabbott.com | | | Description | | | | | Location | | | | | Contact | | | | | SysObjectID | | 1.3.6.1.4.1.9.1.543 | | | Last Boot | | | | | Operating System | | | | | IOS Image | | Unknown | | | Hardware | | Physical | | | No of CPUs | | 0 | | | Telnet | | telnet://10.215.255.236 | | | Web Browse | | http://10.215.255.236 |
|
Polling Details
| | Polling Engine | WT00056D (10.228.157.77) |
| | Polling Method | SNMP |
| | Polling Interval | 120 seconds |
| | Next Poll | 01:44 PM |
|
| | Statistics Collection | 10 minutes |
| | Enable 64 bit Counters | Yes |
| |
| | Rediscovery Interval | 30 minutes |
| | Next Rediscovery | 7/30/2012 11:22 AM |
| |
| | Last Database Update | 8/3/2012 01:42 PM |