Dears, I've been search on the Internet for a while. But most people are discuss about how to fix the request time out issue. My purpose is to write a test to verified the situation that we use the Read-only community to configure the MIB object. so the expect behavior is that we'll get request timeout. Any suggestion how could I detect the request timeout message? I was using SNMP-1.1.0. Regards, Jacob
on 2012-07-11 08:17
on 2012-07-11 14:55
Jacob Su wrote in post #1068226: > Dears, > > I've been search on the Internet for a while. But most people are > discuss about how to fix the request time out issue. > > My purpose is to write a test to verified the situation that we use the > Read-only community to configure the MIB object. so the expect behavior > is that we'll get request timeout. > > Any suggestion how could I detect the request timeout message? > I was using SNMP-1.1.0. What does the library do today under these circumstances? Does it raise a Timeout::Error? If so, you just test for that. assert_raises(Timeout::Error) { ... do stuff with SNMP }
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.