
I've successfully added a node with an interface using SDK, but the interface pollers don't appear in the database so the displays aren't correct;
Here is the PowerShell code used to add the interface and pollers to the node;
The interface shows up in the Interfaces table. Here is my Powershell code for adding the interface and pollers;
# add interface and pollers for Ethernet0
$nodeId = "2395"
$newIfaceProps = @{
NodeID=$nodeId;
InterfaceName="Ethernet0";
InterfaceIndex=1;
ObjectSubType="SNMP";
Status=1;
}
$newIfaceUri = New-SwisObject $swis –EntityType "Orion.NPM.Interfaces" –Properties $newIfaceProps
$ifaceProps = Get-SwisObject $swis -Uri $newIfaceUri
# register specific pollers for Ethernet0
#
# Interface Traffic Statistics
$poller = @{
PollerType="I.StatisticsTraffic.SNMP.Universal";
NetObject="I:"+$ifaceProps["InterfaceID"]
}
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
#
# Interface Errors
$poller = @{
PollerType="I.StatisticsErrors32.SNMP.IfTable";
NetObject="I:"+$ifaceProps["InterfaceID"]
}
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
#
# Interface Status
$poller = @{
PollerType="I.Status.SNMP.IfTable";
NetObject="I:"+$ifaceProps["InterfaceID"]
}
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
#
# Interface Rediscovery
$poller = @{
PollerType="I.Rediscovery.SNMP.IfTable";
NetObject="I:"+$ifaceProps["InterfaceID"]
}
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
#
Since the SDK doesn't have standard support, we have to use this forum to get any help. I posted this nine days ago and there hasn't been any reply. Has forum support for this product been withdrawn? Why no response?
Hi mkomeara--
We still support SDK through this forum. I apologize for the delay in a response. I have sent this over to the PM as of this morning. Hang tight.
Thanks,
DH
Hi mkomeara,
It seems that RediscoveryInterval, PollInterval and StatCollection properties need to be set when adding interfaces, unlike nodes for which they are optional.
Also, I recommend providing IfName property value identifying an interface, it is more reliable method.
Please let us know if that helped.
Just a quick update: we have updated the Orion SDK 1.4 with a new revision of Technical Reference reflecting the need of initializing additional properties when adding interfaces.