Hi Folks,
when I add nodes through a script and tell it to use SNMPv1 they are not being fully discovererd by Orion (OID etc. is missing)
when adding Nodes with SNMPv2 this works like a charm.
Any Ideas?
The relevanrt Script snippetis shown below, when I change the Bold vaule to 1 the node does not get rediscovered.
if ($NewNodeCounter){
foreach($entry in $NewNodelist){
$newNodeProps = @{
EntityType="Orion.Nodes";
IPAddress=$($entry.IP_ADRESSE);
Caption=$($entry.KOMPONENTE);
DynamicIP=$False;
EngineID=$($NewNodeCounter %3 +1);
Status=1;
UnManaged=$False;
Allow64BitCounters=$True;
Institutsnummer=$($entry.INSTITUT);
Geraete_Gruppe=$($entry.LOCATION);
Maintenance=$($entry.MAINTENANCE);
DNS_IP=$($entry.DNSIPADRES);
Zugriff=$($entry.ACCESS);
Institutsname=$($entry.CAM_SI_INSTITUTNAME);
Geschaeftsstelle=$($entry.Z_BUILDING);
PLZ=$($entry.BUI_ZIP_CODE);
Ort=$($entry.BUI_LOCATION);
Strasse=$($entry.BUI_STREET_AND_NO);
# SNMP v2 specific
ObjectSubType="SNMP";
SNMPVersion=2;
Community=$($entry.COMMUNITY_RO);
RediscoveryInterval="15";
}
$Script:NewNodeCounter--
$newUri = New-SwisObject $target –EntityType "Orion.Nodes" –Properties $newNodeProps
$newNode = Get-SwisObject $target -Uri $newUri
# register specific pollers for the node
$poller = @{
NetObject="N:"+$newNode["NodeID"];
NetObjectType="N";
NetObjectID=$newNode["NodeID"];
}
# Details
$poller["PollerType"]="N.Details.SNMP.Generic";
$pollerUri = New-SwisObject $target -EntityType "Orion.Pollers" -Properties $poller
# Uptime
$poller["PollerType"]="N.Uptime.SNMP.Generic";
$pollerUri = New-SwisObject $target -EntityType "Orion.Pollers" -Properties $poller