List & Query

It is possible to list instances using the bconsole .ls command or through a .query command.

We can use any fileset parameter in the plugin=”” value in order to filter the results, same way the backup does.

Below, there are some examples:

List instances:

Query example: Get one instance details
.query plugin="amazon-ec2: instances=MyTestInstance region=us-east-1 access_key=AKIAQTESTKEY12134g secret_key=m23480ahpqwre894qwrffsfdSecretExample" client=127.0.0.1-fd parameter="instance"
instance=MyTestInstance
instanceId=i-0a267ee7035475860
imageId=ami-0f34c5ae932e6f0e4
instanceType=t2.micro
hypervisor=xen
state=running
publicIpAddress=34.207.94.177
launchTime=2023-11-15 15:07:20

List all instances:

Query example: Get all instance details
*.query client=127.0.0.1-fd parameter="instance" plugin="amazon-ec2: region=us-east-1 access_key=AKIAQTESTKEY12134g secret_key=m23480ahpqwre894qwrffsfdSecretExample"
instance=jg-aws
instanceId=i-0bc4a027596016c44
imageId=ami-0f34c5ae932e6f0e4
instanceType=t2.micro
hypervisor=xen
state=stopped
launchTime=2023-11-06 11:48:08
instance=va-dedup2-aws
instanceId=i-098e49a028ef38588
imageId=ami-026ebd4cfe2c043b2
instanceType=t2.micro
hypervisor=xen
state=stopped
launchTime=2023-11-10 23:16:37
instance=REGRESS_20231129105019
instanceId=i-0028cbc698389b835
imageId=ami-0f34c5ae932e6f0e4
instanceType=t2.micro
hypervisor=xen
state=pending
publicIpAddress=3.82.114.237
launchTime=2023-11-29 09:52:08
instance=va-dedup2-t3-tst
instanceId=i-0e4d9a67884a2cb50
imageId=ami-05a5f6298acdb05b6
instanceType=t3a.medium
hypervisor=xen
state=running
publicIpAddress=3.94.202.65
launchTime=2023-11-09 17:20:22
...

See also

Go back to:

Go back to the Operations article.

Go back to the Amazon EC2 plugin main page.

Go back to the main Dedicated Backup Solutions page.