# A10 ADP (Application Delivery Partitions) access via SNMP or REST API.

**URL:** <https://community.a10networks.com/t/a10-adp-application-delivery-partitions-access-via-snmp-or-rest-api/608>\
**Category:** ADC - Application Delivery\
**Tags:** snmp, partition\
**Created:** [June 15, 2020, 4:48pm UTC](https://community.a10networks.com/t/a10-adp-application-delivery-partitions-access-via-snmp-or-rest-api/608 "2020-06-15T16:48:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mykola](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mykola](https://community.a10networks.com/u/mykola)\
**Post date:** [June 15, 2020, 4:48pm UTC](https://community.a10networks.com/t/a10-adp-application-delivery-partitions-access-via-snmp-or-rest-api/608/1 "2020-06-15T16:48:26Z")

</div>

Hello,  
I’m trying to understand how can access data specific to particular partition via SNMP or REST API.  
Imagine that I have partition “MyPartition1” with SLB configured on it (servers, server groups, virtual servers).  
How can get the SLB details from this partition ? From what I understand community string need to be modified by adding the partition name into the SNMP string (e.g. snmpstring@MyPartition1) for SNMPv2 or the context parameter need to be used for SNMP v3. Can somebody confirm that my understanding is correct ?  
Another question is - can I get this info via REST API ? Which API point should I use ?  
Thanks in advance, Mykola

---

<div class="post-metadata">

**Author:** ![jserrano](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jserrano](https://community.a10networks.com/u/jserrano)\
**Post date:** [June 16, 2020, 8:27pm UTC](https://community.a10networks.com/t/a10-adp-application-delivery-partitions-access-via-snmp-or-rest-api/608/2 "2020-06-16T20:27:14Z")

</div>

Hi,  
Regarding SNMP you can access to partition specific OID´s by appending @\<partition\_name\> to the community:

**Shared:**  
vThunder-vMaster1/1#sh run snmp-server&nbsp;  
!Section configuration: 357 bytes&nbsp;&nbsp;&nbsp;&nbsp;  
!  
snmp-server enable service&nbsp;  
!  
snmp-server SNMPv1-v2c user admin&nbsp;  
&nbsp;community read encrypted xmlx6dh/gZc8EIy41dsA5zwQjLjV2wDnPBCMuNXbAOc8EIy41dsA5zwQjLjV2wDn&nbsp;  
&nbsp;oid .&nbsp;  
!  
snmp-server SNMPv1-v2c user public&nbsp;  
&nbsp;community read encrypted 37O48xvi8uY8EIy41dsA5zwQjLjV2wDnPBCMuNXbAOc8EIy41dsA5zwQjLjV2wDn&nbsp;  
&nbsp;oid 1.&nbsp;  
!  
snmp-server view allOID 172.16.1.4 included&nbsp;  
!  
vThunder-vMaster1/1#sh run ip nat pool  
!Section configuration: 64 bytes&nbsp;&nbsp;&nbsp;&nbsp;  
!  
ip nat pool pool.nav 172.16.109.11 172.16.109.11 netmask /24&nbsp;  
!

**Partition cust1**  
vThunder-vMaster[1/1]cust1#sh run&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
!Current configuration: 78 bytes&nbsp;&nbsp;&nbsp;&nbsp;  
!Configuration last updated at 16:43:46 IST Thu Apr 30 2020  
!Configuration last saved at 16:22:52 IST Thu Apr 2 2020  
!  
active-partition cust1  
!  
!  
!  
ip nat pool testpool 4.5.6.7 4.5.6.7 netmask /30&nbsp;  
!  
slb server testsrv 5.5.6.7&nbsp;  
!  
end

**You can consult object&nbsp;specific&nbsp;OID´s using this command under determined partition:**

# vThunder-vMaster[1/1]cust1#sh snmp oid server testsrv OID for axServerStatTable testsrv

axServerStatAddress:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.1.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatName:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.2.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerPktsIn:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.3.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerBytesIn:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.4.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerPktsOut:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.5.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerBytesOut:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.6.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerTotalConns:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.7.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerCurConns:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.8.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerPersistConns:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.9.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerStatus:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.10.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerTotalL7Reqs:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.11.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerTotalCurrL7Reqs:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.12.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerTotalSuccL7Reqs:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.13.7.53.46.53.46.54.46.55  
&nbsp;&nbsp;axServerStatServerPeakConns:  
1.3.6.1.4.1.22610.2.4.3.2.2.2.1.14.7.53.46.53.46.54.46.55

A10Spain:etc jserrano$ snmpwalk -v 2c -c a10@cust1&nbsp;172.16.1.4 1.3.6.1.4.1.22610.2.4.3.18.100.1  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.1.8.116.101.115.116.112.111.111.108 = STRING: “testpool”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.2.8.116.101.115.116.112.111.111.108 = STRING: “4.5.6.7”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.3.8.116.101.115.116.112.111.111.108 = STRING: “4.5.6.7”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.4.8.116.101.115.116.112.111.111.108 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.5.8.116.101.115.116.112.111.111.108 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.6.8.116.101.115.116.112.111.111.108 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.7.8.116.101.115.116.112.111.111.108 = INTEGER: 0

A10Spain:etc jserrano$ snmpwalk -v 2c -c a10 172.16.1.4 1.3.6.1.4.1.22610.2.4.3.18.100.1  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.1.8.112.111.111.108.46.110.97.118 = STRING: “pool.nav”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.1.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = STRING: “"cust1":testpool”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.2.8.112.111.111.108.46.110.97.118 = STRING: “172.16.109.11”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.2.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = STRING: “4.5.6.7”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.3.8.112.111.111.108.46.110.97.118 = STRING: “172.16.109.11”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.3.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = STRING: “4.5.6.7”  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.4.8.112.111.111.108.46.110.97.118 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.4.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.5.8.112.111.111.108.46.110.97.118 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.5.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.6.8.112.111.111.108.46.110.97.118 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.6.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.7.8.112.111.111.108.46.110.97.118 = INTEGER: 0  
SNMPv2-SMI::enterprises.22610.2.4.3.18.100.1.1.7.16.34.99.117.115.116.49.34.58.116.101.115.116.112.111.111.108 = INTEGER: 0

A10Spain:etc jserrano$ snmpwalk -v 2c -c a10 172.16.1.4 1.3.6.1.4.1.22610.2.4.3.2.2.2.1.2.7.53.46.53.46.54.46.55  
SNMPv2-SMI::enterprises.22610.2.4.3.2.2.2.1.2.7.53.46.53.46.54.46.55 = No Such Instance currently exists at this OID

A10Spain:etc jserrano$ snmpwalk -v 2c -c a10@cust1&nbsp;172.16.1.4 1.3.6.1.4.1.22610.2.4.3.2.2.2.1.2.7.53.46.53.46.54.46.55  
SNMPv2-SMI::enterprises.22610.2.4.3.2.2.2.1.2.7.53.46.53.46.54.46.55 = STRING: “testsrv”

---

<div class="post-metadata">

**Author:** ![jserrano](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jserrano](https://community.a10networks.com/u/jserrano)\
**Post date:** [June 16, 2020, 8:34pm UTC](https://community.a10networks.com/t/a10-adp-application-delivery-partitions-access-via-snmp-or-rest-api/608/3 "2020-06-16T20:34:48Z")

</div>

Regarding aXAPI you need to use “active-partition” method to jump into determined partition:

A10Spain:etc jserrano$curl -k&nbsp;[https://172.16.1.4/axapi/v3/active-partition/cust1 -H “Content-Type:application/json” -H “authorization: A10 aff2fb862f71d49c918f0b1e7b1db4” -d “{ }”  
{  
&nbsp;“response”: {  
&nbsp;&nbsp;&nbsp;“status”: “OK”  
&nbsp;}  
}&nbsp;  
A10Spain:etc jserrano$~$ curl -k&nbsp;](https://172.31.31.41/axapi/v3/active-partition/ADC1)[https://172.16.1.4/axapi/v3/active-partition](https://172.31.31.41/axapi/v3/active-partition)&nbsp;-H “Content-Type:application/json” -H “authoriation: A10 aff2fb862f71d49c918f0b1e7b1db4”  
{  
&nbsp;“active-partition”: {  
&nbsp;&nbsp;&nbsp;“partition-name”: “cust1”  
&nbsp;}  
}

---

<div class="post-metadata">

**Author:** ![mykola](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mykola](https://community.a10networks.com/u/mykola)\
**Post date:** [June 24, 2020, 8:28am UTC](https://community.a10networks.com/t/a10-adp-application-delivery-partitions-access-via-snmp-or-rest-api/608/4 "2020-06-24T08:28:08Z")

</div>

Thanks a lot  
This is really helpful. Appreciate your help.
