Our Myriad Mac OS

The HIPAA Security Rule (45 CFR § 164.312 ) requires that covered entities provide adequate safeguards to protect the integrity of ePHI and prevent unauthorized access. In an effort to protect patient information and comply with federal regulation, Myriad utilizes a secure messaging system when transmitting sensitive or protected information via email.

Mac OS High Sierra (macOS 10.13). As the new name suggests, it’s just a refinement of last year’s Mac OS Sierra. In fact, you could sum up what's new in an article about as short as this one.

If you are experiencing issues viewing or replying to a secure email message that you have received from Myriad, please take the following steps:

  • Upgrade your web browser to the most recent version or try using a new browser. Here is a list of supported browsers:
    • Internet Explorer 8.0, 9.0, 10.0 and 11.0
    • Firefox 31.0
    • Google Chrome 37.0
    • Apple Safari 7.0 for Mac OS X
    • IBM Lotus Notes 8.5.3
  • Press ‘Ctrl + F5’ to refresh the page and cache
  • Ensure that JavaScript is enabled in your browser
  • Add https://securemsg.myriad.com/enduser to your trusted sites
  • Disable Compatibility mode if you are using Internet Explorer

If you have taken the previously mentioned steps and continue to experience problems viewing or replying to secure email messages, please have your Myriad contact submit a helpdesk ticket to Myriad’s IT department.

We at Myriad Genetic Laboratories value the importance of protecting the privacy and confidentiality of our patients’ information, and apologize for any inconvenience that you have encountered while using the secure email messaging system.

Mac OS High Sierra (macOS 10.13). As the new name suggests, it’s just a refinement of last year’s Mac OS Sierra. In fact, you could sum up what's new in an article about as short as this one. Myriad plug-in Mac OS X versions below or equal to 10.3.8 don't manage properly mach-o plug-ins. If you want to use the Myriad plug-in on such versions of the system, please download this archive: Myriad plug-in for Mac OS X up to 10.3.8.

I have an account, now:

How do I log in?§

Logging in is most straightforward if you are inside the UCL firewall. If you are logging in from home or other external networks then you first have to get on to the UCL network.

Linux / Unix / Mac OS X§

Use the terminal and type the below command to secure shell (ssh) into the machine you wish to access. Replace <your_UCL_user_id> with your central UCL username, and <system_name> with the name of the machine you want to log in to, eg. myriad, kathleen, aristotle.

Windows§

On Windows you need something that will give you a suitable terminal and ssh - usually PuTTY, although you could also use Cygwin if you wanted a full Linux-like environment.

Using PuTTY§

PuTTY is a common SSH client on Windows and is available on Desktop@UCL. You can find it under: Start > All Programs > Applications O-P > PuTTY

You will need to create an entry for the host you are connecting to with the settings below. If you want to save your settings, give them an easily-identifiable name in the 'Saved Sessions' box and press 'Save'. Then you can select it and 'Load' next time you use PuTTY.

You will then be asked to enter your username and password. Only enter your username, not @<system_name>.rc.ucl.ac.uk. The password field will remain entirely blank when you type in to it - it does not show placeholders to indicate you have typed something.

Logging in from outside the UCL firewall§

You will need to either use the UCL Virtual Private Network or ssh in to UCL's gateway socrates.ucl.ac.uk first. From Socrates you can then ssh in to our systems.

Note: the default shell (what you are typing commands into) on Socrates is csh rather than bash and so your default prompt will look different and use a % rather than a $ as the dividing character:

Advanced: If you find you need to go via Socrates often, you can set up this jump automatically, see Single-step logins using tunnelling

Login problems§

If you experience difficulties with your login, please make sure that you are typing your UCL user ID and your password correctly. If you have recently updated your password, it takes some hours to propagate to all UCL systems.

If you still cannot get access but can access other UCL services like Socrates, please contact us on rc-support@ucl.ac.uk. Your account may have expired, or you may have gone over quota.

If you cannot access anything, please see UCL MyAccount - you may need to request a password reset from the Service Desk.

If you get a host key error message, you will need to delete old host keys - continue reading!

Remote host identification has changed§

When you log in via SSH, it keeps a record of the host key for the server you logged in to in your .ssh/known_hosts file in your home directory, on the machine you are logging in from. This helps make sure you are connecting directly to the server you think you are, but can cause warnings to show up if the host key on that machine has genuinely changed (usually because of an update or reinstall).

Check the host key warning against our current key fingerprints:

The error message looks like this if you are using OpenSSH in a terminal:

