cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2084
Views
0
Helpful
1
Comments
bdbauer
Level 1
Level 1

I'm able to pull the topology using the API GET

https://n.n.n.n/api/node/mo/topology/pod-1.json?query-target=children&target-subtree-class=fabricNode

(after authenticating and getting a cookie, of course)

 

But the version field is empty. I don't see a way to get the version of our NX-OS switches via APIC REST API. Is this something that can be done via API?

Comments
Claudia de Luna
Spotlight
Spotlight

Hi @bdbauer ,

 

Try topSystem like below:

 

https://{{URL}}//api/node/class/topSystem.json?query-target=subtree&target-subtree-class=topSystem,eqptCh,firmwareRunning

 

You will get lots of data back and for each topSystem object you get back you will also get the firmwareRunning object which has a "version" key.

 

 

        {
            "topSystem": {
                "attributes": {
                    "address": "10.0.248.2",
                    "bootstrapState": "done",
                    "childAction": "",
                    "configIssues": "",
                    "controlPlaneMTU": "9000",
                    "currentTime": "2020-04-26T05:09:04.123+00:00",
                    "dn": "topology/pod-1/node-102/sys",
                    "enforceSubnetCheck": "no",
                    "etepAddr": "0.0.0.0",
                    "fabricDomain": "ACI Fabric1",
                    "fabricId": "1",
                    "fabricMAC": "00:22:BD:F8:19:FF",
                    "id": "102",
                    "inbMgmtAddr": "0.0.0.0",
                    "inbMgmtAddr6": "::",
                    "inbMgmtAddr6Mask": "0",
                    "inbMgmtAddrMask": "0",
                    "inbMgmtGateway": "0.0.0.0",
                    "inbMgmtGateway6": "::",
                    "lcOwn": "local",
                    "modTs": "2020-04-25T14:25:02.324+00:00",
                    "mode": "unspecified",
                    "monPolDn": "uni/fabric/monfab-default",
                    "name": "leaf-2",
                    "nameAlias": "",
                    "nodeType": "unspecified",
                    "oobMgmtAddr": "10.10.10.102",
                    "oobMgmtAddr6": "::",
                    "oobMgmtAddr6Mask": "0",
                    "oobMgmtAddrMask": "0",
                    "oobMgmtGateway": "0.0.0.0",
                    "oobMgmtGateway6": "::",
                    "podId": "1",
                    "remoteNetworkId": "0",
                    "remoteNode": "no",
                    "rldirectMode": "no",
                    "role": "leaf",
                    "serial": "TEP-1-102",
                    "serverType": "unspecified",
                    "siteId": "0",
                    "state": "in-service",
                    "status": "",
                    "systemUpTime": "00:14:58:31.000",
                    "tepPool": "10.0.0.0/16",
                    "unicastXrEpLearnDisable": "no",
                    "virtualMode": "no"
                }
            }
        },
        {
            "firmwareRunning": {
                "attributes": {
                    "biosTs": "1970-01-01T00:00:00.000+00:00",
                    "biosVer": "",
                    "childAction": "",
                    "descr": "",
                    "dn": "topology/pod-1/node-102/sys/fwstatuscont/running",
                    "internalLabel": "",
                    "ksFile": "",
                    "modTs": "2020-04-25T14:12:39.049+00:00",
                    "mode": "normal",
                    "peVer": "",
                    "status": "",
                    "sysFile": "",
                    "ts": "1970-01-01T00:00:00.000+00:00",
                    "type": "switch",
                    "version": "simsw-4.1(1k)"
                }
            }
        },

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links