Exporting sysDesr via Rest
search cancel

Exporting sysDesr via Rest

book

Article ID: 278005

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Is it possible to export sysDescr via REST

Environment

Dx NetOps any version of Spectrum

Resolution

GET model

GET model reads attributes from the specified model.

URL
 

http://<hostname><:portnumber>/spectrum/restful/model/<model_handle>[?attr=<attr_ID>]

http://<OneClick>:<port>/spectrum/restful/model/0x100152e?attr=0x1006e

http://<OneClick>:<port>/spectrum/restful/model/0x10079c4?attr=0x1006e&attr=0x12d7f

Where: 0x100152e is the device Model_Handle,0x1006e is the Model_Name, 0x12d7f is the Network_Address, and 0x10052 is sysDescr

 

https://<OC>:8443/spectrum/restful/model/0x10079c4?attr=0x1006e&attr=0x12d7f&attr=0x10052 yields the following result

 

<model-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" total-models="1" throttle="1" error="EndOfResults">
<model-responses>
<model mh="0x10079c4">
<attribute id="0x1006e">model name</attribute>
<attribute id="0x12d7f">model IP address</attribute>
<attribute id="0x10052">Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.03.05SE RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2014 by Cisco Systems, Inc. Compiled Thu 30-Oct</attribute>
</model>
</model-responses>
</model-response-list>