- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Port no is not shown but service name is shown
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО04-23-2009 08:15 AM
тАО04-23-2009 08:15 AM
In one of my Redhat linux running in IBM iseries AS400 partition. i am able to see the service name:
Ex:
-bash-3.00# netstat -a | grep smtp
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:imap *:* LISTEN
All above services is running in default ports (25, 110, 143).
I checked this thru using telnet command from windows client.
Ex: telnet ip_address 25
It is opening.
But my issue is i am not able to view the port using netstat command in linux.
Ex:
# netstat -a | grep 25
or
# netstat -tulpn | grep 25.
But other Redhat linux server i am able to see the opened ports using this command.
Why this is not working.
Hint : This Redhat linux server is installed in IBM iseries AS400 partition.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 08:36 AM
тАО04-23-2009 08:36 AM
Solutionhttp://www.linuxquestions.org/questions/linux-networking-3/port-monitoring-using-netstat-663767/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2009 02:16 AM
тАО04-24-2009 02:16 AM
Re: Port no is not shown but service name is shown
you can use nmap ip_address; it's very usefull
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2009 07:35 AM
тАО04-24-2009 07:35 AM
Re: Port no is not shown but service name is shown
> or
> # netstat -tulpn | grep 25.
that's because if you want to see the post numbers instead of the service names you must use the '-n' option of netstat.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2009 11:58 AM
тАО04-24-2009 11:58 AM
Re: Port no is not shown but service name is shown
netstat -an | grep :25
Then you will find if the 25 port is open. If you don't get any output, the the port is closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2009 09:36 PM
тАО04-24-2009 09:36 PM
Re: Port no is not shown but service name is shown
Try with this command also.
#netstat -an |grep *.25
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2009 02:37 AM
тАО04-25-2009 02:37 AM
Re: Port no is not shown but service name is shown
# netstat -an |grep *.25
will not work because the output of netstat doesn't contain any ":" on HP-UX, (on LINUX it DOES)
# netstat -an |grep *.25
will give you results, but if eg. a service listens on a specific interface you won't see it.
so i think the ultimate solution is:
# netstat -an | awk '$4 ~ ".25$"'
this will give you the lines from the netstat output that has something to do with port 25 on the local side
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2009 02:41 AM
тАО04-25-2009 02:41 AM
Re: Port no is not shown but service name is shown
# netstat -an | grep :25
will not work because the output of netstat doesn't contain any ":" on HP-UX, (on LINUX it DOES)
"
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 03:37 AM
тАО05-04-2009 03:37 AM
Re: Port no is not shown but service name is shown
Dear Senthil
simply u can use netstat -ian command
sajjad