- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- IMAP daemon ping
Operating System - HP-UX
1748180
Members
4170
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2001 10:51 PM
тАО07-05-2001 10:51 PM
IMAP daemon ping
Hi,
I'm desperately seeking a tool to verify whether a running imap daemon is indeed up and running and responding.
I know I can try a telnet to the daemon on his listen port (143), but then I'm not able anymore to get out of that Telnet and that's a problem when I want to execute this from a script (the script generates hanging telnet processes under init).
Isn't there any other way ? Is there for example not somewhere a tool like 'imapping' or something like that?
thanks in advance for all your help!
I'm desperately seeking a tool to verify whether a running imap daemon is indeed up and running and responding.
I know I can try a telnet to the daemon on his listen port (143), but then I'm not able anymore to get out of that Telnet and that's a problem when I want to execute this from a script (the script generates hanging telnet processes under init).
Isn't there any other way ? Is there for example not somewhere a tool like 'imapping' or something like that?
thanks in advance for all your help!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2001 11:18 PM
тАО07-05-2001 11:18 PM
Re: IMAP daemon ping
You could use a here document:
telnet {hostname} 143 < /tmp/imap.test 2>/dev/null
0 logout
!
The check the contents of /tmp/imap.test
Robin.
telnet {hostname} 143 < /tmp/imap.test 2>/dev/null
0 logout
!
The check the contents of /tmp/imap.test
Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2001 01:20 AM
тАО07-06-2001 01:20 AM
Re: IMAP daemon ping
Edit a file "exit" with vi,in vi ctrl-v (for insert) ctrl-] (for to go in telnet prompt) after edit quit.You have a file with 2 lines ctrl-] and quit.
#telnet {hostname} 143 < exit
#telnet {hostname} 143 < exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2001 01:25 AM
тАО07-06-2001 01:25 AM
Re: IMAP daemon ping
Hi,
This will only work if you have perl and the IO::Socket module installed. Perl might be installed into another dir on your system.
#!/usr/bin/perl
use strict;
use IO::Socket::INET;
my ( $imap );
$imap=IO::Socket::INET->new( PeerAddr => 'localhost:143');
if(defined($imap) && $imap->connected())
{
shutdown($imap,2);
print "Connection to imap service succeeded.\n";
}
else
{
print "Connection to imap service failed.\n";
}
This will only work if you have perl and the IO::Socket module installed. Perl might be installed into another dir on your system.
#!/usr/bin/perl
use strict;
use IO::Socket::INET;
my ( $imap );
$imap=IO::Socket::INET->new( PeerAddr => 'localhost:143');
if(defined($imap) && $imap->connected())
{
shutdown($imap,2);
print "Connection to imap service succeeded.\n";
}
else
{
print "Connection to imap service failed.\n";
}
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP