{
  "ForFailure" : true,
  "AppVersion" : "5.0b1",
  "Comments" : "This script resets the outlet on an APC Masterswitch.",
  "AfterChanges" : 1,
  "ForChange" : true,
  "Identifier" : "Script - APC Masterswitch",
  "IntroRelease" : "2045b",
  "Name" : "APC Masterswitch",
  "PauseUntilDate" : "0001-01-01T00:00:00Z",
  "PluginSettings" : {
    "ScriptSource" : "esc=`echo -e '\\033'`; ( echo open {Masterswitch} {TelnetPort}; sleep 3; sleep 1; echo {Username}; sleep 1; echo {Password}; sleep 1; echo \"1\"; sleep 1; echo \"3\"; sleep 1; echo {Outlet}; sleep 1; echo \"1\"; sleep 1; echo \"3\"; sleep 1; echo \"YES\"; sleep 1; echo $esc; sleep 1; echo $esc; sleep 1; echo $esc; sleep 1; echo $esc; sleep 1; echo $esc; sleep 1; echo \"4\"; sleep 1; sleep 1; echo exit ) | telnet\n\n",
    "ScriptInstructions" : "This script resets the outlet on an APC Masterswitch \n\nShell Script for rebooting an outlet on an APC Masterswitch with Network Management Card v2.6.1\nIt might work with newer versions of the Management card as well. Telnet must be enabled on the Masterswitch. Please make sure to block telnet access to your APC on your firewall so only trusted hosts can connect to the telnet port.\n ",
    "ScriptType" : "Bourne Shell: \/bin\/sh",
    "ScriptVariables" : {
      "TelnetPort" : "23",
      "Masterswitch" : "10.0.0.1",
      "Outlet" : "7",
      "Password" : "yourpassword",
      "Username" : "yourusername"
    },
    "ScriptResults" : {
      "0" : "Success"
    }
  },
  "OnlyOncePerFailure" : true,
  "MajorVersion" : 1,
  "AfterRecoveries" : 1,
  "MinorVersion" : 2,
  "FailureForRecovery" : true,
  "LastSaveName" : "APC Masterswitch",
  "PluginIdentifier" : "Script",
  "AutoPauseSettings" : [
    {
      "Identifier" : "92219CCE-C9D9-4C1F-AB1E-AAED7A781422",
      "Mode" : 0,
      "DayFromInterval" : 228867480,
      "DayToInterval" : 228867480
    }
  ],
  "IsGroup" : false,
  "GroupIdentifier" : "",
  "NextAutoResumeDate" : "4001-01-01T00:00:00Z",
  "AfterErrors" : 1,
  "Mode" : 0,
  "LastSaveDate" : "2019-11-07T03:35:21Z",
  "NextAutoPauseDate" : "4001-01-01T00:00:00Z",
  "ForRecovery" : true,
  "DeviceIdentifier" : "E9413342-9FF0-4B01-BE45-639894573DDE"
}