This post is more than 5 years old
15 Posts
0
2075
July 13th, 2016 09:00
Is there a Platform API to get mapping of device id and internal-ip?
Hi,
We are building a splunk plugin for Isilon and fetching data through Platform APIs and forwarding Isilon Syslogs and Audit Logs in splunk app.
On Isilon version 7.x, i can see the the device's external ip in syslog message whereas in Isilon version 8.0, Syslogs comes with device's internal ip address.
Now to map these addresses with device ids, We need Platform API calls which helps to map internal and external ips to device ids.
There is a platform API to get external ip - /platform/1/cluster/external-ips.
Is there any API to get internal-ip ?
Thanks,
Pankaj
0 events found
No Events found!


kipcranford
125 Posts
1
July 19th, 2016 08:00
> Is there any API to get internal-ip ?
There isn't, as far as I know.
The only thing I know of that maps internal and external IPs to device IDs, in a way that's easily consumable, is the "isi_nodes" command. So you can do this from the CLI:
# isi_nodes %{name} %{external} %{internal_a} %{lnn} %{devid}
x4101-1 10.245.109.130 192.168.130.130 1 1
x4101-2 10.245.109.131 192.168.130.131 2 2
x4101-3 10.245.109.132 192.168.130.132 3 3
That being said, 'isi_nodes', having an underscore in the name, is not technically a customer-facing command. This means that Isilon could remove the command without warning, change the output of the command, etc.
So I would suggest that you work with your account team to get a feature request filed that asks for internal IP information via our API.
AdamFox
254 Posts
1
July 19th, 2016 07:00
Starting in 8.0, all of 'isi networks' are in the API so any command you can run with 'isi networks ...' can be run via the API.
As far as internal IPs. The only way I know on the CLI to get the internal IP range is via 'isi config' which is not part of the API so I'm not sure how to do that or if it's possible. Hopefully, you aren't relying on the internal IP addresses of a cluster from an application as those are private.
Isilon123
15 Posts
0
July 19th, 2016 10:00
Sure. Thanks for pointing out.
-Pankaj
kipcranford
125 Posts
0
July 19th, 2016 10:00
> I will contact EMC support for this feature request.
Please contact your account team/SE. EMC Support doesn't handle feature requests.
Isilon123
15 Posts
0
July 19th, 2016 10:00
Thanks a lot Kip.
The solution you suggested would work for sure, However I want to stick with API calls and syslogs only as data collection points. So for now I am not correlating the API eventswith syslogs and Auditlogs.
I will contact EMC support for this feature request.
Thanks,
Pankaj
Isilon123
15 Posts
0
July 19th, 2016 10:00
Hi kipcranford
I am facing issue with one more API call - that id /platform/2/even/events. Can you please Have a look at this link? Re: Not getting expected result for API call - platform/2/event/events?begin=
Thanks,
Pankaj
Isilon123
15 Posts
0
July 19th, 2016 10:00
Thanks Adam.
I am relying on external ip only for my application. I wanted to correlate API events with Syslogs and Audit Logs also. However on Isilon 8.0 , I am getting internal ip only(as hostname) in each syslog message, so wanted to have some mappig of internal ip , external ip and device ids for beeter correlation.
Thanks,
Pankaj.
Peter_Sero
4 Operator
•
1.2K Posts
1
July 19th, 2016 23:00
/platform/3/network/interfaces
does include the internal interfaces and IPs, at least on my 8.0.0.1 virtual node...
hth
-- Peter
kipcranford
125 Posts
1
July 20th, 2016 07:00
> /platform/3/network/interfaces
>
>does include the internal interfaces and IPs, at least on my 8.0.0.1 virtual node...
It doesn't on my physical clusters -- I only get the external information.
It could be that since your VM node is emulating IB over ethernet, OneFS is including everything.
Peter_Sero
4 Operator
•
1.2K Posts
0
July 20th, 2016 07:00
But it's good to be aware of the difference here.
Isilon123
15 Posts
0
July 20th, 2016 07:00
Yes this call works for version 8.0 and since this is a platform-3 API call it would not work on 7.X version.
Thanks,
Pankaj