发布时间:2019-10-12 19:42:13
PS /powerclidata/data> $wwn 100000109B7DD1BEPS /powerclidata/data> $aa="";$x='';$y='';$count=0;$info|foreach{$count+=1;if($count%2 -eq 1){$x=$_};if($count%2 -eq 0){$y=$_;-join ($x,$y)}} |foreach{$aa=-join($aa,":",$_)};$aa.Substring(1,23) .........【阅读全文】
发布时间:2019-10-08 15:41:43
脚本:def showdict(outinfo):for line in outinfo: print(line+":"+info.get(line, 'NoValue'))showdict(outinfo)输出:#instance_uuid:84f43473-8d26-43b1-b9e8-0b9bc58b5b22#vendor:VMware, Inc.#locale_version:INTL#license_product_name:VMware VirtualCenter Server......【阅读全文】