No probs - I've not done it to 3Com switches personally, a quick traul of Google showed up some code that might do what you want, although the guy in the thread seemed to have a problem with it, so it might be a starting point only.
Comment on Re^3: Mysterious LWP status 500 Line too long