For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Ozzy's avatar
Ozzy
Icon for Cirrus rankCirrus
Aug 24, 2025

How can I run the ‘Network Map’ feature from the CLI or how can I view this information?

How can I run the ‘Network Map’ feature from the CLI or how can I view this information?

My goal is to retrieve information from networkmap using cli or API. I am working on automation. I would appreciate any help and suggestions on this matter.

 

4 Replies

  • I don't knwo if that can be done.

    I have prepared a script which I run before some configuration changes, to get device status.

    These are some of the endpoints wchich I use, I write it on an excel.

    #ucs = make_get_request('/mgmt/tm/sys/ucs')
    #device_group = make_get_request('/mgmt/tm/cm/device-group')
    #traffic_group = make_get_request('/mgmt/tm/cm/traffic-group')
    #make_get_request('/mgmt/tm/cm/device')
    #make_get_request('/mgmt/tm/sys/global-settings')
    #make_get_request('/mgmt/tm/cm/sync-status')
    #imish = get_imish('/mgmt/tm/util')
    #make_get_request('/mgmt/tm/net/interface/stats')
    #guests = make_get_request('/mgmt/tm/vcmp/guest')
    #perfiles_client_ssl = make_get_request('/mgmt/tm/ltm/profile/client-ssl')
    #perfiles_server_ssl = make_get_request('/mgmt/tm/ltm/profile/server-ssl')
    #certificados = make_get_request('/mgmt/tm/sys/crypto/cert')
    #claves = make_get_request('/mgmt/tm/sys/crypto/key')
    #make_get_request('/mgmt/tm/sys/ntp')
    #estadisticas = make_get_request('/mgmt/tm/ltm/virtual/stats')
    #dns = make_get_request('/mgmt/tm/gtm/wideip/a')

     

    Remember you can filter the output:

    respuesta = make_get_request('/mgmt/tm/cm/device', params={
    "$select":
    'hostname,'
    'failoverState,'
    'managementIp,'
    'version'
    })

     

    And I create the session like this, to get more info:

    params = {
    "expandSubcollections": "true"
    }

     

    • Melissa_C's avatar
      Melissa_C
      Icon for Moderator rankModerator

      Hello Ozzy​

      Wanted to see if you had an update to provide on this post or if you needed additional assistance on your post? 

      -Melissa 

      • Ozzy's avatar
        Ozzy
        Icon for Cirrus rankCirrus

        Hi Melissa_C​ ,

        There hasn't been an update on this topic yet. If you'd like to support me on this matter, I'd be happy to do so. Thank you in advance.