Forum Discussion
dsirrine_23403
Feb 24, 2011Nimbostratus
Custom Monitor EAV with Send/Expect script
I am having an issue with my custom monitor where I am attempting to send an e-mail via telnet on port 25 using the send/expect scripted monitor. What I have so far is the following:
send te...
I'm not sure whether you can just expect for 250.
SMTP uses dash (-) to seperate the status code from the response text while there are more lines remaining, eg. response from SMTP:
root@server telnet smtpserver 25
220 Ok
ehlo there
250-Line 1
250-Line 2
250-Line 3
250 This is the end of SMTP response
You might need to modify the expect string to retrieve the last line.
I'm not good with Expect, but if you need help, I can give you a sample using Perl's Net::SMTP
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects