Request an MCC user account
Now you are equipped with a username and password, you can log into any of the MCC login nodes with a SSH client. Use msgln6.its.monash.edu (this is the primary login node). Information on how to do this can be found on the Access page. Once logged in, you should see an output like this.
All compute nodes run some form of Unix operating system. If you are not familiar with Unix, you soon will be!
Here are a few commands you will need. More information can be found at http://www.ee.surrey.ac.uk/Teaching/Unix/
If you need more information about commands, remember you can always use the Unix manual facility, i.e 'man pwd' will show the manual page for pwd.
(print working directory) Prints the directory where you're currently in.
(list) Lists contents for particular directory, the current directory by default.
Example: List with long format, including file permissions, reverse order, by modification time
(make directory) Create new directory to hold files or subdirectories, if they do not already exist.
Example: This command creates a directory called 'folder1'.
(change directory) Change working directory from directory to another.
Example: Change to the directory 'folder1' if it is a subdirectory of the current directory. 'folder1' is a relative path wrt the current working directory.
To use an absolute path, type
If used without arguments, it returns the shell to the user's home directory.
Same as typing
(remove directory) Remove empty directory. If there are files or directories existing under the directory, rmdir will fail.
Example: Removes the directory 'folder1' if it is a subdirectory and there are no files in it.
|(concatenate files) Displays to stdout the contents of a file.|
(remove file or directory) Removes files or directories. Use with care as deleted files/folders are unrecoverable.
Submit a job
This is an example of how to run a job on a compute node. More detailed information can be found at the The Queueing System page. Firstly we will create a shell script that contains the instructions we wish to run. In this example, we will use UNIX shell commands to print the date, hostname and IP address of the compute node we are on.
Using your favourite editor, create a shell script file called myfirstjob.sh.
This shell script is a job file that contains instructions to the system on what your calculation requires. Note that any line beginning with #$ is a special command to the Monash Campus Cluster (MCC) scheduler. For example, the third line specifies the memory requirements of your calculations, and the fourth line specifies the maximum time (in this case 10 hours) that your calculations will take. From the sixth line, you will put the commands that you wish to run. In this example, three commands are executed for demonstration purposes. Then you are ready to submit the shell script to the system.
This command returns a job identifier, which you can use to examine the status of the job.
You can see your running jobs with qstat
Or you can be more specific and use the job identifier. A lot of information on the job is printed out
When the job is finished, the output of the job will be placed in a number of output files. The 'e' files contain the standard error (if any) of the running script - usually errors. The output of the script canb e found in the 'o' files.
Lets look at the output in myfirstjob.sh.o4061673. Here we can see the three commands worked successfully.
- the date
- The name of the compute node the job ran at. If you ran the job again it would probably be at a different node.
- The output of ifconfiig with the machines IP number
Unix comes with several editors that you can use to edit text files.
- nano – simple micro editor
- vi – screen-oriented text editor. As old as Unix.
emacs – also created decades ago. Part of GNU project. If your machine has X-Windows (X11) then Emacs will open in a GUI mode.
Either command below creates a new file ‘newfile.txt’ if it does not exist, or edits an existing file.
- No labels