1 Reply Latest reply on Feb 3, 2014 5:58 AM by Jan Pelousek

    Not able to insert the node details through script

    vibipa

      Hello,

       

      I am running this below powershell script. But the device never shows the node details like the Machine type, Vendor icon, IOS version in Solarwinds, also it is always shown as unknown device group.

       

      How can we ensure that the node is added as a Cisco vendor device and shows all the Node details after the first polling.

       

      $newNodeProps = @{

      EntityType="Orion.Nodes";

      IPAddress="10.0.0.1";

      Caption="CORE-SWITCH-0001";

      DynamicIP=$False;

      EngineID=1;

      Status=1;

      UnManaged=$False;

      Allow64BitCounters=$False;

      SysObjectID="";

      MachineType="Cisco";

      VendorIcon="9.gif";

      ObjectSubType="SNMP";

      SNMPVersion=2;

      Community="public";

      Brand="Retail";

      City="California";

      Country="US";

      LocationID="22";

      StoreName="California";

      }

      $newNodeUri = New-SwisObject $swis –EntityType "Orion.Nodes" –Properties $newNodeProps

      $nodeProps = Get-SwisObject $swis -Uri $newNodeUri

      $poller = @{

      NetObject="N:"+$nodeProps["NodeID"];

      NetObjectType="N";

      NetObjectID=$nodeProps["NodeID"];

      }

      $poller["PollerType"]="N.Details.SNMP.Generic";

      $pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller

      $poller["PollerType"]="N.Uptime.SNMP.Generic";

      $pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller

      $poller["PollerType"]="N.Cpu.SNMP.CiscoGen3";

      $pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller

      $poller["PollerType"]="N.Memory.SNMP.CiscoGen3";

      $pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller