g_all, g_allc, g_alls
This command is supported only on these:
|
|
Note - You must run this command in the Expert mode. |
Description
Runs the specified command on all Security Group Members and shows the requested output.
Syntax
|
Parameters
Parameter |
Description |
---|---|
|
Runs the specified command on each Security Group Member in the "UP" state. Shows the complete output from each Security Group Member in the "UP" state. The output is divided into sections for each Security Group Member. |
g_allc
|
Collects the outputs from all Security Group Members (in the "UP" state) and:
|
|
Shows the complete output from each Security Group Member in the "UP" state. The output shows the Security Group Member ID in the beginning of each line (this makes it easier to parse the output). This streaming output is suitable for commands that expect non-finite output, such as " |
No Parameters |
Shows the outputs for all Security Group Members in the "UP" state. |
|
Includes the Security Group Members that are in the "DOWN" state. |
|
Specifies the Security Group Members, for which to run this command. By default, applies to Security Group Members. Applies to Security Group Members as specified by the
|
|
Specifies the IDs of the Traditional VSX Virtual Systems. Applies to the Traditional Virtual Systems as specified by the <VS IDs> can be:
This parameter is only applicable in a VSX environment. |
|
Shows the output only from the current Security Group Member, to which you are currently connected. |
|
Shows the output from Security Group Members, except the one to which you are currently connected. |
|
Any Expert mode command (for example, |
Examples

To demonstrate these commands, were created a test file on the Security Group Members:
-
This file contains the same string on the Security Group Members 1_1 and 1_3.
-
This file contains a different string on the Security Group Member 1_2.
[Expert@SG-s01-01:0]# g_all cat /var/log/test.txt 1_01: Hello 123 1_02: Hello 456 1_03: Hello 123 [Expert@SG-s01-01:0]# [Expert@SG-s01-01:0]# g_allc cat /var/log/test.txt -*- 2 blades: 1_01 1_03 -*- Hello 123 -*- 1 blade: 1_02 -*- Hello 456 [Expert@SG-s01-01:0]# [Expert@SG-s01-01:0]# g_alls cat /var/log/test.txt [1_01]Hello 123 [1_02]Hello 456 [1_03]Hello 123 [Expert@SG-s01-01:0]# |

[Expert@SG-s01-01:0]# g_all cp -v /var/log/test.txt{,_BKP} 1_01: '/var/log/test.txt' -> '/var/log/test.txt_BKP' 1_02: '/var/log/test.txt' -> '/var/log/test.txt_BKP' 1_03: '/var/log/test.txt' -> '/var/log/test.txt_BKP' [Expert@SG-s01-01:0]# [Expert@SG-s01-01:0]# g_allc cp -v /var/log/test.txt{,_BKP} -*- 3 blades: 1_01 1_02 1_03 -*- '/var/log/test.txt' -> '/var/log/test.txt_BKP' [Expert@SG-s01-01:0]# [Expert@SG-s01-01:0]# g_alls cp -v /var/log/test.txt{,_BKP} [1_01]'/var/log/test.txt' -> '/var/log/test.txt_BKP' [1_02]'/var/log/test.txt' -> '/var/log/test.txt_BKP' [1_03]'/var/log/test.txt' -> '/var/log/test.txt_BKP' [Expert@SG-s01-01:0]# |