This tells you that the old key is in line 11 of your known_hosts file. Sometimes it will give you a direct command you can run to remove that specific key:

or you can manually delete line 11 yourself in a text editor.

Mac Os Mojave

If you are logging in via Socrates, you will need to remove the old key there too. On Socrates, pico and vi are available text editors. If you are not already familiar with vi, use pico - it has the command shortcuts shown at the bottom, where ^O means press Ctrl and then the letter o.

Once you have removed the old host key you will be able to ssh in again. The first time you log in to an unknown server you will get a message like this:

Typing yes will allow you to continue logging in.

PuTTY will display a warning and you can choose to continue or not.

WinSCP will say Server's host key does not match the one that WinSCP has in cache. and you will have the option to update the key.

Mac OS X connection failures§

If you are on Mac OS X and getting many ssh connection failures and broken pipe messageswhen trying to log in, try adding an ssh timeout to your ssh command:

This has particularly been a problem with Mac OS X Big Sur when using the VPN.

How do I transfer data onto the system?§

You can transfer data to and from our systems using any program capable of using the Secure Copy (SCP) protocol. This uses the same SSH system as you use to log in to a command line session, but then transfers data over it. This means that if you can use SSH to connect to a system, you can usually use SCP to transfer files to it.

Copying files using Linux or Mac OS X§

Our Myriad Mac Os 11

You can use the command-line utilities scp, sftp or rsync to copy your data about. You can also use a graphical client (Transmit, CyberDuck, FileZilla).

scp§

This will copy a data file from somewhere on your local machine to a specified location on the remote machine (Legion, Grace etc).

This will do the reverse, copying from the remote machine to your local machine. (This is still run from your local machine).

sftp§

You can use sftp to log in to the remote machine, navigate through directories and use put and get to copy files from and to your local machine. lcd and lls are local equivalents of cd and ls so you can navigate through your local directories as you go.

rsync§

rsync is used to remotely synchronise directories, so can be used to only copy files which have changed. Have a look at man rsync as there are many options.

Copying files using Windows and WinSCP§

WinSCP is a graphical client that you can use for scp or sftp.

  1. The login/create new session screen will open if this is the first time you are using WinSCP.
  2. You can choose SFTP or SCP as the file protocol. If you have an unstable connection with one, you may wish to try the other. SCP is probably generally better.
  3. Fill in the hostname of the machine you wish to connect to, your username and password.
  4. Click Save and give your settings a useful name.
  5. You'll then be shown your list of Stored sessions, which will have the one you just created.
  6. Select the session and click Login.

MobaXterm§

If using MobaXterm, you may need to set a password for the left side file manager panel separately as well as for the main panel, to allow you to drag and drop files and have them transferred to the cluster.

Transferring files from outside the UCL firewall§

As when logging in, when you are outside the UCL firewall you will need a method to connect inside it before you copy files. (You do not want to be copying files on to Socrates and then on to our systems - this is slow, unnecessary, and it means you need space available on Socrates too).

You can use the UCL Virtual Private Network and scp direct to our systems or you can do some form of ssh tunnelling.

Single-step logins using tunnelling§

Linux / Unix / Mac OS X§

On the command line§

or

This tunnels through Socrates in order to get you to your destination - you'll be asked for your password twice, once for each machine. You can use this to log in or to copy files.

You may also need to do this if you are trying to reach one cluster from another and there is a firewall in the way.

Using a config file§

You can create a config file which does this without you needing to type it every time.

