Cisco Cisco Prime Home 6.3 Developer's Guide

Page of 78
Cisco Prime Home – Integration Guide
 
 
OL-28557-01   v5.0.1
 
22 
By default, sort is in ascending order. The sort order can be made explicit using 
the the "asc" and "desc" modifiers. The following query finds devices with OUI 
AA1122, sorted by the last inform date, with the most recent informs at the top: 
devices with oui: AA1122 sort lastInform desc  
 
Multiple sort fields may be specified. The following query finds devices with OUI 
AA1122, sorted by the last inform date, with the most recent informs at the top, 
with any devices informing on the same date sorted by serial number:  
devices with oui: AA1122 sort lastInform desc serialNumber 
Zero-Term Queries  
To match all documents of a given type, simply specify the document type. The 
following query finds all devices:  
devices 
 
The following query finds all devices, showing the serial number, sorting by the 
last inform date:  
devices show serialNumber sort lastInform