source/code/plugins/agent_maintenance_script.rb
# Define the usage of this maintenance script
Define the usage of this maintenance script
Define the usage of this maintenance script
def usage
  basename = File.basename($0)
  necessary_inputs = "<omsadmin_conf> <cert> <key> <pid> <proxy> <os_info> <install_info>"
  print("\nMaintenance tool for OMS Agent onboarded to workspace:"\
        "\nHeartbeat:\n"\
        "ruby #{basename} -h #{necessary_inputs}\n"\
        "ruby #{basename} --heartbeat #{necessary_inputs}\n"\
        "\nRenew certificates:\n"\
        "ruby #{basename} -r #{necessary_inputs}\n"\
        "ruby #{basename} --renew-certs #{necessary_inputs}\n"\
        "\nOptional: Add -v for verbose output\n")
end
def usage basename = File . basename ( $0 ) necessary_inputs = "<omsadmin_conf> <cert> <key> <pid> <proxy> <os_info> <install_info>" print ( "\nMaintenance tool for OMS Agent onboarded to workspace:" "\nHeartbeat:\n" "ruby #{basename} -h #{necessary_inputs}\n" "ruby #{basename} --heartbeat #{necessary_inputs}\n" "\nRenew certificates:\n" "ruby #{basename} -r #{necessary_inputs}\n" "ruby #{basename} --renew-certs #{necessary_inputs}\n" "\nOptional: Add -v for verbose output\n" ) end
Define the usage of this maintenance script
Define the usage of this maintenance script