ringmaster software version 7.6 web services api user guide
TRANSCRIPT
![Page 1: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/1.jpg)
Copyright © 2011, Juniper Networks, Inc. 1
Release
7.631 October 2011 (Release Date)
RingMaster Software Version 7.6Web Services API User Guide
![Page 2: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/2.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
nt
Contents
Overview
The RingMaster 7.6 Web Services API is an XML-based API used to set up the
SNMP interface and provide other alarm / inventory details using polling rather
than using a trap mechanism.
RingMaster Agent provides the RingMaster 7.6 Web Services API so that
upstream applications can retrieve the version of RingMaster. The version will
correspond to the REST interface version, which is not the same as the
RingMaster software version
RingMaster Agent allows the RingMaster 7.6 Web Services API to retrieve an
alarm summary from the RingMaster alarm module (each alarm type, criticality
and counts).. The alarm summary can be filtered based on query criteria using
the Web API. (For example, client failure alarms with a certain SSID).
The Web API provides inventory information, such as a list of devices (MXs and
APs) and corresponding information in RingMaster (name, model, serial
number, build number, system IP, location, contact info, admin state, and
operational status).
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
API Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Client Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
AirDefenseServer
LA-200
Managed MXs
SNMPTraps
XML-basedAPIs
RingMaster Clie
Alarms/Monitoring
Configuration
RingMaster Services
Managed MXs
2 Contents Copyright © 2011, Juniper Networks, Inc.
![Page 3: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/3.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
RingMaster Agent allows the RingMaster 7.6 Web Services API to configure a
list of SNMP targets (up to 4) and do basic RingMaster Agent configuration.
The following information is included:
Enable/Disable RM SNMP notification (global)
Basic SNMP Target Information (up to 4 targets)
− Target IP address
− Port
− Community String
− Filtering Criteria
> By severity: (Critical, Major, Minor, Info, All – Default: All)
> By category: (Client, Performance, Security, System, All – Default: All)
You can select a combination of the above critieria. For example, you can select
both Critical and Major, and Client and Security alarms. You can add, modify, or
delete an SNMP target.
Advanced configuration includes:
Updating interval (instant, 1 minute, 5 minutes, 15 minutes – Default 5 minutes)
RingMaster Agent buffers alarms based on the specified interval and forwards
these alarms to specified SNMP targets only after the specified interval. This is
designed to manage alarm bursting scenarios.
API Interface
The RingMaster 7.6 Web Services API provides a programmatic equivalent of the
provisioning interface. It allows you to build your own interfaces or applications
that use Internet technologies to access and manage RM alarms and device
information.
An industry standard for providing Web Services is the REST (Representational
State Transfer) architecture. Popular Web sites such as Yahoo Web Services and
eBay Services are all using REST like architecture to provide services to the
customized users for advertising and web searching.. See the following link for
REST architecture and sample Yahoo Web services:
http://en.wikipe-dia.org/wiki/Representational_State_Transfer
http://developer.yahoo.com/search/local/V3/localSearch.htmlThe idea behind REST is to locate a resource using a URI (Universal Resource
Identifier). For example, it can use HTTP GET to download or retrieve a list of
resources, a PUT or POST method to make a change to it, and DELETE method
to remove it. The response will be in XML format and the schema can be
published for ease of integration.
Copyright © 2011, Juniper Networks, Inc. API Interface 3
![Page 4: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/4.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
Access to the RingMaster 7.6 Web Services API is controlled via user name and
password-based authentication. User names and passwords can be configured
via the Administrative interface. Based on whether user privileges are set to the
monitoring or provisioning level, a user can access the corresponding set of APIs.
For the following WEB API, the monitoring privilege is required. Any privilege
more than Monitoring can access ths Web API.
When the RingMaster 7.6 Web Services API is called via HTTP Request, the
request should
embed/insert basic authorization in the HEADER. See the following link for a
tutorial on Basic Authentication:
http://en.wikipedia.org/wiki/Basic_access_authentication
Licensing
The RingMaster 7.6 Web Services API is part of the separately licensed
RingMaster Agent feature. The license SKU for this feature is RMTS-AGENT, and
it works just like the RMTS-PLAN license in that it requires that a base RMTS
license be installed first.
License information is as follows:
When the RingMaster Agent license is not installed, RingMaster does not support
the RingMaster 7.6 Web Services API, and a Code 403 Forbidden error is
returned in this situation. In SNMP notification, when you click Notification, you
will be notified that a RingMaster Agent license is missing and all functions for
SNMP notification are disabled.
Web Services
The following is a list of Web services the RingMaster Agent provides. The
RingMaster Agent publishes a list of Web API interfaces and the response XML
schema in the release.
All Web request URLs start with the RingMaster Server IP Address and port,
service name, version number, followed by a method name. The method is
followed by query parameters, which take the form argument=value, where
arguments and values are URL encoded. Multiple parameters are separated by
an ampersand character (i.e. “&”).
Product Code SKU Description
02 RMTS Base license enabling support for up to 5 APs
and one switch.
07 RMTS-AGENT Enables RingMaster Agent feature
4 Licensing Copyright © 2011, Juniper Networks, Inc.
![Page 5: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/5.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
For RM Agent 7.6, the command is updated to support the full access control
privilege and the result has a new format where the result is divided into sections
based on the privilege of the user group.
Get RM Agent version Request URL:
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/version
Request Parameters:
This request has no parameters.
Response Schema:
Schema file:
agent-version.xsd
Request & Response Example:
Request:
https://127.0.0.1 /webservice/rm-agent/v1/monitor/version
Response:
<?xml version="1.0" encoding="UTF-8"?>
<BUILD_NUMBER>7.0.1.0</ BUILD_NUMBER> <BUILD_DATE>2001-01-01</BUILD_DATE> <PRODUCT_NAME>RingMaster</PRODUCT_NAME> <PRODUCT_SHORT_NAME>RM</PRODUCT_SHORT_NAME></VERSION>
Comments:
The BUILD_DATE is short format, MM/DD/YY.
Get a list of current alarms Request URL:
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/current-alarms?scope=all(equipment||planning)
Request Parameters:
The “scope” parameter is required, and the value of the scope must be all, equipment, or rf-planning.
Request & Response Example:
Request:
https://127.0.0.1 /webservice/rm-agent/v1/current-alarms?scope%3Dall
Response:
xmlns=”http://trapezenetworks.com/rm_current_alarms” time=”09-03-30 16:09:46”>
<VIEW name=”monitor” scope=”equipment”>
Copyright © 2011, Juniper Networks, Inc. Web Services 5
![Page 6: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/6.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<CATEGORY-COUNTS><CATEGORY name="Client" critical="0" major="0"
minor="0"info="0" total="0" />
<CATEGORY name="Performance" critical="0" major="0" minor="0"
info="0" total="0" /><CATEGORY name="Security" critical="0" major="0"
minor="0"info="79" total="79" />
<CATEGORY name=”Client” critical=”0” major=”0” minor=”0”info=”0” total=”0”/>
<CATEGORY name="System" critical="1" major="0" minor="0"
info="0" total="1" /><CATEGORY name="Total" critical="1" major="0"
minor="0"info="79" total="80" />
</CATEGORY-COUNTS>
<TYPE-COUNTS><TYPE name=”AP Fingerprint Check” category=”0” severity=”0”
active=”1” cleared=”0” /><TYPE name="AP Status Alarm" count="1" sever-
ity=”0” active=”0” cleared=”0”/>
<TYPE name=”Ad-hoc User Detected” category=”3” severity=”3” active=”0” cleared=”0” />
<TYPE name=”Low RSSI” category=”1” severity=”1” active=”1” cleared=”0” />
<TYPE name=”Low SNR” category=”1” severity=”1” active=”1” cleared=”0” />
<TYPE name="Suspect AP Detected" category=”3” severity=”3”
active=”50” cleared=”9” /><TYPE name="total" count="80" />
</TYPE-COUNTS><SECURITY-COUNTS>
<DOS /> <IDS>
<SECURITY-COUNT name="Suspect AP Detected" count="50" /> <SECURITY-COUNT name="Ad-hoc User Detected" count="1" /> </IDS> </SECURITY-COUNTS> </VIEW>- <VIEW name="monitor" scope="rf-planning">- <CATEGORY-COUNTS> <CATEGORY name="System" critical="1" major="0" minor="0" info="1" total="2"
/> <CATEGORY name="Performance" critical="0" major="0" minor="13" info="0"
total="13" /> <CATEGORY name="Client" critical="0" major="0" minor="0" info="0" total="0"
/> <CATEGORY name="Security" critical="0" major="6" minor="0" info="12"
total="18" /> <CATEGORY name="Total" critical="1" major="6" minor="13" info="13"
total="33" /> </CATEGORY-COUNTS><TYPE-COUNTS>
<TYPE name="AP Status Alarm" category="0" severity="0" active="1" cleared="6" />
6 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 7: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/7.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<TYPE name="Ad-hoc User Detected" category="3" severity="3" active="4" cleared="22" />
<TYPE name="Low RSSI" category="1" severity="1" active="4" cleared="6" /> <TYPE name="Low SNR" category="1" severity="1" active="9" cleared="3" /> <TYPE name="Power Supply Status Check" category="0" severity="0"
active="1" cleared="0" /> <TYPE name="Rogue AP Client Detected" category="3" severity="3" active="2"
cleared="7" /> <TYPE name="Suspect AP Detected" category="3" severity="3" active="12"
cleared="23" /> </TYPE-COUNTS>- <SECURITY-COUNTS> <DOS /> - <IDS> <SECURITY-COUNT name="Rogue AP Client Detected" count="2" /> <SECURITY-COUNT name="Suspect AP Detected" count="12" /> <SECURITY-COUNT name="Ad-hoc User Detected" count="4" /> </IDS> </SECURITY-COUNTS> </VIEW> </ALARMS-SUMMARY>
</ALARMS-SUMMARY>
Get a list of current alarms with query criteria Request URL:
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/current-alarms?scope=all(or equipment or rf-planning)&op=query&type=client&ssid=trpz-wlan
Request Parameters:
Request & Response Example:
Request:
Parameter Value Description
scope All|equipment|rf-planning Sample:scope=all
op
query To query a different sets of alarms based on the
query criteria
Sample: op=query
Time_start
All | time (option) If this item ignored, the meaning is “all”
The time format must like yy-mm-dd hh:mm:ss,
Sample: time_start=07-11-29 23:20:47
time_end All | time (option) See above.
Type
system|performance|client
|security|all (required)
Sample 1: type=system
Sample 2:
type=system&type=client&type=performance
severity
critica|major|minor|info|all
(required)
Sample 1: type=minor
Sample 2: severity=critical&severity=major
state
All|active|acknowledged
|cleared|deleted (required)
Sample 1: state =active
Sample 2: state=active&state=deleted
Copyright © 2011, Juniper Networks, Inc. Web Services 7
![Page 8: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/8.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
https://127.0.0.1/webservice/rm-agent/v1/monitor/current-alarms?scope%3Dall%26op%3Dquery%26%20type%3DSystem%26severity%3Dcritical,info%26time_start%3D08-11-12%2012:12:12%26
Response:
<Alarms_Details time="09-06-19 12:47:06"> <VIEW name="monitor" scope="equipment"> <ALARM_LIST count="1"> <ALARM alarmObject="MX-216(2)" category="System" desc="Power Sup-
ply 2 is Missing or Failed" lastUpdateTime="09-06-19 12:46:14" state="Active" severity="Info">
</ALARM> </ALARM_LIST> </VIEW> <VIEW name="monitor" scope="rf-planning"> <ALARM_LIST count="16"> <ALARM alarmObject="AP5:AP-1-10" category="System" desc="AP:
AP5:AP-1-10 with serial number (0674800352) is Down" lastUpdate-Time="09-06-19 12:22:51" state="Active" severity="Critical">
</ALARM> <ALARM alarmObject="AP6:AP06" category="System" desc="AP:
AP6:AP06 with serial number (0890201321) is Down" lastUpdate-Time="09-06-19 12:22:51" state="Active" severity="Critical">
</ALARM> <ALARM alarmObject="AP1:AP(22)" category="System" desc="AP:
AP1:AP(22) with serial number (0671501441) is Down" lastUpdate-Time="09-06-19 12:22:51" state="Active" severity="Critical">
</ALARM> <ALARM alarmObject="MX-20(1)" category="Security" desc="A Suspect
AP, MAC: 00:0b:0e:24:40:84 (Trapeze), SSID: symbio_guest, Radio </ALARM_LIST> </VIEW></Alarms_Details>
If you wish to continue with the query, you must narrow the scope of the query
criteria.
Get list of device inventoryThe following is a sample query URI for retrieving a list of MXs and access points:
Request URL:
https://127.0.0.1/webservice/rm-agent/v1/monitor/devices?scope=all(equipment||rf-planning)
Request Parameters:
The parameter, “scope”, is required. .
Request & Response Example:
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/devices%3Dall
Response:
If the query results in more than 5000 alarms, the response only returns
the last 5K alarms. The sort item is lastUpdateTime.
8 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 9: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/9.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<?xml version="1.0" encoding="UTF-8"?><DEVICES time="09-03-30 11:36:29">
<VIEW name="configure" scope="equipment"><DEVICE mac_address="00:0B:0E:56:0F:1A"
model="MXR-2"system_ip="172.31.177.77/27"
sw_version="7.0.7.3.0"location="""" name="MXR2-77"
license="Access Points:4"object-id="com.trapeze.appl.shared.mdl.Chas-
sis: 397" contact=""serial_number="0791600540" />
<DEVICE mac_address="00:00:00:00:00:00" model="MP-422"
system_ip="" name="MXR277-AP01"object-id="com.trapeze.appl.shared.mdl.Distrib-
utedAP: 826"serial_number="123"><RADIOS_INFO radio_1_type="802.11b
"radio_2_mac_address="00:00:00:00:00:00" radio_2_type="802.11b"radio_1_mac_address="00:00:00:00:00:00" />
</DEVICE></VIEW><VIEW name="configure" scope="rf-planning">
<DEVICE mac_address="00:00:00:00:00:00" model="MP-422"
system_ip="" name="AP-L1-a1-2.4G~-1"object-id="com.trapeze.appl.shared.mdl.Distrib-
utedAP: 5097"serial_number="auto-rfplan-5097"><RADIOS_INFO radio_1_type="802.11b"
radio_2_mac_address="00:00:00:00:00:00" radio_2_type="802.11b"
radio_1_mac_address="00:00:00:00:00:00" /></DEVICE><DEVICE mac_address="00:0B:0E:3A:CD:42"
model="MX-200"system_ip="172.31.177.200/27"
sw_version="7.0.7.3.0"location="""" name="MX-200(1)"
license="Access Points:32"object-id="com.trapeze.appl.shared.mdl.Chas-
sis: 3401" contact=""serial_number="0624800034" />
</VIEW></DEVICES>
Client Summary Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/client-summary?scope=all(equipment||rf-planning)
Request Parameters
This XML query returns similar results as RM inventory report.
Copyright © 2011, Juniper Networks, Inc. Web Services 9
![Page 10: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/10.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
"scope" parameter is required, the value of the scope must be all, equipment
or rf-planning.
Access Control Scope
Monitor privilege
Request & Response Example
Request:https://127.0.0.1/webservice/rm-agent/v1/monitor/client-summary?scope%3Dall
Response:
<CLIENT-SUMMARY xmlns="http://www.trapezenetworks.com/rm_client_summary">
<VIEW name="monitor" scope="equipment">
<CLIENTS-BY-SSID>
<SSID name="zxc" count="1" />
</CLIENTS-BY-SSID>
<CLIENTS-BY-ACCESSTYPE>
<ACCESS-TYPE name="DOT1X" count="1" />
</CLIENTS-BY-ACCESSTYPE>
<CLIENS-BY-RADIOTYPE>
<RADIO-TYPE name="802.11g" count="1" />
</CLIENS-BY-RADIOTYPE>
</VIEW >
<VIEW name="monitor" scope="rf-planning">
<CLIENTS-BY-SSID>
<SSID name="zxc" count="1" />
</CLIENTS-BY-SSID>
<CLIENTS-BY-ACCESSTYPE>
<ACCESS-TYPE name="DOT1X" count="1" />
</CLIENTS-BY-ACCESSTYPE>
<CLIENS-BY-RADIOTYPE>
<RADIO-TYPE name="802.11g" count="1" />
</CLIENS-BY-RADIOTYPE>
</VIEW>
</CLIENT-SUMMARY>
Statistics Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/statistics?scope=all(equipment||rf-planning)&time= xxx
Request Parameters
"scope" and "time" parameter is required.
10 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 11: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/11.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
The value of the scope must be all, equipment or rf-planning.
The time is to represent the specified number of seconds since the standard
base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/statistics?scope%3Dall%26time%3D1238400000
Response:
<TIMESERIES-SUMMARY xmlns="http://www.trapezenetworks.com/rm_statistics">
- <VIEW name="monitor" scope="equipment">
<SESSION-STATISTICS authorizedClients="0" clientDot1xErrors="0" clientAssocErrors="0" clientAuthenErrors="0" clientAuthorErrors="0" />
<TRAFFIC-STATISTICS octetIn="120237" octetOut="109197" octetTotal="229434" time="1238400000" />
</VIEW>
- <VIEW name="monitor" scope="rf-planning">
<SESSION-STATISTICS authorizedClients="1" clientDot1xErrors="0" clientAssocErrors="0" clientAuthenErrors="0" clientAuthorErrors="0" />
<TRAFFIC-STATISTICS octetIn="60117" octetOut="54597" octetTotal="114714" time="1238400000" />
</VIEW>
</TIMESERIES-SUMMARY>
Status Summary Request URL
https://<RingMasterServerIP>/webservice/rm-agent /v1/monitor/status-summary?scope=all(equipment||rf-planning)
Request Parameters
"scope" parameter is required.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent /v1/monitor/status-summary?scope%3Dall
Response:
<STATUS-SUMMARY
xmlns=”http://www.trapezenetworks.com/rm_status_summary”>
Copyright © 2011, Juniper Networks, Inc. Web Services 11
![Page 12: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/12.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<VIEW name="monitor" scope="equipment">
<MXS down="0" up="5" disabled="0" unknown="0" />
<APS down="3" up="1" disabled="0" unknown="0" />
<RADIOS down="5" up="2" disabled="0" unknown="0" />
</VIEW>
<VIEW name="monitor" scope="rf-planning">
<MXS down="0" up="1" disabled="0" unknown="0" />
<APS down="1" up="0" disabled="0" unknown="0" />
<RADIOS down="2" up="0" disabled="0" unknown="0" />
</VIEW>
</STATUS-SUMMARY>
Summary Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/summary?scope=all(equipment||rf-planning)
.Request Parameters
"scope" parameter is required, the value of the scope must be all, equipment
or rf-planning
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/summary?scope%3Dall
Response:
- <MONITOR-SUMMARY
xmlns="http://www.trapezenetworks.com/rm_monitor_summary">
- <VIEW name="monitor" scope="equipment">
- <ALARMS-SUMMARY>
- <CATEGORY-COUNTS>
<CATEGORY name="System" critical="1" major="1" minor="0" info="0"
total="2" />
<CATEGORY name="Performance" critical="0" major="0" minor="2" info="0"
total="2" />
<CATEGORY name="Client" critical="0" major="0" minor="0" info="0"
total="0" />
12 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 13: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/13.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<CATEGORY name="Security" critical="0" major="1" minor="0" info="50"
total="51" />
<CATEGORY name="Total" critical="1" major="2" minor="2" info="50"
total="55" />
</CATEGORY-COUNTS>
- <TYPE-COUNTS>
<TYPE name="AP Fingerprint Check" category="0" severity="0" active="1"
cleared="0" />
<TYPE name="AP Status Alarm" category="0" severity="0" active="1"
cleared="0" />
<TYPE name="Ad-hoc User Detected" category="3" severity="3" active="1"
cleared="9" />
<TYPE name="Low RSSI" category="1" severity="1" active="1" cleared="0"
/>
<TYPE name="Low SNR" category="1" severity="1" active="1" cleared="0" />
<TYPE name="Suspect AP Detected" category="3" severity="3" active="50"
cleared="9" />
</TYPE-COUNTS>
- <SECURITY-COUNTS>
<DOS />
- <IDS>
<SECURITY-COUNT name="Suspect AP Detected" count="50" />
<SECURITY-COUNT name="Ad-hoc User Detected" count="1" />
</IDS>
</SECURITY-COUNTS>
</ALARMS-SUMMARY>
- <CLIENT-SUMMARY>
- <CLIENTS-BY-SSID>
<SSID name="ssid-belinda1" count="1" />
</CLIENTS-BY-SSID>
- <CLIENTS-BY-ACCESSTYPE>
<ACCESS-TYPE name="DOT1X" count="1" />
</CLIENTS-BY-ACCESSTYPE>
- <CLIENTS-BY-RADIOTYPE>
<RADIO-TYPE name="802.11g" count="1" />
</CLIENTS-BY-RADIOTYPE>
</CLIENT-SUMMARY>
Copyright © 2011, Juniper Networks, Inc. Web Services 13
![Page 14: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/14.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
- <STATUS-SUMMARY>
<MXS down="0" up="1" disabled="0" unknown="0" />
<APS down="1" up="1" disabled="0" unknown="0" />
<RADIOS down="1" up="2" disabled="0" unknown="0" />
</STATUS-SUMMARY>
</VIEW>
- <VIEW name="monitor" scope="rf-planning">
- <ALARMS-SUMMARY>
- <CATEGORY-COUNTS>
<CATEGORY name="System" critical="1" major="0" minor="0" info="1"
total="2" />
<CATEGORY name="Performance" critical="0" major="0" minor="13"
info="0" total="13" />
<CATEGORY name="Client" critical="0" major="0" minor="0" info="0"
total="0" />
<CATEGORY name="Security" critical="0" major="6" minor="0" info="13"
total="19" />
<CATEGORY name="Total" critical="1" major="6" minor="13" info="14"
total="34" />
</CATEGORY-COUNTS>
- <TYPE-COUNTS>
<TYPE name="AP Status Alarm" category="0" severity="0" active="1"
cleared="6" />
<TYPE name="Ad-hoc User Detected" category="3" severity="3" active="4"
cleared="22" />
<TYPE name="Low RSSI" category="1" severity="1" active="4" cleared="6"
/>
<TYPE name="Low SNR" category="1" severity="1" active="9" cleared="3" />
<TYPE name="Power Supply Status Check" category="0" severity="0"
active="1" cleared="0" />
<TYPE name="Rogue AP Client Detected" category="3" severity="3"
active="2" cleared="7" />
<TYPE name="Suspect AP Detected" category="3" severity="3" active="13"
cleared="22" />
</TYPE-COUNTS>
- <SECURITY-COUNTS>
<DOS />
14 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 15: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/15.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
- <IDS>
<SECURITY-COUNT name="Rogue AP Client Detected" count="2" />
<SECURITY-COUNT name="Suspect AP Detected" count="13" />
<SECURITY-COUNT name="Ad-hoc User Detected" count="4" />
</IDS>
</SECURITY-COUNTS>
</ALARMS-SUMMARY>
- <CLIENT-SUMMARY>
<CLIENTS-BY-SSID />
<CLIENTS-BY-ACCESSTYPE />
<CLIENTS-BY-RADIOTYPE />
</CLIENT-SUMMARY>
- <STATUS-SUMMARY>
<MXS down="0" up="0" disabled="0" unknown="0" />
<APS down="0" up="0" disabled="0" unknown="0" />
<RADIOS down="0" up="0" disabled="0" unknown="0" />
</STATUS-SUMMARY>
</VIEW>
</MONITOR-SUMMARY>
Server Status Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/server-status
Request Parameters
Not applicable.
Access Control Scope
Not applicable.
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/server-status
Response:
<?xml version="1.0" encoding="UTF-8"?>
<SERVER-STATUS
xmlns="http://www.trapezenetworks.com/rm_server_status"
BUILD-NUMBER="7.6.0.0.266" BUILD-DATE="03/10/11"
PRODUCT-NAME="RingMaster"
Copyright © 2011, Juniper Networks, Inc. Web Services 15
![Page 16: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/16.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
PRODUCT-SHORT-NAME="RingMaster" PLAN-NAME="Default"
UPTIME="71535489"
HOST-NAME="lchcan2"></SERVER-STATUS>
Comments: the BUILD_DATE is in the short format, as MM/DD/YY.
Devices Summary Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
devices-summary?scope=all(equipment||rf-planning)
Request Parameters
"scope" parameter is required. (The value of the scope must be all, equipment
or rf-planning)
Access Control Scope
View privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/devices-summary?scope%3Dall
Response:
<DEVICES-SUMMARY
xmlns="http://www.trapezenetworks.com/rm_devices_summary">
<VIEW name="configure" scope="equipment">
<MXS>
<MX model="MXR-2" managed="2" unmanaged="0"/>
</MXS>
<APS>
<AP model="MP-71" managed="1" unmanaged="0"/>
<AP model="MP-432" managed="3" unmanaged="0"/>
<TOP-MX-BY-CLIENTS>
<MX name="mx1" AuthorizedClients="1" Throughput="67648"
TxMulticastOctets="15806167" TxUnicastOctets="24099258"
RxOctets="134007619" Traffic="173913044" ApLocation="0" />
</TOP-MX-BY-CLIENTS>
<TOP-MX-BY-TRAFFIC>
<MX name="mx1" AuthorizedClients="1" Throughput="67648"
TxMulticastOctets="15806167" TxUnicastOctets="24099258"
RxOctets="134007619" Traffic="173913044" ApLocation="0" />
</TOP-MX-BY-TRAFFIC>
16 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 17: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/17.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
</VIEW>
<VIEW name="monitor" scope="rf-planning" />
</TOP-SUMMARY>
Find MX Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
find-mx?scope=equipment&name=xxx&ip-address=xxx&serial-number=xxx&status=xxx.
Request Parameters
Scope is always set to "equipment". If no search criteria is provided, all results
are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-mx?scope%3Dequipment
Response:
<FIND-MX xmlns="http://www.trapezenetworks.com/rm_find_mx"
tooManyMatches="false" limitedAccess="true">
<VIEW name="monitor" scope="equipment">
<Device object-id="Mobility Exchange:1734" name="MXR2-76"
ip-address="172.31.177.76" serial-number="0621800238" model="MXR-2"
status="Up" />
<Device object-id="Mobility Exchange:397" name="MXR2-77"
ip-address="172.31.177.77" serial-number="0791600540" model="MXR-2"
status="Up" />
<Device object-id="Mobility Exchange:5954" name="mx1"
ip-address="172.31.177.39" serial-number="0525200128" model="MXR-2"
status="Up" />
</VIEW>
</FIND-MX>
Find AP Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
find-AP?scope=equipment&name=xxx&ip-address=xxx&serial-number=xxx&model=xxx.
Request Parameters
Copyright © 2011, Juniper Networks, Inc. Web Services 17
![Page 18: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/18.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
Scope is always set to "equipment". If no search criteria is provided, all results
are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-AP?scope%3Dall
Response:
<FIND-AP xmlns="http://www.trapezenetworks.com/rm_find_ap"
tooManyMatches="false" limitedAccess="true">
<VIEW name="all" scope="equipment">
<DEVICE object-id="Distributed AP:826" name="MXR277-AP01"
serial-number="123" model="MP-422" status="Down" />
<DEVICE object-id="Distributed AP:6410" name="AP01"
serial-number="0674600143" model="MP-422" status="Up" />
<DEVICE object-id="Distributed AP:6419" name="AP05"
serial-number="33323233" model="MP-71" status="Down" />
</VIEW>
</FIND-AP>
Find Site Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
find-site?scope=rf-planning&name=xxx
Request Parameters
Scope is always set to "rf-planning". If no search criteria is provided, all results
are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-site?scope%3Drf-planning
Response:
<FIND-SITE xmlns="http://www.trapezenetworks.com/rm_find_site"
tooManyMatches="false" limitedAccess="false">
<VIEW name="monitor" scope="rf-planning">
18 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 19: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/19.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<SITE object-id="Site:5072" name="SiteA"
network-plan="YourPlan" />
</VIEW>
</FIND-SITE>
Find Building Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
find-building?scope=rf-planning&name=xxx
Request Parameters
Scope is always set to "rf-planning". If no search criteria is provided, all results
are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-building?scope%3Drf-planning:
Response:
<FIND-BUILDING xmlns="http://www.trapezenetworks.com/rm_find_building"
tooManyMatches="false" limitedAccess="true">
<VIEW name="monitor" scope="rf-planning">
<BUILDING object-id="Building:5080" name="Building1"
network-plan="YourPlan" site="SiteA" />
</VIEW>
</FIND-BUILDING>
Find Floor Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
find-floor?scope=rf-planning&name=xxx
Request Parameters
Scope is always set to "rf-planning". If no search criteria is provided, all results
are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
Copyright © 2011, Juniper Networks, Inc. Web Services 19
![Page 20: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/20.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-floor?scope%3Drf-planning:
Response:
<FIND-FLOOR xmlns="http://www.trapezenetworks.com/rm_find_floor"
tooManyMatches="false" limitedAccess="true">
<VIEW name="monitor" scope="rf-planning">
<FLOOR object-id="Floor:5082" name="Floor1"
network-plan="YourPlan" site="SiteA" building="Building1" />
</VIEW>
</FIND-FLOOR>
Find Outdoor Area Request URL
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/
find-outdoorarea?scope=rf-planning&name=xxx
Request Parameters
Scope is always set to "rf-planning". If no search critiera is provided, all the
outdoor areas are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-outdoorarea?scope%3Drf-planning:
Response:
<FIND-OutdoorArea
xmlns="http://www.trapezenetworks.com/rm_find_outdoorarea"
tooManyMatches="false" limitedAccess="true">
<VIEW name="monitor" scope="rf-planning">
<OUTDOORAREA object-id="Outdoor Area:15360" name="OA1"
site="SiteA" network-plan="YourPlan" />
<OUTDOORAREA object-id="Outdoor Area:15366" name="OA2"
site="SiteA" network-plan="YourPlan" />
</VIEW>
</FIND-OutdoorArea>
Find Client Request URL
20 Web Services Copyright © 2011, Juniper Networks, Inc.
![Page 21: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/21.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
https://<RingMasterServerIP>/webservice/rm-agent/v1/monitor/find-client?scope=all(equipment||rf-planning)&user-name=xxx&mac-address=xxx&ip-address=xxx.
Request Parameters
Scope is one of "equipment | rf-planning | all".
Besides scope, at least one of the search critieral must be provided.
Access Control Scope
Monitor privilege
Request & Response Example
Request:
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-client?scope%3Dall%26user-name%3Dbelinda1
Response:
<FIND-CLIENT-RESULT
xmlns="http://www.trapezenetworks.com/find_client"
tooManyMatches="false" limitedAccess="true">
<VIEW name="monitor" scope="equipment">
<USER-SESSION session-id="SESS-295-310934-376258-96b8a"
user-name="belinda1" ip-addr="172.31.177.51"
mac-addr="00:1b:11:e8:d3:ab" ssid="ssid-belinda1"
session-state="ACTIVE" start-time="1238376258000" access-type="DOT1X"
auth-server="172.31.176.23" auth-protocol="PASSTHRU"
collected-time="1238399317824" op-rate="36" snr="48" rssi="-47"
Request Parameters
Scope is always set to "rf-planning". If no search critiera is provided, all the
outdoor areas are returned.
Access Control Scope
Monitor privilege
Request & Response Example
Request
https://127.0.0.1/webservice/rm-agent/v1/monitor/find-outdoorarea?scope%3Drf-planning:
Response:
<FIND-OutdoorArea
xmlns="http://www.trapezenetworks.com/rm_find_outdoorarea"
tooManyMatches="false" limitedAccess="true">
<VIEW name="monitor" scope="rf-planning">
Copyright © 2011, Juniper Networks, Inc. Web Services 21
![Page 22: RingMaster Software Version 7.6 Web Services API User Guide](https://reader036.vdocument.in/reader036/viewer/2022062604/613d66fe736caf36b75ce896/html5/thumbnails/22.jpg)
RingMaster Software Version 7.6 Web Services API User Guide
<OUTDOORAREA object-id="Outdoor Area:15360" name="OA1"
site="SiteA" network-plan="YourPlan" />
<OUTDOORAREA object-id="Outdoor Area:15366" name="OA2"
site="SiteA" network-plan="YourPlan" />
</VIEW>
</FIND-OutdoorArea>
device-ip-address="172.31.177.39" device-name="mx1"
device-obj-id="Mobility Exchange:5954"
radio-obj-id="ProductSpecific Radio:6413"
device-enable-pwd="00141215174c04140b" device-authmode="LEGACY" />
</VIEW>
<VIEW name="monitor" scope="rf-planning">
<USER-SESSION session-id="SESS-295-310934-376258-96b8a"
user-name="belinda1" ip-addr="172.31.177.51"
mac-addr="00:1b:11:e8:d3:ab" ssid="ssid-belinda1"
session-state="ACTIVE" start-time="1238376258000" access-type="DOT1X"
auth-server="172.31.176.23" auth-protocol="PASSTHRU"
collected-time="1238399317824" op-rate="36" snr="48" rssi="-47"
device-ip-address="172.31.177.39" device-name="mx1"
device-obj-id="Mobility Exchange:5954"
radio-obj-id="ProductSpecific Radio:6413"
device-enable-pwd="00141215174c04140b" device-authmode="LEGACY" />
</VIEW>
</FIND-CLIENT-RESULT>
Error HandlingThe RingMaster 7.6 Web Services API returns standard HTTP errors.
The following errors have been identified:
Code 400: Bad request
Code 403: Forbidden
Code 503: Service Unavailable
When an error is returned, the following XML fragment is passed in the HTML
body:
<ERROR>
<MESSAGE>The error message</MESSAGE>
</ERROR>
22 Web Services Copyright © 2011, Juniper Networks, Inc.