Provided are a computer implemented method, system, and program for
enabling access to information from a device. A device program is
generated to access device property information from the device. Each
device property indicates a state of the device and the device program
includes device specific commands to query the device for information on
the device properties and device independent statements common to device
programs for other devices to buffer the queried property information to
return to requesting clients. The device program is stored in a computer
readable medium.