Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 20518

Node Details blank when adding node Via Perl SDK

$
0
0

I'm having an issue when adding a node via SDK, the Node details show blank, the Polling Details section says simply "A Network Node was Not Selected", and I am unable to see my node under "Manage Nodes".

 

I am using the following test code to generate the Node:

 

my @pollers = (

    'I.Status.SNMP.IfTable',

    'I.Rediscovery.SNMP.IfTable',

    'N.Details.SNMP.Generic',

    'N.Uptime.SNMP.Generic',

    'N.Cpu.SNMP.NetSnmpSystemStats',

    'N.Memory.SNMP.NetSnmpReal',

    'N.Status.ICMP.Native',

    'N.ResponseTime.ICMP.Native',

    'N.Topology_Layer3.SNMP.ipNetToMedia',

    'N.Topology_Layer3_IpRouting.SNMP.rolesRouter',

    'N.Topology_Layer3_IpRouting.SNMP.ipCidrRouter',

    'N.ResponseTime.SNMP.Native',

    'N.Status.SNMP.Native',

    'N.Routing.SNMP.Ipv4CidrRoutingTable',

    'N.AssetInventory.Snmp.Generic',

);

 

my $resp = $swis->Create(

    'Orion.Nodes',

    {

        'Caption'              => 'apitest2',

        'IPAddress'            => '10.0.0.148',

        'IPAddressGUID'        => ip2guid('10.0.0.148'),

        'DynamicIP'            => 0,

        'EngineID'             => 1,

        'Status'               => 1,

        'Allow64BitCounters'   => 1,

        'ObjectSubType'        => 'SNMP',

        'EntityType'           => 'Orion.Nodes',

        'SNMPVersion'          => 2,

        'Community'            => $community,

        'MachineType'          => 'net-snmp - Linux',

        'SysObjectID'          => '1.3.6.1.4.1.8072.3.2.10',

        'UnManaged'            => 0,

        'Vendor'               => 'net-snmp',

        'VendorIcon'           => '8072.gif',

        'BufferNoMemThisHour'  => -2,

        'BufferNoMemToday'     => -2,

        'BufferSmMissThisHour' => -2,

        'BufferSmMissToday'    => -2,

        'BufferMdMissThisHour' => -2,

        'BufferMdMissToday'    => -2,

        'BufferBgMissThisHour' => -2,

        'BufferBgMissToday'    => -2,

        'BufferLgMissThisHour' => -2,

        'BufferLgMissToday'    => -2,

        'BufferHgMissThisHour' => -2,

        'BufferHgMissToday'    => -2,

        'PercentMemoryUsed'    => -2,

        'TotalMemory'          => -2,

        'SNMPV2Only'           => 0,

        'External'             => 0,

        'DNS'                  => '',

        'IOSImage'             => '',

        'IOSVersion'           => '',

        'RediscoveryInterval'  => 60,

        'PollInterval'         => 180,

        'StatCollection'       => 5,

    }

);

 

$resp =~ /NodeID=(\d+)\</;

my $nid = $1;

print "New node id is $nid\n";

 

 

foreach my $poller (@pollers) {

    print "Adding $poller to NodeID $nid\n";

    $swis->Create(

        "Orion.Pollers",

        {

            'PollerType'    => $poller,

            'NetObject'     => "N:$nid",

            'NetObjectType' => 'N',

            'NetObjectID'   => $nid

        }

    );

}

 

 

 

I feel like I must just be missing an essential Node Property but Ive been over several other posts and can't seem to figure out what it is I'm missing. Thanks in advance.


Viewing all articles
Browse latest Browse all 20518

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>