Software Development Kit (SDK) and API Discussions

API to pull cluster switch ip's

PBRam
2,156 Views

Hi All,

 

Is there any API to directly pull cluster switch ip's (similar to "system cluster-switch show")? I can pull it from device discovery, looking for alternative api.

 

1 REPLY 1

MikeSpencer
2,061 Views

Not directly, and I haven't tested this, but 'net-device-discovery-get-iter' will walk you through the chain of devices the Cluster knows about. The attributes you would care about are; 'capabilities' should be "switch", and 'device-ip' would be the answer you're looking for. 

 

It's probably safe to presume that there are likely multiple switches out there, so you could check the 'port' and compare it against what you (hopefully) know the interface you need (i.e. "e0m").

 

I hope this helps!

Public