Basic script to determine rack topology