presCollectMetrics

Last Updated : Oct 28, 2020 |
Prolog information
The presCollectMetrics command-line tool can be used to discover real-time and historical data about the Presence Services system.

Syntax

presCollectMetrics [-u JMX user] [-p JMX port] [-P JMX password] [-i node IP] [-r | -h] <Metrics>
Options:
  • —u JMX user
  • —p JMX port
  • —P JMX password
  • —I node IP
  • —r: Real-time metrics.
    By default, the real-time metrics is displayed for all components when no parameters are specified.
  • —h: Historical metrics.
  • Metrics: The valid metrics are sip, gigaspaces, xmpp, http, and aem.
  • --help

Sample output 1

# presCollectMetrics Gigaspacescom.avaya.presence.om:type=GigaspacesMetrics,192.0.2.51
        CPU Percentage=0.33%
        Heap Usage (MB)=104.83
        Object Count=1803
        Thread Count=211

Sample output 2

# presCollectMetrics sipcom.avaya.presence.om:type=SipMetrics,192.0.2.51
        Active Subscriptions (Incoming)          = 4
               Directed                          = 1
               RLMI                              = 1
               Dynamic List                      = 0
               ACL                               = 1
               Winfo                             = 1
        Active Subscriptions (Outgoing)          = 60

        Active IM Sessions
               Incoming                          = 0
               Outgoing                          = 0

        Counters
        --------
        Publishes                                = 0
        Notifications                            = 0
        Instant Messaging
               In-Dialog Messages                = 0
               Out-of-Dialog Messages (Incoming) = 0
               Out-of-Dialog Messages (Outgoing) = 0
In a multi-node Presence Services cluster, it is possible to collect metrics for a particular node, by specifying the Avaya Breeze® platform Management Module IP address of that node.

Sample output 3

# presCollectMetrics -i 192.0.2.51 com.avaya.presence.om:type=SipMetrics,192.0.2.51
        Active Subscriptions (Incoming)          = 4
               Directed                          = 1
               RLMI                              = 1
               Dynamic List                      = 0
               ACL                               = 1
               Winfo                             = 1
        Active Subscriptions (Outgoing)          = 60

        Active IM Sessions
               Incoming                          = 0
               Outgoing                          = 0

        Counters
        --------
        Publishes                                = 0
        Notifications                            = 0
        Instant Messaging
               In-Dialog Messages                = 0
               Out-of-Dialog Messages (Incoming) = 0
               Out-of-Dialog Messages (Outgoing) = 0


Failed to connect to PS (failed to lookup mbean for: Xmpp)
com.avaya.presence.om:type=GigaspacesMetrics,192.0.2.51
        CPU Percentage=0.32%
        Heap Usage (MB)=149.23
        Object Count=1805
        Thread Count=211
It is possible to retrieve data about a metric type from the past 24 hours by using the -h parameter. The data is collected by the system every five minutes for up to 24 hours. When using the -h parameter, a comma-separated value (CSV) file is written to the disk. This CSV file can be loaded into a program such as, Microsoft Excel or can be used to generate a graph using the presGraphMetrics command-line tool.

Sample output 4

# presCollectMetrics -h sipWrote : psng-gigaspaces-20160314102531.csv