chiark / gitweb /
[PATCH] chassis_id: clean compilation and fix bad function parameter passing
[elogind.git] / extras / chassis_id / README
1                                      README.txt
2                                      ~~~~~~~~~~
3 Chassis_id is a callout program which is used to give geographic names to devices.  It uses
4 another callout program scsi_id to determine the serial number of a device and then looks up
5 the provisioning table based on this key. It retrieves  geographic information 
6 ( chassis#, slot# and host# ) about the device and prints it to stdout. These fields are
7 used by udev to create the device entry.
8
9 Using Udev:
10 ~~~~~~~~~~
11 Chassis_id gets invoked by udev using the udev as below:
12
13 BUS="scsi", PROGRAM="/usr/local/bin/chassis_id", NAME="/chassis%c{1}/slot%c{2}/host%c{3}/disk-%c{4}
14
15 The provisioning table ( file provision.tbl ) has to be put in /usr/local/bin and as of now has
16 to be populated manually. This is the only place where the geographic map of devices is kept
17 in the system.
18
19
20 Usage Model:
21 ~~~~~~~~~~~~
22 On ATCA based blade architecture systems, blade insertion/removal is common. We create names
23 in a 3 level deep tree which represent the geographic map of the devices.
24
25
26 CONTACT:
27 ~~~~~~~~
28 Please feel free to contact atul.sabharwal@intel.com with questions, comments, suggestions.