Created
July 31, 2023 06:08
-
-
Save MegaShIzoID/0a2a1da3db1f6e16900e7c9e21b39ec3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\TBSupport>"c:\Program Files\Git\bin\bash.exe" -x "c:\Program Files\Zabbix Agent 2\zabbix_agent2.d\scripts\1c_license_server.sh" process 37a38f89-b3e1-4022-b433-b9aeec728544 rmngr | |
++ dirname 'c:\Program Files\Zabbix Agent 2\zabbix_agent2.d\scripts\1c_license_server.sh' | |
++ sed -r 's/\\/\//g; s/^(.{1}):/\/\1/' | |
+ WORK_DIR='/c/Program Files/Zabbix Agent 2/zabbix_agent2.d/scripts' | |
+ shopt -q extglob | |
+ shopt -s extglob | |
+ source '/c/Program Files/Zabbix Agent 2/zabbix_agent2.d/scripts/1c_common_module.sh' | |
+ case ${1} in | |
+ CLSTR_UUID=37a38f89-b3e1-4022-b433-b9aeec728544 | |
+ CHECK_MODE=rmngr | |
+ shift 2 | |
+ shift | |
+ make_ras_params | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ export RAS_PORTS RAS_TIMEOUT RAS_AUTH | |
+ check_cluster_process rmngr 37a38f89-b3e1-4022-b433-b9aeec728544 | |
++ echo rmngr | |
++ sed 's/rmngr/manager/; s/rphost/process/' | |
+ RAC_PARAM=manager | |
++ awk -v 'FS= +: *' -v filter=manager '( $0 ~ "^("filter"|host|)( |$)" ) { print $2}' | |
+++ awk -F# -v cluster=37a38f89-b3e1-4022-b433-b9aeec728544 '$0 ~ cluster { print $1 }' /tmp/1c_clusters_cache_1545 | |
++ awk -v RS= -v OFS=: '$1=$1' | |
++ awk -F: -v hostname=1c-01-win '( $0 ~ ":"hostname ) { print $1 }' | |
++ timeout -s HUP 1.5 rac manager list --cluster 37a38f89-b3e1-4022-b433-b9aeec728544 1c-01-win:1545 | |
+ PROCESS_UUID=dde75385-98a4-4dd7-b7ac-bf86f3b60cc8 | |
+ [[ -z dde75385-98a4-4dd7-b7ac-bf86f3b60cc8 ]] | |
+ [[ -z 1 ]] | |
+ wmic path win32_process where 'caption like '\''rmngr.exe'\''' get commandline /format:csv | |
+ awk '/dde75385-98a4-4dd7-b7ac-bf86f3b60cc8|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }' | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Интересно, та же версия, тот же способ запуска в командной строке присутствует параметр
-clstid
и заканчивается вот так-fromsrvc -clstid 59942805-ae0c-42ee-b1bd-f552035a93dd