( ** Go back to PARENTPAGE ../Script-envcompare-pl.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Comparing IBM WebSphere MQ WTX Environment Variables Between Hosts

Comparing the environment variables in a cloud is made easy with ASPL scripting language. You can ...

ASPL 1> tee -a /tmp/MQWTX/MQ_WTX_envcompare-pl.tee

ASPL 2> DEF FN cmp2sets := {gU {g\, %%1 %%2}{g\, %%2 %%1}{g&, %%1 %%2}}
define the function cmp2sets() to compare two groups

ASPL 3> timeout 60
set timeout to 60 seconds

ASPL 4> displayoff
turn off display

ASPL 5> localhost = ggenv(grp1,localhost)
get the environment of localhost and assign it to localhost

ASPL 6> mm01 = ggenvR(grp1,mm01,hostname,mm01)
get the environment of host mm01 and assign it to mm01

ASPL 7> displayon
turn on display

ASPL 8> fU localhost mm01
display the union of the environment of both hosts

ASPL 9> f&`c~ localhost mm01
display the intersection of the environment variables whose values differ

ASPL 10> sim localhost mm01
display the similarity of the environment variables

ASPL 11> v
display symbol table