• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

debian/H24-Apr-2015-4935

man/man1m/H24-Apr-2015-337288

plat/H24-Apr-2015-851625

.gitignoreH A D24-Apr-201517 32

LICENSEH A D24-Apr-20151.1 KiB2217

MakefileH A D03-May-20222.8 KiB168111

README.mdH A D24-Apr-20152.3 KiB5641

base64.cH A D24-Apr-20152.1 KiB10775

base64.hH A D24-Apr-2015357 2312

common.cH A D24-Apr-2015324 1910

common.hH A D24-Apr-2015657 3420

crc32.cH A D24-Apr-20153.7 KiB7560

crc32.hH A D24-Apr-2015287 2211

dynstr.cH A D24-Apr-20151.6 KiB9371

dynstr.hH A D24-Apr-2015516 2817

manifestH A D24-Apr-2015344 98

mdata_delete.cH A D24-Apr-20151.7 KiB8669

mdata_get.cH A D24-Apr-20151.8 KiB8770

mdata_list.cH A D24-Apr-20151.6 KiB7864

mdata_put.cH A D24-Apr-20152.6 KiB12599

plat.hH A D24-Apr-2015543 3016

proto.cH A D24-Apr-201512.9 KiB593370

proto.hH A D24-Apr-2015594 3422

reqid.cH A D24-Apr-20151.1 KiB7449

reqid.hH A D24-Apr-2015317 2413

README.md

1# mdata-client
2
3This repository contains metadata retrieval and manipulation tools for use
4within guests of the SmartOS (and SDC) hypervisor.  These guests may be either
5SmartOS Zones or KVM virtual machines.
6
7This repository is part of the Joyent SmartDataCenter project (SDC).  For
8contribution guidelines, issues, and general documentation, visit the main
9[SDC](http://github.com/joyent/sdc) project page.
10
11# Commands
12
13There are four commands provided in this consolidation:
14
15* [mdata-list(1M)][mdata_list]; list custom metadata keys in the metadata store
16* [mdata-get(1M)][mdata_get]; get the value of a particular metadata key
17* [mdata-put(1M)][mdata_put]; set the value of a particular metadata key
18* [mdata-delete(1M)][mdata_delete]; remove a metadata key
19
20Manual pages for these tools are available in this repository, and are
21generally shipped with the OS (in the case of SmartOS) or in the package (e.g.
22[for Ubuntu][launchpad_pkg]).  They are also viewable on the web at the links
23above.
24
25# Protocol and Transport
26
27The Joyent Metadata Protocol [is documented online][protocol].  The programs in
28this repository are clients that communicate using this protocol.  The SmartOS
29(or SmartDataCenter) hypervisor provides a [common set][datadict] of supported
30base metadata keys for guests to consume, as well as the ability to support
31arbitrary additional user-provided metadata.
32
33In a SmartOS container/zone guest, a UNIX domain socket is used to communicate
34with the metadata server running in the hypervisor.  In a KVM guest, such as a
35Linux virtual machine, the client tools will make use of the second serial port
36(e.g.  `ttyb`, or `COM2`) to communicate with the hypervisor.
37
38# OS Support
39
40The tools currently build and function on SmartOS and various Linux
41distributions.  Support for other operating systems, such as \*BSD or Windows,
42is absolutely welcome.
43
44## License
45
46MIT (See _LICENSE_.)
47
48[mdata_docs]: http://eng.joyent.com/mdata/
49[protocol]: http://eng.joyent.com/mdata/protocol.html
50[datadict]: http://eng.joyent.com/mdata/datadict.html
51[mdata_get]: http://smartos.org/man/1M/mdata-get
52[mdata_delete]: http://smartos.org/man/1M/mdata-delete
53[mdata_put]: http://smartos.org/man/1M/mdata-put
54[mdata_list]: http://smartos.org/man/1M/mdata-list
55[launchpad_pkg]: https://launchpad.net/ubuntu/+source/joyent-mdata-client
56