(imported topic written by SystemAdmin)
Im trying to get the Cluster network communication type from WMI,
Q: (substrings after “=” of (selects “Role from MSCluster_Network” of wmi “root\mscluster” as string))
A: 1
A: 3
I then wanted to translate it to a human readable format, but im getting stuck
Q: (preceding text of first “;” of following text of substrings ((substrings after “=” of (selects “Role from MSCluster_Network” of wmi “root\mscluster” as string)) & “,” ) of (“0,None;1,Cluster;2,Client;3,Both;”))
E: A singular expression is required.
and then replace the line below to reflect the name, Address, Role
Q: ((string value of property “Name” of it, string value of property “Address” of it, string value of property “Role” of it ) of select objects “Name, Address, Role from MSCluster_Network” of wmi “root\MSCluster”)
A: private, 10.10.10.0, 1
A: public, 172.16.4.121, 3
“0,None;1,Cluster;2,Client;3,Both;”
Output would look like this
A: private, 10.10.10.0, Cluster
A: public, 172.16.4.121, Both