Topic
  • 5 replies
  • Latest Post - ‏2012-11-07T03:00:58Z by devdp
devdp
devdp
37 Posts

Pinned topic Check the memory usuage and notify

‏2012-11-05T09:03:32Z |
Hi All,

Could anyone please let me know how to notify when the DP memory Usuage is more than say 90%?

dev
Updated on 2012-11-07T03:00:58Z at 2012-11-07T03:00:58Z by devdp
  • HermannSW
    HermannSW
    4722 Posts

    Re: Check the memory usuage and notify

    ‏2012-11-05T12:36:36Z  
    Hi,
    >
    > Could anyone please let me know how to notify when the DP memory Usuage is more than say 90%?
    >
    best practice is to use the SNMP monitoring software of your choice to monitor DataPower appliance via SNMP interface.
    See chapter 4 of this redbook:
    http://www.redbooks.ibm.com/abstracts/sg247901.html?Open

     
    Alternatively you can query the XML management interface periodically by eg. crontab like mechanisms:
    $ doSoma admin MemoryStatus.xml dp3-l3:5550 | xpath++ "/*/*/*/*/*/Usage > 90" -
    Enter host password for user 'admin':
    false
    $ 
    $ cat MemoryStatus.xml 
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Body>
        <dp:request xmlns:dp="http://www.datapower.com/schemas/management">
          <dp:get-status class="MemoryStatus"/>
        </dp:request>
      </env:Body>
    </env:Envelope>
    $
    


     
    Hermann <myXsltBlog/> <myXsltTweets/>
    Updated on 2014-03-25T02:46:20Z at 2014-03-25T02:46:20Z by iron-man
  • devdp
    devdp
    37 Posts

    Re: Check the memory usuage and notify

    ‏2012-11-06T03:33:34Z  
    • HermannSW
    • ‏2012-11-05T12:36:36Z
    Hi,
    >
    > Could anyone please let me know how to notify when the DP memory Usuage is more than say 90%?
    >
    best practice is to use the SNMP monitoring software of your choice to monitor DataPower appliance via SNMP interface.
    See chapter 4 of this redbook:
    http://www.redbooks.ibm.com/abstracts/sg247901.html?Open

     
    Alternatively you can query the XML management interface periodically by eg. crontab like mechanisms:
    <pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">$ doSoma admin MemoryStatus.xml dp3-l3:5550 | xpath++ "/*/*/*/*/*/Usage > 90" - Enter host password for user 'admin': false $ $ cat MemoryStatus.xml <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <dp:request xmlns:dp="http://www.datapower.com/schemas/management"> <dp:get-status class="MemoryStatus"/> </dp:request> </env:Body> </env:Envelope> $ </pre>

     
    Hermann <myXsltBlog/> <myXsltTweets/>
    Hi Herman,

    Thanks for the reply..
    I don't have admin access to do this configuration..
    Is there any other process that can be done in the Datapower it self..
    Can I have this SOMA query in the Datapower processing rule with Log Action..It is good way to do this?

    dev
  • devdp
    devdp
    37 Posts

    Re: Check the memory usuage and notify

    ‏2012-11-06T03:37:03Z  
    • devdp
    • ‏2012-11-06T03:33:34Z
    Hi Herman,

    Thanks for the reply..
    I don't have admin access to do this configuration..
    Is there any other process that can be done in the Datapower it self..
    Can I have this SOMA query in the Datapower processing rule with Log Action..It is good way to do this?

    dev
    Discard my previous message
    Hi Herman,

    Thanks for the reply..
    I don't have admin access to do this configuration..
    Is there any other process that can be done in the Datapower it self..
    Can I have this SOMA query in the Datapower processing rule with Log Action..Is it a good way to do this?

    dev
  • HermannSW
    HermannSW
    4722 Posts

    Re: Check the memory usuage and notify

    ‏2012-11-06T17:56:11Z  
    • devdp
    • ‏2012-11-06T03:37:03Z
    Discard my previous message
    Hi Herman,

    Thanks for the reply..
    I don't have admin access to do this configuration..
    Is there any other process that can be done in the Datapower it self..
    Can I have this SOMA query in the Datapower processing rule with Log Action..Is it a good way to do this?

    dev
    Hi,

    > ...
    > I don't have admin access to do this configuration..
    >
    not sure where you need admin access.

    > Is there any other process that can be done in the Datapower it self..
    > Can I have this SOMA query in the Datapower processing rule with Log Action..Is it a good way to do this?
    >
    you can, but you need access to the XML Management interface.

    Again, it is best practice to do monitoring by external software via SNMP, please read chapter 4 of the redbook I pointed to.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • devdp
    devdp
    37 Posts

    Re: Check the memory usuage and notify

    ‏2012-11-07T03:00:58Z  
    • HermannSW
    • ‏2012-11-06T17:56:11Z
    Hi,

    > ...
    > I don't have admin access to do this configuration..
    >
    not sure where you need admin access.

    > Is there any other process that can be done in the Datapower it self..
    > Can I have this SOMA query in the Datapower processing rule with Log Action..Is it a good way to do this?
    >
    you can, but you need access to the XML Management interface.

    Again, it is best practice to do monitoring by external software via SNMP, please read chapter 4 of the redbook I pointed to.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Hi Hermann,

    I had read the red book that you had specified and tried configure as per the instructions but I don't have access..

    I don't have access meant that I don't have access to configure the SNMP settings I have only read access.I am unable to add the Trap Event Subscriptions.

    I have access to the XML management interface and able to do the SOMA querries..