Reply
Accepted Solution

Anyone know where sysObjectID is?

Expert
Posts: 185
4217     0

Help!  I cannot find where in the NetMRI API that the sysObjectID is located.  I would like to include this in a report.

 

Thanks!

Re: Anyone know where sysObjectID is?

Adviser
Posts: 357
4218     0
Hmm. I think you’ll probably find it in the DeviceProperties which is a sort of catch-all for random scalars.

Re: Anyone know where sysObjectID is?

Expert
Posts: 185
4218     0

Yeah!  You are correct!  Thanks John!

 

https://netmri/api/3/device_properties/search?DeviceName=blahblahblah

<device_property>

<DataSourceID type="int">0</DataSourceID>

<DeviceID type="int">3344</DeviceID>

<DevicePropChangedCols nil="true"/>

<DevicePropEndTime nil="true"/>

<DevicePropIndex/>

<DevicePropName>sysObjectID</DevicePropName>

<DevicePropSource>SNMP</DevicePropSource>

<DevicePropStartTime type="datetime">2011-12-17 16:23:45</DevicePropStartTime>

<DevicePropTimestamp type="datetime">2017-02-16 14:00:14</DevicePropTimestamp><DevicePropValue>1.3.6.1.4.1.9.1.283</DevicePropValue>

<DevicePropertyID type="int">3292</DevicePropertyID>

<SecureVersion nil="true"/>

<_class>DeviceProperty</_class>

</device_property>

Re: Anyone know where sysObjectID is?

[ Edited ]
Expert
Posts: 185
4218     0

So, to finish this up what I did was created a quick perl script to export the device model information along with the OID and cross-match to a list of supported devices provided by Infoblox which was by OID and equipment model.

 

(Disclaimer - I've attached the list from Infoblox, I am not liable for it's contents. For an updated list please consult with Infoblox)

 

Cheers -

Lon.

Re: Anyone know where sysObjectID is?

Authority
Posts: 42
4218     0

Hi Lon, Just following on from this, has anything changed in V7.3.3

 

I wrote a small Perl script to pull off the (or so I hoped) the sysObjectID based on this thread.

The script (part that relates to it) is;

 

 

my ($deviceprop) = $easy->broker->device_property->index();

# print the device as it is found
print "dumpprop: " . Dumper($deviceprop);

 

 

What I get is the following;

 

dumpprop: bless( {
DataSourceID => 2,
DeviceID => "8170202663844258315",
DevicePropChangedCols => undef,
DevicePropEndTime => undef,
DevicePropIndex => "",
DevicePropName => "rttMonApplVersion",
DevicePropSource => "SNMP",
DevicePropStartTime => "2016-07-22 03:44:18",
DevicePropTimestamp => "2019-09-11 21:28:46",
DevicePropValue => "2.2.0 Round Trip Time MIB",
DevicePropertyID => "160096916269578",
SecureVersion => undef,
_client => 2
}, 'NetMRI::API::Remote::V3_2_0:Smiley Very HappyeviceProperty' )

 

 

I was expecting DevicePropValue to contain the sysObjectID, 

However it lists;

 

DevicePropValue => "2.2.0 Round Trip Time MIB",

 

Am I doing something wrong here?

 

Thanks

Russ

Re: Anyone know where sysObjectID is?

Expert
Posts: 185
4218     0

You should be able to see a <DevicePropName>sysObjectID</DevicePropName> in the output.  Try the api call from your browser.  Also be sure that it is a supported device.  The call returns an array of device_properties, which would include things like sysdesc, sysname, snmpstatus, etc.

 

-Lon

Re: Anyone know where sysObjectID is?

Authority
Posts: 42
4218     0

Thanks for the reply Lon, Maybe looking in the wrong area. I'm missing the other snmp objects you mention also.,

 

 

Rgds

 

Russ

Re: Anyone know where sysObjectID is?

Expert
Posts: 185
4218     0

Try another deviceID, one that is a supported switch or router.  If that doesn't work, maybe best to open a case with Infoblox.

 

-Lon.

Showing results for 
Search instead for 
Do you mean 

Recommended for You