Hi Amit,

There is not an out of the box script provided to produce this output, but 
you can easily query the scalr database for whatever information is 
relevant to your needs.

1. Gather mysql scalr_password from: 
/etc/scalr-server/scalr-server-secrets.json

2. Access embedded database with: sudo /opt/scalr-server/embedded/bin/mysql 
-u scalr -p<PASSWORD> scalr

3. Query DB. Modify query as needed for your requirements: SELECT 
server_id,remote_ip,local_ip FROM servers WHERE status='Running';

4. Get output (this is an example): 
+--------------------------------------+--------------+---------------+
| server_id                            | remote_ip    | local_ip      |
+--------------------------------------+--------------+---------------+
| c9ee1951-8119-49cd-88c6-5810b28c0da9 | 54.11.11.11 | 10.11.11.11 |
+--------------------------------------+--------------+---------------+
1 row in set (0.00 sec)

Cheers,
Wm. Marc O'Brien
Scalr Technical Support

On Tuesday, January 10, 2017 at 3:56:14 PM UTC-7, Jeff Gojkovich wrote:
>
> Would the query be originating from the local instance, the Scalr servers, 
> or some other location?
>
> --
> Jeff
>
> On Monday, January 9, 2017 at 2:48:55 PM UTC-7, Amit Saini wrote:
>>
>> Hi,
>>
>> Is there any shell script to get the IP address of running instance from 
>> scalr database...?? 
>>
>>
>> Regards
>>
>> Amit Saini
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to