Hi Jon,

This might get you some of the way.

 

Get name, internal_IF_alias and condition of an I/F model using model
handle

http://localhost/spectrum/restful/model/0xa000168d?attr=0x1006e&attr=0x1
1f82&attr=0x1000a

  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 

- <model-response-list
xmlns="http://www.ca.com/spectrum/restful/schema/response";
error="EndOfResults" throttle="1" total-models="1">

- <model-responses>

- <model mh="0xa000168d">

  <attribute id="0x1006e">devicename_vfc228</attribute> 

  <attribute id="0x11f82">server 1/1, VHBA fc0</attribute> 

  <attribute id="0x1000a">3</attribute> 

  </model>

  </model-responses>

  </model-response-list>

 

put a device in maintenance

D:\>Apps\curl\curl.exe -i -H "application/xml" -X PUT -u
scripting:scriptingpwd
"http://localhost/spectrum/restful/model/0xa0000fa0?attr=0x1295d&val=fal
se"

 

take a device out of maintenance

D:\>Apps\curl\curl.exe -i -H "application/xml" -X PUT -u
scripting:scriptingpwd
"http://localhost/spectrum/restful/model/0xa0000fa0?attr=0x1295d&val=tru
e"

 

Dave

 

 

From: Jon Magnus Dullerud [mailto:[email protected]] 
Sent: 09 August 2012 17:55
To: spectrum
Subject: [spectrum] Restful Web API

 

         

        Hi all

        I'm using the RESTful Web API to make an integration towards
Spectrum. The main purpose of the integration is to read some data from
devices in Spectrum into another application, and also setting specific
devices in Hibernation or Maintenance mode.

         

        I have access to the document Web Services API Reference Guide
r9.2.1 H06, but there is some information there lacking that I need to
be able to perform the proper call towards the Web API:

         

        *         The command .../spectrum/restful/devices gives me a
list of all devices inside spectrum. Are there a better way if I know
which specific device I want? From either model_handle or better yet
name of the device. The Spectrum installation here has close to 3000
devices to getting the list of all devices to extract just one takes a
lot of extra time.

        *         My documentation only contains a overview of the most
commonly used attributes (listed in Appendix A). However I need many
other additional attributes, so I need to have a complete overview of
all possible attributes.

        *         How do I actually set a device in Hibernate or
Maintenance mode? I guess I have to make a call to
.../spectrum/restful/action with the proper action_code and parameters,
but as with attributes the documentation only lists the most common
actions. What I need is a complete list of all action_codes with
decriptions, and if possible I would like to get pointed out which
action code(s) is relevant for setting a device in Hibernate of
Maintenance mode.





 





Best Reagrds.

Jon Magnus Dullerud

Norwegian Defence





 

*       --To unsubscribe from spectrum, send email to [email protected]
with the body: unsubscribe spectrum [email protected] 


Please be aware that Logicalis UK Ltd may monitor email traffic data and
also email content for security purposes.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud
service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


This email communication does not create or vary any contractual relationship 
between Logicalis and you. Internet communications are not secure and 
accordingly Logicalis does not accept any legal liability for the contents of 
this message. The contents of this email are confidential to the intended 
recipient at the email address to which it has been addressed. It may not be 
disclosed to or used by anyone other than this addressee, nor may it be copied 
in any way. If received in error, please contact Logicalis on the above 
switchboard number quoting the name of the sender and the addressee and then 
delete it from your system. Please note that neither Logicalis nor the sender 
accepts any responsibility for viruses and it is your responsibility to scan 
the email and attachments (if any).

Please be aware that Logicalis UK Ltd may monitor email traffic data and also 
email content for security purposes.

Logicalis UK Ltd,  Registered in England and Wales No: 3732397,  Registered 
Office: 110 Buckingham Avenue, Slough. Berkshire, SL1 4PF 

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to