shell生成随机mac
[root@localhost images]# echo 08:00:27:$(openssl rand -hex 3 | sed ‘s/\(..\)/\1:/g; s/.$//‘)
08:00:27:40:38:1a
shell随机生成uuid
[root@localhost images]# uuidgen
d2db7973-f793-4acc-9595-7563e196539f
[root@localhost images]# uuidgen | sed ‘s/-//g‘
33ad00c1d4424030b9e85a72850dc7b0