i'd use a line-per-rack format to describe the compents, or s-expressions if it had to be hierarchical, and then generate pic from that (tpic or whatever it is for tex i suppose).