|
|
|
|
|
|
$ ssh -i </full/path/ssh-private-key> opc@<al-instance-name>.<compartment>.<tenancy>.oraclevcn.com |
$ oci-metadata
Instance details:
Display Name: AutonomousLinux-zarko
Region: iad - us-ashburn-1 (Ashburn, VA, USA)
Canonical Region Name: us-ashburn-1
Availability Domain: DSdu:US-ASHBURN-AD-1
Fault domain: FAULT-DOMAIN-1
OCID: ocid1.instance.oc1.iad.anuw-shortened-hl43vma
Compartment OCID: ocid1.compartment.oc1..aaaaa-shortened-obgza
Instance shape: VM.Standard2.1
Image ID: ocid1.image.oc1..aaaaaa-shortened-zxq
Created at: 1585713324189
state: Running
agentConfig:
managementDisabled: False
monitoringDisabled: False
ociAdName: iad-ad-2
hostname: autonomouslinux-zarko
Instance Metadata:
ssh_authorized_keys: ssh-rsa AAAAB3NzaC_shortened_BK6ZSyCoWosR
Networking details:
VNIC OCID: ocid1.vnic.oc1.iad.abuwclj-shortened-vrrxa
VLAN Tag: 64
Private IP address: 100.x.x.x
MAC address: 02:00:17:01:1E:B6
Subnet CIDR block: 100.x.x.x/24
Virtual router IP address: 100.x.x.1
|
|
|
|
|
ALL {instance.compartment.id = '<compartment OCID>'}
Example:
ALL {instance.compartment.id = 'ocid1.compartment.oc1..aaaaaaa_shortened_ezobgza'}
|
Allow dynamic-group <dynamic group name> to use ons-topic in compartment <compartment name> where request.permission='ONS_TOPIC_PUBLISH' Ex. Allow dynamic-group labops.dev.dg to use ons-topic in compartment labops.dev where request.permission='ONS_TOPIC_PUBLISH' |
$ sudo al-config -T <topic OCID> Ex. $ sudo al-config -T ocid1.onstopic.oc1.iad.aaaaa_shortened_6lkpq Configured OCI notification service topic OCID. Publishing message 'AL: Notification enabled on instance AutonomousLinux-zarko' Published message 'AL: Notification enabled on instance AutonomousLinux-zarko' |