Skip to main content
Question

Export the Network Segments

  • October 28, 2014
  • 2 replies
  • 7 views

ImAMacGuy
Forum|alt.badge.img+23

We have about 180 network segments in our environment with more added constantly. Is there a way to export our current list of segments to compare against? I noticed the Subnet Importer plugin, but it despite the "export" button, it only imports from CSV to the JSS, not "export" from the JSS to CSV.

2 replies

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • October 28, 2014

I'd look at the API for that. It shows all Network Segments, names and starting/ending IP ranges. Might take a little bit of digging to get it formatted correctly, but it should be possible to "export" them out to a csv formatted file.


Forum|alt.badge.img+12
  • Contributor
  • October 28, 2014

The API Endpoint would be as follows:

https://jss.example.com:8443/JSSResource/networksegments

It returns by default in XML format and spits out the segment id, name, starting address and ending address.

Once you get the results, if you are looking for a one time export then you could use something like http://xmlgrid.net/xml2text.html