Inside your ~/.ssh directory on your local machine, add the below to your config file (or create a file called config if you don't already have one).

Generally, it should be of this form where <name> can be anything you want to call this entry.

This causes the commands you type in your client to be forwarded on over a secure channel to the specified remote host.

Here are some examples - you can have as many of these as you need in your config file.

You can now just type ssh myriad or scp file1 aristotle:~ and you will go through Socrates. You'll be asked for login details twice since you're logging in to two machines, Socrates and your endpoint.

Windows - WinSCP§

WinSCP can also set up SSH tunnels.

  1. Create a new session as before, and tick the Advanced options box in the bottom left corner.
  2. Select Connection > Tunnel from the left pane.
  3. Tick the Connect through SSH tunnel box and enter the hostname of the gateway you are tunnelling through, for example socrates.ucl.ac.uk
  4. Fill in your username and password for that host. (Central UCL ones for Socrates).
  5. Select Session from the left pane and fill in the hostname you want to end up on after the tunnel.
  6. Fill in your username and password for that host and set the file protocol to SCP.
  7. Save your settings with a useful name.
Our

Windows - PuTTY§

You can use PuTTY for tunnelling when you just want a single-step login and not a file transfer.

Managing your quota§

After using lquota to see your total usage, you may wish to find what is using all your space.

du is a command that gives you information about your disk usage. Useful options are:

The first will give you a summary of the sizes of directory tree and subtrees inside the directory you specify, using human-readable sizes with a total at the bottom. The second will show you the totals for all top-level directories relative to where you are, plus the grand total. These can help you track down the locations of large amounts of data if you need to reduce your disk usage.

How do I submit a job to the scheduler?§

To submit a job to the scheduler you need to write a jobscript that contains the resources the job is asking for and the actual commands you want to run. This jobscript is then submitted using the qsub command.

It will be put in to the queue and will begin running on the compute nodes at some point later when it has been allocated resources.

Passing in qsub options on the command line§

The #$ lines in your jobscript are options to qsub. It will take each line which has #$ as the first two characters and use the contents beyond that as an option.

You can also pass options directly to the qsub command and this will override the settings in your script. This can be useful if you are scripting your job submissions in more complicated ways.

For example, if you want to change the name of the job for this one instance of the job you can submit your script with:

Or if you want to increase the wall-clock time to 24 hours:

You can submit jobs with dependencies by using the -hold_jid option. For example, the command below submits a job that won't run until job 12345 has finished:

You may specify node type with the -ac allow= flags as below:

That would restrict the job to running on nodes of type X, Y or Z (the older Legion nodes).

Note that for debugging purposes, it helps us if you have these options inside your jobscript rather than passed in on the command line whenever possible. We (and you) can see the exact jobscript that was submitted for every job that ran but not what command line options you submitted it with.

Checking your previous jobscripts§

If you want to check what you submitted for a specific job ID, you can do it with the scriptfor utility.

As mentioned above, this will not show any command line options you passed in.

How do I monitor a job?§

qstat§

The qstat command shows the status of your jobs. By default, if you run it with no options, it shows only your jobs (and no-one else’s). This makes it easier to keep track of your jobs.

The output will look something like this:

This shows you the job ID, the numeric priority the scheduler has assigned to the job, the name you have given the job, your username, the state the job is in, the date and time it was submitted at (or started at, if it has begun), the head node of the job, the number of 'slots' it is taking up, and if it is an array job the last column shows the task ID.

The queue name (Yorick here) is generally not useful. The head node name (node-x02e-006) is useful - the node-x part tells you this is an X-type node.

If you want to get more information on a particular job, note its job ID and then use the -f and -j flags to get full output about that job. Most of this information is not very useful.

Job states§

  • qw: queueing, waiting
  • r: running
  • Rq: a pre-job check on a node failed and this job was put back in the queue
  • Rr: this job was rescheduled but is now running on a new node
  • Eqw: there was an error in this jobscript. This will not run.
  • t: this job is being transferred
  • dr: this job is being deleted

Many jobs cycling between Rq and Rr generally means there is a dodgy compute node which is failing pre-job checks, but is free so everything tries to run there. In this case, let us know and we will investigate.

If a job stays in t or dr state for a long time, the node it was on is likely to be unresponsive - again let us know and we'll investigate.

A job in Eqw will remain in that state until you delete it - you should first have a look at what the error was with qexplain.

qexplain§

This is a utility to show you the non-truncated error reported by your job. qstat -j will show you a truncated version near the bottom of the output.

qdel§

You use qdel to delete a job from the queue.

You can delete all your jobs at once:

More scheduler commands§

Have a look at man qstat and note the commands shown in the SEE ALSO section of the manual page. Exit the manual page and then look at the man pages for those. (You will not be able to run all commands).

nodesforjob§

This is a utility that shows you the current percentage load, memory used and swap used on the nodes your job is running on. If your job is sharing the node with other people's jobs, it will show you the total resources in use, not just those used by your job. This is a snapshot of the current time and resource usage may change over the course of your job. Bear in mind that memory use in particular can increase over time as your job runs.

If a cluster has hyperthreading enabled and you aren't using it, full load will show as 50% and not 100% - this is normal and not a problem.

For a parallel job, very low (or zero) usage of any of the nodes suggests your job is either not capable of running over multiple nodes, or not partitioning its work effectively - you may be asking for more cores than it can use, or asking for a number of cores that doesn't fit well into the node sizes, leaving many idle.

The above example shows a multi-node job, so all the usage belongs to this job itself. It is running on four nodes, and node-r99a-238 is the head node (the one that launched the job) and shows up in both Primary and Secondaries. The load is very unbalanced - it is using two nodes flat out, and two are mostly doing nothing. Memory use is low. Swap use is essentially zero.

jobhist§

Once a job ends, it no longer shows up in qstat. To see information about your finished jobs - when they started, when they ended, what node they ran on - type jobhist.

FSTIME - when the job started running on the nodeFETIME - when the job endedHOSTNAME - the head node of the job (if it ran on multiple nodes, it only lists the first)TASK NUMBER - if it was an array job, it will have a different number here for each task

This shows jobs that finished in the last 24 hours by default. You can search for longer as well:

If a job ended and didn't create the files you expect, check the start and end times to see whether it ran out of wallclock time.

If a job only ran for seconds and didn't produce the expected output, there was probably something wrong in your script - check the .o and .e files in the directory you submitted the job from for errors.

How do I run interactive jobs?§

Sometimes you need to run interactive programs, sometimes with a GUI. This can be achieved through qrsh. We have a detailed guide to running interactive jobs.

How do I estimate what resources to request in my jobscript?§

It can be difficult to know where to start when estimating the resources your job will need. One way you can find out what resources your jobs need is to submit one job which requests far more than you think necessary, and gather data on what it actually uses. If you aren't sure what 'far more' entails, request the maximum wallclock time and job size that will fit on one node, and reduce this after you have some idea.

Run your program as:

where myprogram myargs is however you normally run your program, with whatever options you pass to it.

When your job finishes, you will get output about the resources it used and how long it took - the relevant one for memory is maxrss (maximum resident set size) which roughly tells you the largest amount of memory it used.

Remember that memory requests in your jobscript are always per core, so check the total you are requesting is sensible - if you increase it too much you may end up with a job that cannot be submitted.

You can also look at nodesforjob while a job is running to see a snapshot of the memory, swap and load on the nodes your job is running on.

How can I see what types of node a cluster has?§

As well as looking at the cluster-specific page in this documentation for more details (for example Myriad), you can run nodetypes, which will give you basic information about the nodes that exist in that cluster.

This shows how many of each letter-labelled nodetype the cluster has, then the number of cores and amount of memory the node is reporting it has. It also shows the cluster has some utility nodes - those are part of the infrastructure. The * nodes are the login nodes.

How do I run a graphical program?§

To run a graphical program on the cluster and be able to view the user interface on your own local computer, you will need to have an X-Windows Server installed on your local computer and use X-forwarding.

X-forwarding on Linux§

Desktop Linux operating systems already have X-Windows installed, so you just need to ssh in with the correct flags.

You need to make sure you use either the -X or -Y (look at man ssh for details) flags on all ssh commands you run to establish a connection to the cluster.

For example, connecting from outside of UCL:

and then

X-forwarding on Mac OS X§

You will need to install XQuartz to provide an X-Window System for Mac OS X. (Previously known as X11.app).

You can then follow the Linux instructions using Terminal.app.

X-forwarding on Windows§

You will need:

  • An SSH client; e.g., PuTTY
  • An X server program; e.g., Exceed, Xming

Exceed is available on Desktop@UCL machines and downloadable from the UCL software database. Xming is open source (and mentioned here without testing).

Exceed on Desktop@UCL§

  1. Load Exceed. You can find it under Start > All Programs > Applications O-P > Open Text Exceed 14 > Exceed
  2. Open PuTTY (Applications O-P > PuTTY)
  3. In PuTTY, set up the connection with the host machine as usual:
    • Host name: myriad.rc.ucl.ac.uk (for example)
    • Port: 22
    • Connection type: SSH
  4. Then, from the Category menu, select Connection > SSH > X11 for 'Options controlling SSH X11 forwarding'.
    • Make sure the box marked 'Enable X11 forwarding' is checked.
  5. Return to the session menu and save these settings with a new identifiable name for reuse in future.
  6. Click 'Open' and login to the host as usual
  7. To test that X-forwarding is working, try running nedit which is a text editor in our default modules.

If nedit works, you have successfully enabled X-forwarding for graphical applications.

Installing Xming§

Our Myriad Mac Os X

Xming is a popular open source X server for Windows. These are instructions for using it alongside PuTTY. Other SSH clients and X servers are available. We cannot verify how well it may be working.

  1. Install both PuTTY and Xming if you have not done so already. During Xming installation, choose not to install an SSH client.
  2. Open Xming - the Xming icon should appear on the task bar.
  3. Open PuTTY
  4. Set up PuTTY as shown in the Exceed section.