Appendix: Agent Installation Instructions

Here are the steps to install the agent on the login node of M:Arthur.

1. Introduction

This procedure is for installing the agent used for M:Arthur in your environment.
This procedure is to be performed only on the login node (administrative node).

OpenPBS or Slurm must already be installed to perform this procedure.
For other prerequisites, please refer to Appendix: Assumed Settings.

Please install the agent by following the procedure from 2. below.
If you are using Proxy, please follow steps 2.~4. and then 5. after our work.

2. (Customer Work) Confirmation of Prior Information

After you provide us with the administrator’s email address and other information, our representative will send you the login node information. Please make sure you have the following information on hand. ID will be issued for each login server.

  • Information we will send you
    • ActivationCode
    • ActivationId

3. (Customer Work) Agent Installation

Please install the agent according to the procedure of 3.1.~3.2.

3.1. Agent Installation

(In the case of Ubuntu)

$ mkdir -p /tmp/ssm
$ curl https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb -o /tmp/ssm/amazon-ssm-agent.deb
$ sudo dpkg -i /tmp/ssm/amazon-ssm-agent.deb

(In the case of AlmaLinux / Rocky Linux 8)

$ sudo dnf install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
$ sudo dnf install -y https://amazoncloudwatch-agent.s3.amazonaws.com/redhat/amd64/latest/amazon-cloudwatch-agent.rpm

3.2. amazon-ssm-agent activation

Execute the following command. Enter the information we have given you in the optional -code and -id fields.

$ sudo service amazon-ssm-agent stop
$ sudo service amazon-ssm-agent status ## Confirm stop
$ sudo -E amazon-ssm-agent -register -code "xxxxx" -id "xxxxx" -region "ap-northeast-1"
$ sudo service amazon-ssm-agent start
$ sudo service amazon-ssm-agent status ## Confirm startup

(Example of Execution Result) Execution Result

After execution, please check if the service is started.

$ sudo service amazon-ssm-agent status
● amazon-ssm-agent.service - amazon-ssm-agent
     Loaded: loaded (/lib/systemd/system/amazon-ssm-agent.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-04-01 05:40:58 UTC; 1 weeks 4 days ago

Please note the instance-id in the output result of running amazon-ssm-agent, mi-07767277e768bb6ca in the above sample.

4. (Customer Work) Share Your Registration Information with Us

When you have completed the above work, please provide the following information to Morgenrot.

We will contact you after our work is complete.

  • The instance-id (mi-xxxx) issued at the time of activation
  • Host name (contents of /etc/hostname)
  • Your preferred job scheduler (OpenPBS/Slurm)

5. (For Proxy Customers Only) Add Proxy Settings

This completes the installation process.
You can now begin operations in accordance with the User Guide.