{"id":19947983,"url":"https://github.com/roseswe/showscores","last_synced_at":"2026-05-19T04:33:47.881Z","repository":{"id":63421406,"uuid":"465900401","full_name":"roseswe/showscores","owner":"roseswe","description":"ShowScores - shows scores of pacemaker resources","archived":false,"fork":false,"pushed_at":"2025-04-09T15:12:29.000Z","size":40,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T16:27:34.863Z","etag":null,"topics":["cluster","pacemaker","shell-script","sles12","sles15"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roseswe.png","metadata":{"files":{"readme":"Readme.md","changelog":"ChangeLog.txt","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-03T22:10:04.000Z","updated_at":"2025-04-09T15:12:33.000Z","dependencies_parsed_at":"2024-11-13T00:38:26.676Z","dependency_job_id":"a1426b2c-f580-4ef7-b13f-7979b11390f6","html_url":"https://github.com/roseswe/showscores","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/roseswe/showscores","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roseswe%2Fshowscores","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roseswe%2Fshowscores/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roseswe%2Fshowscores/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roseswe%2Fshowscores/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roseswe","download_url":"https://codeload.github.com/roseswe/showscores/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roseswe%2Fshowscores/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265489420,"owners_count":23775329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cluster","pacemaker","shell-script","sles12","sles15"],"created_at":"2024-11-13T00:38:14.224Z","updated_at":"2026-05-19T04:33:47.859Z","avatar_url":"https://github.com/roseswe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pacemaker ShowScores for SLES and RHEL\n\nThis program displays the scores of each pacemaker resource it has on cluster nodes, presenting the node names and resource names in a clear, tabular format\n\nSee also the SUSE TID \u003chttps://www.suse.com/support/kb/doc/?id=000019442\u003e  (no default-resource-stickiness)\n\n✍ NOTE: Unlike other scripts I’ve encountered, this program is **not** restricted to two-node clusters (see examples below). It has been successfully tested on clusters with up to 8 nodes.\n\n## Motivation\n\n### Version 1 and 2\nIn SLES12 and SLES15 commands and their output changed, so a new simplified showscores was _invented_!  :sparkles:\n\nOriginal idea and script for older pacemaker versions (1.x) was done around 2009 by Dominik Klein.\nIn the sub-directory **SLES11** you will find a slightly enhanced and adapted version of Dominik original idea that runs **only on SLES11** pacemaker clusters.\n\n### Version 3\n\nAdded support for RHEL/MLS and derivates. Might need some additional work e.g. for rsc_defaults: resource-stickiness\n\n## Requirements\n\nThis `showscores` version will **not** run under SLES11 because there the standard (G)AWK version is too old (GNU AWK 3.1.8) to support multidimensional arrays (please use instead the `showscores` version found in the SLES11 sub-directory). On the other hand SLES11 is meanwhile End-Of-Support/End-Of-Life (EoS/EoL).\n\nIt will run under SLES12SP5 = GNU AWK 4.1.8 (API: 1.0), SLES15SP2 = GNU AWK 4.1.0 (API: 1.0) and SLES15SP3/SP4/SP5/SP6 = GNU AWK 4.2.1 (API: 2.0)\n\nVersion 3.x was tested with MLS7.9 (RHEL 7.9), so showscores should also work on RHEL9 and RHEL10.\n\u003e resource-stickiness and migration-threshold may require a rewrite\n\n## Example Output SLES15, 2 node cluster\n\n``` shell\n$ ./showscores\nrsc_defaults: resource-stickiness=123   migration-threshold=5\n\n## [ Resource ]#####[ Nodes -\u003e ]##          sap12ha1           sap12ha2\n\nadmin-ip                                          0                123\nc-clvm                                            0                  0\nc-p_mail2sysadmin                                 0                  0\nclee0                                             0                123\nclem1                                           123                  0\ndlm0                                              0                246\ndlm1                                            246                  0\ng-clvm0                                           0                  0\ng-clvm1                                           0                  0\ng-mariadb                                         0                  0\nmariadb-ip                                      123                  0\np_mail2sysadmin0                                  0                123\np_mail2sysadmin1                                123                  0\np_mydummy                                       123                  0\nprm_fs1                                           0                  0\nprm_mariadb                                       0                  0\nprm_vg1                                   -INFINITY          -INFINITY\nstonith-sbd                                     123                  0\n```\n\n## Example Output, SLES15, 3 Node SAP HANA SRA cluster, read-enable setup, BSC1210614\n\n``` shell\n\nrsc_defaults: resource-stickiness=Multiple attributes match name=resource-stickiness\n  Value: 1000   (id=build-resource-stickiness)\n  Value: 1000   (id=rsc-options-resource-stickiness)   migration-threshold=5000\n\n##[ Resource ]#####[ Nodes ]##            hanode_02          hanode_mm          hanode_01\n\nadmin-ip                                       1000                  0                  0\ncln_SAPHanaTopology_TST_HDB00                     0          -INFINITY                  0\nmsl_SAPHana_TST_HDB00                             2          -INFINITY                  2\nrsc_SAPHanaTopology_TST_HDB000                    0          -INFINITY               1000\nrsc_SAPHanaTopology_TST_HDB001                 1000          -INFINITY                  0\nrsc_SAPHanaTopology_TST_HDB002                    0          -INFINITY                  0\nrsc_SAPHana_TST_HDB000                            2          -INFINITY               1152\nrsc_SAPHana_TST_HDB001                         1102          -INFINITY                  0\nrsc_ip_TST_HDB00_master                           0          -INFINITY               3000\nrsc_ip_TST_HDB00_readenabled                   3000          -INFINITY                  0\n\nShowscore taken on node: hanode_mm at Wed Apr 12 12:13:08 CEST 2023\n```\n\n✍ NOTE: hanode_mm is the \"Majority Maker\" node  and the rsc_defaults output is affected by \"Bug 1210614 - Duplicated entries for resource-stickiness\"\n\nExample of the bug:\n\n    cib_pm_node001.txt-rsc_defaults build-resource-defaults: \\\n    cib_pm_node001.txt:\tresource-stickiness=1 🔥\n    cib_pm_node001.txt-rsc_defaults rsc-options: \\\n    cib_pm_node001.txt-\tmigration-threshold=5000 \\\n    cib_pm_node001.txt:\tresource-stickiness=1000\n\n## Example Output SLES15, 3 Node SAP HANA SRA cluster, read-enable setup - wrong stickiness/threshold\n\n``` shell\n\nrsc_defaults: resource-stickiness=1   migration-threshold=3\n\n\n##[ Resource ]#####[ Nodes ]##       majority-maker              node01             node02\n\nadmin-ip                                          0                  1                  0\ncln_SAPHanaTopology_R44_HDB00             -INFINITY                  0                  0\nmsl_SAPHana_R44_HDB00                     -INFINITY                  1                  1\nrsc_SAPHanaTopology_R44_HDB000            -INFINITY                  1                  0\nrsc_SAPHanaTopology_R44_HDB001            -INFINITY                  0                  1\nrsc_SAPHanaTopology_R44_HDB002            -INFINITY                  0                  0\nrsc_SAPHana_R44_HDB000                    -INFINITY                152                  1\nrsc_SAPHana_R44_HDB001                    -INFINITY                  0                102\nrsc_ip_R44_HDB00_master                   -INFINITY               2001                  0\nrsc_ip_R44_HDB00_readenabled              -INFINITY                  0               2001\n\n```\n## Example Output SLES15, 3 Node SAP HANA SRA cluster, read-enable setup - stickiness/threshold according to SUSE Best Practices\n\n``` shell\nrsc_defaults: resource-stickiness=1000   migration-threshold=5000\n\n##[ Resource ]#####[ Nodes -\u003e ]##    majority-maker             node01             node02\n\ncln_SAPHanaTopology_R44_HDB00             -INFINITY                  0                  0\nmsl_SAPHana_R44_HDB00                     -INFINITY                  2                  2\nrsc_SAPHanaTopology_R44_HDB000            -INFINITY               1000                  0\nrsc_SAPHanaTopology_R44_HDB001            -INFINITY                  0               1000\nrsc_SAPHanaTopology_R44_HDB002            -INFINITY                  0                  0\nrsc_SAPHana_R44_HDB000                    -INFINITY               1152                  2\nrsc_SAPHana_R44_HDB001                    -INFINITY                  0               1102\nrsc_admin-ip                                      0               1000                  0\nrsc_ip_R44_HDB00_master                   -INFINITY               3000                  0\nrsc_ip_R44_HDB00_readenabled              -INFINITY                  0               3000\n```\n\n## Example Output from a SLES15 KVM Cluster\n\n✍  \"Selfwritten/self designed cluster\"\n```\nrsc_defaults: resource-stickiness=120   migration-threshold=5\n\n##[ Resource ]#####[ Nodes ]##        kvm02cstltss        kvm01csltss\nClusterMon-clone                                  0                  0\ncl_NodeUtil                                       0                  0\nrsc_ClusterMonEL0                               120                  0\nrsc_ClusterMonEL1                                 0                120\nrsc_Dummy01                                     120                  0\nrsc_cl_NodeUtil0                                120                  0\nrsc_cl_NodeUtil1                                  0                120\nrsc_vd_cirros                                   120                  0\nrsc_vd_sles15                                     0                120\nsbd-fencing                                       0                120\n```\n\nend of documentation....\n\n\u003c!--\nvim:set fileencoding=utf8 fileformat=unix filetype=gfm tabstop=2 expandtab:\n$Id: Readme.md,v 1.15 2026/03/20 12:53:57 ralph Exp $\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froseswe%2Fshowscores","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froseswe%2Fshowscores","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froseswe%2Fshowscores/lists"}