Enabling Bulk Maintenance for several devices
search cancel

Enabling Bulk Maintenance for several devices

book

Article ID: 331901

calendar_today

Updated On:

Products

VMware Smart Assurance VMware Telco Cloud Automation

Issue/Introduction

Enable bulk maintenance on devices; is there a way to enable maintenance mode for multiple devices?

Environment

SMARTS - 10.1.x

SMARTS-DM - 2.x

TCSA - 2.x

Resolution

  • Scheduling bulk maintenance:

    • We can schedule multiple devices and groups for maintenance using a text file (for use with the bulk maintenance adapter) or an XML file (to be used with the sm_config functionality).
    • When a group is scheduled for maintenance, a schedMaint notification for the group is created, resulting in all the members of the group being scheduled for maintenance.
  • Scheduling bulk maintenance using a text file:

    • Open a text editor.
    • Create a file with the format:
ClassName InstanceName startDate startTime endDate endTime

where the format for the startDate and endDate values is mm-dd-yyyy and the format for startTime and endTime values is HH::MM.

    • Values are delimited with space characters and comments are added with a pound character at the start of the line.

      For example,
      # This is the input file for bulk maintenance
      # Hosts to be scheduled for maintence are
      Host <Device_Name> 06-23-2024 16:00 06-23-2024 18:59
      Host <Device_Name> 06-23-2024 16:00 06-23-2024 18:59
      # The following group is scheduled for maintence
      SelectiveGroup HGRP-TL/G1 07-09-2024 11:58 07-15-2024 16:57


    • Save and exit the file.
    • Upload the file to the server.
  • To load the bulk maintenance text file:

    • Open a Command Prompt window.
    • Change directory to the smarts/bin directory.
    • Type the following command:
      sm_adapter -s <SAM_Domain> --file=<fileName> --output=<outputfileName> ../rules/ics/ics-bulk-maint.asl