Specify default tests

We would like to specify default tests for all machines.
Also we would like to specify default test for machines with a certain tag.

Is this possible?

Best regards,
August Johansson

@august-johansson, what you’re asking seems possible. see this doc for some details.

I tried adding the tag commissioning to the memtester test but it still does not work.

maas southpole node-script add-tag memtester  tag=commissioning
Machine-readable output follows:
"name": "memtester",
"title": "Memory integrity",
"description": "Run memtester against all available userspace memory.",
"tags": [
"hardware_type": 2,
"parallel": 0,
"results": {},
"parameters": {},
"packages": {
    "apt": [
"timeout": "0:00:00",
"destructive": false,
"default": true,
"for_hardware": [],
"may_reboot": false,
"recommission": false,
"apply_configured_networking": false,
"parallel_name": "Disabled",
"history": [
        "id": 16,
        "comment": "Created by maas-None",
        "created": "Tue, 04 Apr 2023 06:15:28 -0000"
"type_name": "Testing script",
"id": 16,
"hardware_type_name": "Memory",
"type": 2,
"resource_uri": "/MAAS/api/2.0/scripts/memtester"

When trying to start a commission it looks like this:

Best regards,
August Johansson

Hey @billwear,

Do you know the difference between the tags that exist in the metadata in the test script and the tags that are applied with the cli command maas southpole node-script add-tag memtester tag=commissioning ?


Additionally, what is the difference between the metadata type and script_type?


Hey, @august-johansson,

Thank you for reaching out with your questions regarding specifying default tests for machines and machines with a specific tag in MAAS. FWIW, from the screenshots you shared, it looks to me like “metadata type” refers to the type of metadata associated with the test script, while “script_type” indicates the type of the script itself (e.g., a testing script in your case).

I hope this clarifies the current situation a little. If you have any further questions or need more assistance, feel free to ask.