Accessibility Hopp til innhold
Artikkel-ID: 000048642
Last Modified Date: 10/12/2021
Access Level: Public

Modify RPRM system_statistics.sh script to show High CPU traces correctly.

By default, all RPRMs pre 10.9, shows the CPU trace information incorrectly:   <182>1 2021-02-01T18:12:43.980+01:00 derusvapprm02.ey.net RPRM 6451 Jserver - INFO |||PhoneEvent19|com.polycom.rpum.ucsengine.xma.utils.RpumInternalUser| getApiUserPasswordCredential in.
<182>1 2021-02-01T18:12:43.989+01:00 derusvapprm02.ey.net RPRM 5619 Jserver - INFO |||RPRMDataCollector-pool-1-thread-2|com.polycom.rm.shared.utils.runtime.SystemCommandExec| command stdout: Performance.Connections.total: 1972
Performance.Connections.database: 30
Performance.Connections.external: 1927
Performance.Memory.pgsql(K): 761028
Performance.Memory.jserver(K): 17095556
Performance.CPU.jserver: 47.3
Performance.CPU.database:  0.0
Performance.database.data: 16913735431
Performance.CPU.CPU_USER: 0.00
Performance.CPU.CPU_NICE: 2.03
Performance.CPU.CPU_SYS: 0.59
Performance.CPU.CPU_IOWAIT: 0.00
Performance.CPU.CPU_IRQ: 0.41
Performance.CPU.CPU_STEAL: 0.00
Performance.CPU.CPU_GUEST: 83.46
Performance.CPU.CPU_IDLE:
Performance.Memory.Memory_TOTAL: 16466360
Performance.Memory.Memory_USED: 12145992
Performance.Memory.Memory_FREE: 4321000
Performance.Memory.Memory_SHARED: 86212
Performance.Memory.Memory_BUFFERS: 49136
Performance.Memory.Memory_CACHED: 807044
Performance.Memory.Memory_MIN_FREE: 67584
Performance.Memory.SReclaimable: 146348
Performance.Swap.SWAP_TOTAL: 8388604
Performance.Swap.SWAP_USED: 5039184
Performance.Swap.SWAP_FREE: 3349420
Performance.Disk.DISK_USAGE_OPT: 12%
Performance.Disk.DISK_USAGE_VAR: 65%
Performance.Disk.DISK_USAGE_BACKUP: 1%
version: 10.9.0
virt-what: vmware

 
Edit the file: /opt/polycom/cma/10.8.0-251114/jserver/bin/analytics/system_statistics.sh Add `LC_TIME=en_UK.utf8 before mpstat:   Something like this:   # System CPU
#
#mpstat
#07:54:22 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
#07:54:22 AM  all    1.84    0.00    0.15    0.01    0.00    0.01    0.00    0.00   97.99
CPU_USER=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $4}'`
CPU_NICE=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $5}'`
CPU_SYS=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $6}'`
CPU_IOWAIT=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $7}'`
CPU_IRQ=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $8}'`
CPU_SOFT=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $9}'`
CPU_STEAL=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $10}'`
CPU_GUEST=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $11}'`
CPU_IDLE=`LC_TIME=en_UK.utf8 mpstat | grep all | awk '{print $12}'`   This is because the mpstat default is on US, and this adds a "PM" or "AM" column that broke the trace and shows incorrectly information.   After this, perform a reboot.   If you to the process via WinSCP, the modified file needs to be downloaded, delete on RPRM and upload again with the modifications.