How to find maintenance schedules using CLI in DX NetOps Spectrum?
search cancel

How to find maintenance schedules using CLI in DX NetOps Spectrum?

book

Article ID: 368164

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How to find maintenance schedules using CLI in DX NetOps Spectrum?

Resolution

The association you are looking for is "MAINT_SCHEDULE".

See here:

0x1000074   model_name                       MAINT_SCHEDULE                   0x1000068   Every day from 6 PM for 13 hours

You can use the "show associations" CLI command to look at all the associations a device has:

[spectrum@hostname vnmsh]$ ./show associations mh=0x1000074
LMHandle    LMName                            Relation                         RMHandle    RMName
0x1000004   Universe                          Collects                         0x1000074   model_name                   
0x1000074   model_name                      MAINT_SCHEDULE                   0x1000068   Every day from 6 PM for 13 hours

Also note that you can use REST API to do the same thing if you prefer to do that over CLI:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/23-3/programming/web-services-api-reference/how-to-use-the-ca-spectrum-web-services-api/restful-resources-nouns/associations.html#concept.dita_d03fe2e108278a21db78ad03f95614754c65b243_DELETEassociations