Listing Host Tags

You can list host tags using Automation Console or NuoDB Manager.

Listing Host Tags Using Automation Console

To list what tags are set for a given host, click on the Hosts panel. This will list all the hosts in your domain, for example:

Choose the host for which you want to view or set a tag and click on it to display something like this:

Click the Tags tab to list all the tags currently set for that host. You can pull down Actions and click on Add to add a new tag.

Set Name to the name of the tag to be used as a database host tag requirement. If the constraint on this tag is just Exists or Not Exists ("ex:" or "nx:"), it doesn't matter what we specify as a Value.

Listing Host Tags Using NuoDB Manager

The following example lists all tags defined for all hosts in the domain. Hosts are grouped by region and sorted by address. Tags per host are sorted by the tag name.

nuodb [domain] > tags list
Host: 
ec2-54-165-58-157.compute-1.amazonaws.com/172.31.46.122:48004 (us-east-1):
        archive_base = /var/opt/nuodb/production-archives
        cores = 1
        cputype = amd64
        default_archive_base = /var/opt/nuodb/production-archives
        default_journal_base = /var/opt/nuodb/production-archives
        default_region = DEFAULT_REGION
        journal_base = /var/opt/nuodb/production-archives
        os_num_cores = 1
        os_num_cpu = 1
        os_num_fs = 8
        os_ram_mb = 3768
        ostype = Linux
        osversion = 3.14.19-17.43.amzn1.x86_64
        productionSM = true
        region = us-east-1
ip-172-31-40-24/107.23.52.10:48004 (us-east-1):
        archive_base = /var/opt/nuodb/production-archives
        backupSM = true
        cores = 1
        cputype = amd64
        default_archive_base = /var/opt/nuodb/production-archives
        default_journal_base = /var/opt/nuodb/production-archives
        default_region = DEFAULT_REGION
        journal_base = /var/opt/nuodb/production-archives
        os_num_cores = 1
        os_num_cpu = 1
        os_num_fs = 8
        os_ram_mb = 3768
        ostype = Linux
        osversion = 3.14.19-17.43.amzn1.x86_64
        region = us-east-1

Here is another NuoDB Manager example of listing tags:

nuodb [domain] > tags list
Host: 107.23.52.10
ip-172-31-40-24/107.23.52.10:48004 (us-east-1):
archive_base = /var/opt/nuodb/production-archives
cores = 1
cputype = amd64
default_archive_base = /var/opt/nuodb/production-archives
default_journal_base = /var/opt/nuodb/production-archives
default_region = DEFAULT_REGION
journal_base = /var/opt/nuodb/production-archives
os_num_cores = 1
os_num_cpu = 1
os_num_fs = 8
os_ram_mb = 3768
ostype = Linux
osversion = 3.14.19-17.43.amzn1.x86_64
region = us-east-1
 
nuodb [domain] > tags set
Host: 107.23.52.10
Tag Name: MYTAG
Tag value: doesn't matter

nuodb [domain] > tags list
Host: 107.23.52.10
ip-172-31-40-24/107.23.52.10:48004 (us-east-1):
MYTAG = doesn't matter
archive_base = /var/opt/nuodb/production-archives
cores = 1
cputype = amd64
default_archive_base = /var/opt/nuodb/production-archives
default_journal_base = /var/opt/nuodb/production-archives
default_region = DEFAULT_REGION
journal_base = /var/opt/nuodb/production-archives
os_num_cores = 1
os_num_cpu = 1
os_num_fs = 8
os_ram_mb = 3768
ostype = Linux
osversion = 3.14.19-17.43.amzn1.x86_64
region = us-east-1