Article ID: 5280, created on May 26, 2008, last review on May 4, 2014

  • Applies to:
  • Operations Automation

Symptoms

Subscription has non-zero resource usage for BlackBerry accounts, but the limit is 0.

Cause

Such problem can be caused by the following scenario:
1. User upgrades resources using Upgrade Wizard - BlackBerry accounts limit is increased
2. Some accounts are provided - resource usage is increased
3. User downgrades resources - limit is decreased, but usage is still the same, accounts are not unprovided.

Accounts on step 3 are not unprovided due to the fact that PBA-E does not set autoprovide flag when calling setResourceTypeLimit method, the flag controls automatic provisioning/unprovisioning. This behavior is going to be corrected in future PBA-E versions.

Resolution

To remove extra accounts, call pem.setResourceTypeLimit method with autoprovide=1:<methodCall>
  <methodName>pem.setResourceTypeLimit</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>subscription_id</name>
            <value><int><subscription_id></int></value>
          </member>
          <member>
            <name>resource_type_id</name>
            <value><int><rt_id></int></value>
          </member>
          <member>
            <name>limit</name>
            <value><int>0</int></value>
          </member>
          <member>
            <name>autoprovide</name>
            <value><boolean>1</boolean></value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

where <subscription_id> and <rt_id> are subscription id and BlackBerry Resource Type id respectively.

AdditionalInformation

To call POA API, you may use the following command:curl -d@<method.xml> http://<poa_mn>:8440 where <method.xml> is a file, containing XML-formatted API method (see 'Resolution' section above), and <poa_mn> is an IP address or hostname of POA Management Node.
For example:$ curl -d@pem.setResourceTypeLimit.xml http://localhost:8440
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>status</name>
            <value>
              <i4>0</i4>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodResponse>

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF