Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
List all Devices That Haven't Reported for More Than 7 Days and Limit Result Fields
Published Jan 07

List all Devices That Haven't Reported for More Than 7 Days and Limit Result Fields

Jan 07, 2026
Subscribe

Back to CloudGen Access CLI Client Usage Examples

./access-cli devices list -list-all -o json | jq '(now-3600*24*7) as $when | .[] | select(.last_report_at != null) | select(.last_report_at | sub(".[0-9]*Z$"; "Z")| strptime("%Y%m-%dT%H:%M:%SZ") | mktime < $when) | {User: .user.name, DeviceCreated: .created_at, Model: .hardware_model, LastReport: .last_report_at}'

Example output:

 

{ "User": "Carol", "DeviceCreated": "2022-04-08T13:07:26.985Z", "Model": "MacBookAir10,1", "LastReport": "2022-06-02T18:27:43.000Z" } { "User": "Bob", "DeviceCreated": "2022-06-08T03:52:28.016Z", "Model": "iPhone12,8", "LastReport": "2022-06-08T03:55:47.000Z" } { "User": "Alice", "DeviceCreated": "2022-05-26T18:21:44.543Z", "Model": "MacBookPro15,2", "LastReport": "2022-06-02T16:14:04.000Z" } { "User": "Bob", "DeviceCreated": "2022-05-19T05:37:39.850Z", "Model": "Latitude 7420", "LastReport": "2022-06-08T07:12:23.000Z" }

 

 

 


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.

🔍 Discover Our Product Documentation

Barracuda CloudGen Access
Results will update as you type.
  • Getting Started
  • Deployment
  • CloudGen Access Console
  • CloudGen Access Application
  • CloudGen Access User Directory Connector
  • CloudGen Access Proxy
  • CloudGen Access CLI Client
    • How to Set the CloudGen Access Console Endpoint
    • How to Use the Admin API
    • Batch Mode Operations
    • Using access-cli
      • CloudGen Access CLI Client Usage Examples
        • Export List of Enrolled Users to a CSV File
        • Find the Last Time a Particular User Accessed a Specific / Any App
        • List All Devices and Limit Result Fields
        • List All Devices and Limit Result Fields to ID
        • List All Devices Created Before Given Date
        • List all Devices That Haven't Reported for More Than 7 Days and Limit Result Fields
        • List all devices with specific username
        • Manage User Enrollments
        • Revoke All Enrollment Links From Tenant
    • Configuration File
    • Credentials File
  • FAQ
  • Best Practices
  • Maintenance
  • Troubleshooting
  • Release Notes
  • Glossary
  • Security Advisories

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 30, "requestCorrelationId": "afdbe5dbfb9d49f6ab8bb8271c653c52"}