DX NetOps

 View Only
  • 1.  Spectrum Schedules modified externally

    Posted Jan 26, 2018 02:07 PM

    Hi All,

    Can Anyone tell us if the restful interface in spectrum can be used to modify the scheduler to perform Maint Mode scheduling?  If so can you point us in the right direction to accomplish this.

     

     

    TIA



  • 2.  Re: Spectrum Schedules modified externally

    Broadcom Employee
    Posted Jan 26, 2018 02:23 PM
      |   view attached

    You just want to put a model into MM and/or take it out of MM?

     

    This should help:

     

    https://communities.ca.com/thread/99043995

     

    Cheers

    Jay



  • 3.  Re: Spectrum Schedules modified externally

    Posted Jan 26, 2018 03:14 PM

    Heres, what I got back from the communities.



  • 4.  Re: Spectrum Schedules modified externally

    Posted Jan 26, 2018 03:18 PM

    Hi Jason

    Sorry didn’t finish. The communities thread below makes it sound like it is only applying to one device, and you need to know what its modelname attribute.  How would you apply this to a group of devices utilizing IP addresses?  We are trying to setup a process of automatically perfroming this task during monthly reboots which have a changing schedule.

     

    Patrick



  • 5.  Re: Spectrum Schedules modified externally
    Best Answer

    Broadcom Employee
    Posted Feb 02, 2018 04:41 AM

    Hi Patrick,

     

    One of our customers came up with an easy way to do this via a custom OneClick menu that launches a script.  This way you can select the devices that you want to put into maintenance and right click and select the menu option "Maintenance On".  A similar option can be used to remove Maintenance.

    I hope this helps.

     

    Best regards,

    Glenn

     

    -----  Taken from the bottom of this post   Enable maintenance mode for a group of devices   ------

     

    I am not sure if this is an issue anymore, but we have created a solution to put multiple devices in and out of maintenance mode.  This method is based on previous comments to this post.

     

    In the custom-menu-config.xml we created a menu:

    <menu name ="com.aprisma.spectrum.app.swing.window.menu.Tools">
        <item name="Set Maintenance Mode ON">
          <popup-visibility>when-enabled</popup-visibility>
          <action> 
             <launch-web-server-script>
               <command>sh E:/SPECTRUM/custom/maintenancemode/setMaintenanceOn.sh {0}</command> 
              <param>
                <attribute>AttributeID.MODEL_HANDLE</attribute>
              </param>
     <run-for-multiple-alarms />
           </launch-web-server-script>
          </action>
        </item>
      </menu>

     

    When selecting multiple devices in the list tab in OneClick and right click, "Set Maintenance Mode ON" shows up as an alternative.

     

    The script that is launched:

    setMaintenanceOn.sh

    #!/bin/bash
    RESPONSE=`curl -i -H "application/xml" -X PUT -u user:password "http://onclickserver/spectrum/restful/model/$1?attr=0x1295d&val=false"`

     

    To get devices out of maintenance mode a similar method can be used, just change the attribute value from false to true.

     

    This is an easy way to get multiple devises in and out of maintenance mode.

     

     

    ------ end of post



  • 6.  Re: Spectrum Schedules modified externally

    Posted Feb 02, 2018 09:52 AM

    Hi Glen,

    Thank You for your input. Actually we were looking for a way to do it from another external application possibly PAM, Service Automation, etc.

     

     

    Patrick



  • 7.  Re: Spectrum Schedules modified externally

    Posted Feb 01, 2018 03:20 PM

    Roger_Nason Bob_Keville   meaja05    Please assist for a resolution on this...