开发者

Generating a uuid for a copied VMWare virtual machine

开发者 https://www.devze.com 2022-12-16 08:26 出处:网络
As per http://www.vmware.com/support/esx15/doc/esx15_runvm5.html, how would one go about generating the UUID form开发者_StackOverflowat that is specified in the docs?

As per http://www.vmware.com/support/esx15/doc/esx15_runvm5.html, how would one go about generating the UUID form开发者_StackOverflowat that is specified in the docs?

I'd like this to be a command line utility so I can re-use this in an automation script.


Command:

  uuidgen | perl -ne '{ s/-//g; s/(.{2})/\1 /g; substr($_,23,1,"-"); print ; }'

Outputs:

CB 7B E9 47 F7 55 42 42-AC 16 46 C1 E9 08 35 53 
0

精彩评论

暂无评论...
验证码 换一张
取 消