Re: Question about connection and sending with wod - WeOnlyDo Discussion board

Re: Question about connection and sending with wod (General questions)

by Michael Helsel, Saturday, May 26, 2007, 14:33 (6391 days ago) @ wodSupport

Unfortunately I can't allow you to connect to our network switches due to our corporate policy and security measures to duplicate the error, Sorry. :(

As far as the async sends, I just use the PromptReceivedEvent right?

As of right now it works using sync and blocking = True, however when sending more than one command back to back I have to use the following command after each sent command:

system.threading.thread.sleep(x) x= amount of miliseconds, so usually its 150.

I really do not want to do that if I don't need to, but my other problem is my application threads can't move on until those sends and those receives are finished. So I am not sure how to use the async correctly for my scenario.

I was reading up the prompt event and I have a question, I have the initial prompt when I log in and start sending commands, but how does the prompt event work if you have the --More-- displayed because there is more data. i.e., I login into a switch issue the command sh port x/x then it displays the data, but there is more so instead of displaying the normal prompt it displays --More-- and you can either hit enter or space .

How do I adjust the prompt property to realize this, so I can issue a send command with enter or space.

Thanks!
Mike Helsel


Complete thread: