Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Scott_Paisley
Collaborator

Dynamic objects namespace

There are some helpful commands for dynamic objects on a gateway, but there is a problem with the namepsace not matching. here is an example

[Expert@uspa2400-tlcp-01:0]# dynamic_objects -ip 104.208.21.1

 

The following objects contain IP 104.208.21.1

 

Object name: CP_Azure_Sql
Object type: Updatable Object

 

Object name: CP_Azure_AzureCloud.Global
Object type: Updatable Object

 

Object name: CP_Azure_Sql.CentralUS
Object type: Updatable Object

 

Object name: CP_Azure_AzureCloud
Object type: Updatable Object

 

Object name: CP_Azure_Sql.Global
Object type: Updatable Object

 

Object name: CP_Azure_Azure_All
Object type: Updatable Object

 

Object name: CP_Azure_AzureCloud.centralus
Object type: Updatable Object

 

Object name: CP_Azure_Azure
Object type: Updatable Object

 

Object name: CP_GEO_US
Object type: Updatable Object

 

Object name: CP_GEO_LOCATIONS
Object type: Updatable Object

 

Object name: CP_GEO_NORTH_AMERICA
Object type: Updatable Object

 

Object name: CP_GH_GITHUB
Object type: Updatable Object

 


Operation completed successfully

 

This tells me all of the objects that IP address is in. the problem comes if I want to know what IP addresses are in each object, because the object names are not the same as the objects show above. for example

 

[Expert@uspa2400-tlcp-02:0]# dynamic_objects -uo "SQL Public - Central US Services"

 

object name: SQL Public - Central US Services
range 0 : 13.67.215.62 13.67.215.62
range 1 : 13.89.36.110 13.89.36.110
range 2 : 13.89.37.61 13.89.37.61
range 3 : 13.89.57.50 13.89.57.50
range 4 : 13.89.57.115 13.89.57.115
range 5 : 13.89.168.0 13.89.168.63
range 6 : 13.89.168.192 13.89.168.199
range 7 : 13.89.169.0 13.89.169.63
range 8 : 13.89.179.64 13.89.179.127
range 9 : 20.40.228.128 20.40.228.255
range 10 : 20.44.14.0 20.44.14.63
range 11 : 23.99.160.139 23.99.160.140
range 12 : 23.99.205.183 23.99.205.183
range 13 : 40.69.189.48 40.69.189.48
range 14 : 40.77.30.201 40.77.30.201
range 15 : 40.113.200.119 40.113.200.119
range 16 : 52.173.205.59 52.173.205.59
range 17 : 52.176.59.12 52.176.59.12
range 18 : 52.176.100.98 52.176.100.98
range 19 : 52.182.136.0 52.182.136.63
range 20 : 52.182.136.192 52.182.136.199
range 21 : 52.182.137.0 52.182.137.63
range 22 : 52.182.144.0 52.182.144.63
range 23 : 104.43.203.72 104.43.203.72
range 24 : 104.208.21.0 104.208.21.63
range 25 : 104.208.21.192 104.208.21.199
range 26 : 104.208.22.0 104.208.22.63
range 27 : 104.208.28.16 104.208.28.16
range 28 : 104.208.28.53 104.208.28.53
range 29 : 2603:1030:10::320 2603:1030:10::33f
range 30 : 2603:1030:10::380 2603:1030:10::3ff
range 31 : 2603:1030:10:400:: 2603:1030:10:400::1f
range 32 : 2603:1030:10:401:: 2603:1030:10:401::1f
range 33 : 2603:1030:10:800:: 2603:1030:10:800::1f
range 34 : 2603:1030:10:801:: 2603:1030:10:801::1f
range 35 : 2603:1030:10:c00:: 2603:1030:10:c00::1f
range 36 : 2603:1030:10:c01:: 2603:1030:10:c01::1f

 

Looking for domains for 'SQL Public - Central US Services' and its children objects:

 

The updatable object SQL Public - Central US Services does not contain any domains (object is enforced by IP addresses only)

 

Operation completed successfully

 

I can work out that Object name: CP_Azure_Sql.CentralUS is really 'SQL Public - Central US Services' but is there way of doing that automatically?

1 Reply
Kaspars_Zibarts
Authority
Authority

Very good question! I wondered the same! Thanks

0 Kudos