- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Port Number
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
тАО03-08-2005 01:04 AM
тАО03-08-2005 01:04 AM
Port Number
Can anybody clarify this?
Will there be any port number change between hp-ux(9.x,10.x) and solaris9?
Where I will get good information about Port number?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:12 AM
тАО03-08-2005 01:12 AM
Re: Port Number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:25 AM
тАО03-08-2005 01:25 AM
Re: Port Number
Thanks Flori.
So when I migrate application from HP to Solaris or vice versa should I only look what are the changes in /etc/services?
Will that be suffice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:28 AM
тАО03-08-2005 01:28 AM
Re: Port Number
But I think this is a small issue.
You can simply use the following
netstat -na | grep LISTEN >/tmp/netstat.noapp
/etc/init.d/application start
netstat -na | grep LISTEN >/tmp/netstat.withapp
diff netstat.noapp netstat.withapp
If this is about firewall rules, take good care to include the IPv6 ports on the solaris box if IPv6 is in the kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:31 AM
тАО03-08-2005 01:31 AM
Re: Port Number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:40 AM
тАО03-08-2005 01:40 AM
Re: Port Number
Solaris is going to be different, but recognizable to a Unix admin.
Note that this is documented in the /etc/services file, but oracle and other venders don't bother to use or update this file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 02:40 AM
тАО03-08-2005 02:40 AM
Re: Port Number
I made this question because I am making some document where I require information like impact of application(any) on the target platform when I migrate from hp(9.x,10.x) to Solaris9.
So I think port number will not make any issue while migrating application unless it is registered in the /etc/services. Am I correct?
Any other addition input?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 04:29 AM
тАО03-09-2005 04:29 AM
Re: Port Number
The HP-UX 9 and 10 TCP/IP stacks were based on BSD networking code. HP-UX 10.20 had an HP value-add called Inbound Packet Scheduling (IPS) that increased MP scaling when the number of CPUs was > the number of NICs. In HP-UX 11 (circa 1998 or so) that became TOPS for Thread Optimized Packet Scheduling. I do not believe that Solaris 9 has such a thing.
As for port numbers, as already pointed-out, "well known" portnumbers will remain the same - telnet, ftp, etc will still be at the same port numbers. I suspect the anonymous or ephemeral port number space will be different. On HP-UX 9 and 10 that was from (IIRC) 1025 to 5000. On Solaris 9 I believe it may be > 32768. So long as your code is properly written to have an _unsigned_ short for port numbers you should be OK.
Another consideration since we are talking about things networking - if you are porting to Solaris x86 as opposed to Solaris SPARC (One presumes that all the main action for Solaris in the future iwll be in the x86 space) you need to keep in mind that Solaris x86 is _little-endian_ whereas HP-UX * are _big-endian_ and port numbers and IP addresses and such must be presented in network (aka big-endian) order to socket calls. That means your code needs to have apropriate hton* and ntoh* calls in it or it will start to fail in strange-looking ways when you start to run it on a little-endian system such as Solaris x86.