Hello
I'm unable to get my device polling after it has been added and it does not show up in the node list. I've been playing around with different settings but haven’t been able to get any further. I also noticed if I go to list resources the second page errors out where it runs it’s SNMP walk to grab further information.
If it's relevant I'm using sdk 1.10 and NPN 11.0.1
Specifically I'm trying to add a cisco switch (2960s).
Here's my script, it’s pretty much copy pasted from the documentation guide:
# add a node
$newNodeProps = @{
EntityType="Orion.Nodes";
IPAddress=$ip;
IPAddressGUID=$ipGuid;
Caption=$NodeName;
DynamicIP=$False;
EngineID=1;
Status=1;
UnManaged=$False;
Allow64BitCounters=$False;
SysObjectID="";
MachineType="";
Vendor="Cisco";
VendorIcon="";
# SNMP v2 specific
ObjectSubType="SNMP";
SNMPVersion="2"
Community="public";
# polling timing (optional) - pull from standards table
RediscoveryInterval=30; # minutes (5..525600=1 year)
PollInterval=120; # seconds (1..1200)
StatCollection=10; # minutes (1..600)
}
$newNodeUri = New-SwisObject $swis -EntityType "Orion.Nodes" -Properties $newNodeProps
$nodeProps = Get-SwisObject $swis -Uri $newNodeUri
# register specific pollers for the node
$poller = @{
NetObject="N:"+$nodeProps["NodeID"];
NetObjectType="N";
NetObjectID=$nodeProps["NodeID"];
}
# Details
$poller["PollerType"]="N.Details.SNMP.Generic";
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
# Uptime
$poller["PollerType"]="N.Uptime.SNMP.Generic";
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
# CPU
$poller["PollerType"]="N.Cpu.SNMP.CiscoGen3";
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
# Memory
$poller["PollerType"]="N.Memory.SNMP.CiscoGen3";
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller