Skip to content

Instantly share code, notes, and snippets.

@MegaShIzoID
Created July 31, 2023 05:08
Show Gist options
  • Save MegaShIzoID/b603a5924ee31691da9e7470b75d6d1e to your computer and use it in GitHub Desktop.
Save MegaShIzoID/b603a5924ee31691da9e7470b75d6d1e to your computer and use it in GitHub Desktop.
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 rphost
++ 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=rphost
+ shift 2
+ shift
+ make_ras_params
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ export RAS_PORTS RAS_TIMEOUT RAS_AUTH
+ check_cluster_process rphost 37a38f89-b3e1-4022-b433-b9aeec728544
++ echo rphost
++ sed 's/rmngr/manager/; s/rphost/process/'
+ RAC_PARAM=process
++ awk -v 'FS= +: *' -v filter=process '( $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'
++ timeout -s HUP 1.5 rac process list --cluster 37a38f89-b3e1-4022-b433-b9aeec728544 1c-01-win:1545
++ awk -F: -v hostname=1c-01-win '( $0 ~ ":"hostname ) { print $1 }'
+ PROCESS_UUID='975245e9-6c09-490b-9492-fe0b29c53b7c
f4bfc018-1ade-4779-b8fb-c5626f1f9a24
e4a8d6e0-4938-4d06-87c0-41a1b8536058'
+ [[ -z 975245e9-6c09-490b-9492-fe0b29c53b7c
f4bfc018-1ade-4779-b8fb-c5626f1f9a24
e4a8d6e0-4938-4d06-87c0-41a1b8536058 ]]
+ [[ -z 1 ]]
+ wmic path win32_process where 'caption like '\''rphost.exe'\''' get commandline /format:csv
+ awk '/975245e9-6c09-490b-9492-fe0b29c53b7c|f4bfc018-1ade-4779-b8fb-c5626f1f9a24
e4a8d6e0-4938-4d06-87c0-41a1b8536058|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }'
awk: cmd. line:1: /975245e9-6c09-490b-9492-fe0b29c53b7c|f4bfc018-1ade-4779-b8fb-c5626f1f9a24
awk: cmd. line:1: ^ unterminated regexp
awk: cmd. line:2: e4a8d6e0-4938-4d06-87c0-41a1b8536058|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }
awk: cmd. line:2: ^ syntax error
awk: cmd. line:2: e4a8d6e0-4938-4d06-87c0-41a1b8536058|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }
awk: cmd. line:2: ^ syntax error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment