Displaying 2 results from an estimated 2 matches for "tmpid".
Did you mean:
mpid
2010 Jul 13
1
Generate groups with random size but given total sample size
Dear list,
I am currently doing some simulation studies where I want to compare different scenarios.
In particular, two scenarios should be compared: 10.000 cases in 100 groups with 100 cases per group and 10.000 cases in 100 groups with random group size (ranging from 5 to 500).
The first part is no problem:
> id <- seq(1,10000)
> group <- sort(rep(seq(1,100),100))
But I don't
2016 Jul 27
0
How to convert /etc/machine-id into a default-duid for IPv6 static DHCP?
...ne-id to a default-duid (in bash)?
1) /etc/machine-id -> DUID:
<read RFC6355 and try to grasp the NetworkManager code at [0] & [1]>
Use sha256 hash of machine-id, use first 128 bits, add colons and
prepend 00:04:
$ MACHINE_ID_SHA256=`cat /etc/machine_id | sha256sum | cut -c1-32`
$ TMPID=$(sed -e 's/.\{2\}/&:/g;s/.$//' <<<$MACHINE_ID_SHA256)
$ DUID=00:04:`echo $TMPID`
Correct?
2) convert $DUID to a default-duid. Example value of default-duid can be
found in /var/lib/NetworkManager/dhclient6-<string>-eth0.lease.
Will stick the pre-set default-duid in /e...