Linux machine added to the nodes through API is not being polled. I did a rediscovery also. please help . here is the code.
PropertyBag nodeProps = new PropertyBag();
nodeProps.put("EntityType", "Orion.Nodes");
nodeProps.put("IPAddress", "192.168.18.13");
nodeProps.put("Caption", "IIMSS Deployment server");
nodeProps.put("DynamicIP", false);
nodeProps.put("EngineID", 1);
nodeProps.put("Status", 1);
nodeProps.put("UnManaged", false);
nodeProps.put("Allow64BitCounters", true);
nodeProps.put("External", false);
nodeProps.put("SysName", "");
nodeProps.put("NodeDescription", "");
nodeProps.put("Location", "");
nodeProps.put("Contact", "");
nodeProps.put("IOSImage", "");
nodeProps.put("IOSVersion", "");
nodeProps.put("SysObjectID", "");
nodeProps.put("MachineType", "");
nodeProps.put("Vendor", "");
nodeProps.put("VendorIcon", "");
nodeProps.put("ObjectSubType", "SNMP");
nodeProps.put("SNMPVersion", 2);
nodeProps.put("Community", "public");
final String uri = swis.create("Orion.Nodes", nodeProps.getAsSoapPropertyBag());
String strNodeId = queryScalar(swis, "SELECT NodeID FROM Orion.Nodes WHERE Uri=@uri", new PropertyBag() {{ put("uri", uri); }});
int nodeId = Integer.parseInt(strNodeId);
PropertyBag pollerProps = new PropertyBag();
pollerProps.put("NetObject", "N:" + nodeId);
pollerProps.put("NetObjectType", "N");
pollerProps.put("NetObjectID", nodeId);
pollerProps.put("PollerType", "N.Details.SNMP.Generic");
swis.create("Orion.Pollers", pollerProps.getAsSoapPropertyBag());
pollerProps.put("PollerType", "N.Uptime.SNMP.Generic");
swis.create("Orion.Pollers", pollerProps.getAsSoapPropertyBag());
pollerProps.put("PollerType", "N.Cpu.SNMP.CiscoGen3");
swis.create("Orion.Pollers", pollerProps.getAsSoapPropertyBag());
pollerProps.put("PollerType", "N.Memory.SNMP.CiscoGen3");
swis.create("Orion.Pollers", pollerProps.getAsSoapPropertyBag());