Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Jack_Shultz
Explorer

Group membership export with IP address

I have a group object that contains close to 600 devices. I can export the group to a csv but it only contains the group information. If I search for a specific device, I can export a csv with hostname, IP address, and description. However, I cannot export a csv with the members of a group with the hostname, IP address, and description. I've looked into some APIs but did not have much luck. Any and all assistance is greatly appreciated. 

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

By description, I assume you mean comment.
Try these two CLI commands from

mgmt_cli -r true --format json show group name group-name details-level full | jq '.members[] | [.name , ."ipv4-address" , .comments ] | @csv'
mgmt_cli -r true --format json show group name adult-machines details-level full offset 500 | jq '.members[] | [.name , ."ipv4-address" , .comments ] | @csv'

Note that a second command is required since the API will only return 500 results at a time. The "offset 500" will return the next set of results.
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events