Visit Our UNIX and Linux User Community


Help with /etc/services


 
Thread Tools Search this Thread
Operating Systems AIX Help with /etc/services
# 1  
Old 02-21-2011
Help with /etc/services

Hi
In my AIX 5.3 box I already have the below entry:
Code:
#cat /etc/services | grep -i 3602
infiniswitchcl  3602/tcp                # InfiniSwitch Mgr Client
infiniswitchcl  3602/udp                # InfiniSwitch Mgr Client

Now I got an requirement to add the below entry in the same port number 3602.
Code:
sapmsDSM        3602/tcp        # SAP Sol Mon System Messaging Service Port

Can I do that or will it impact anything ?

Please assist


Moderator's Comments:
Mod Comment Please use [code] and [/code] tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks.

Last edited by zaxxon; 02-21-2011 at 08:32 AM.. Reason: code tags
# 2  
Old 02-21-2011
If there is not already a service running at this port, you will have no problem. You can check with netstat -an| grep "\.3602" if one is currently up. But usually the /etc/services is just prepared with entries for well known ports.
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 02-21-2011
Just follow what Zaxxon stated.

Just for info (because it is not relevant in your case), but in some very special case, you may want to add aliases into /etc/services , this could be done entering entries this way.
Code:
infiniswitchcl  3602/tcp sapmsDSM

(i used such kind of notation once, many years ago and that was on an HP-UX system (or maybe solaris ... i'm not sure) , not sure how the other OS handle it)

... and for sure the /etc/services were initially not designed in that purpose.

Last edited by ctsgnb; 02-21-2011 at 09:45 AM..
# 4  
Old 02-22-2011
There is a pre-requisite for running SAP that you need to disable a large number of ports in the /etc/services file before installing the SAP application.

Services 32xx, 33xx 36xx 48xx need to be removed.
This User Gave Thanks to ross.mather For This Post:
# 5  
Old 02-22-2011
Quote:
Originally Posted by ross.mather
[...]that you need to disable a large number of ports in the /etc/services file[...]
I'm not sure if you, ross, meant it that way, but i would like to point out the following for clarification: the file /etc/services is just a translation device for port names to port numbers, similar to the /etc/hosts file, which translates host names to IP addresses. Its content is mostly derived from RFC1700.

Removing an entry there will in no way close or disable a certain port, just like removing an entry from /etc/hosts will not prevent communiaction with the mentioned host.

To disable communication via a certain port one will have to resort to some layer-4 filtering, i.e. firewalling: IPSec, iptables or something such.

I hope this helps.

bakunin
# 6  
Old 02-24-2011
Quote:
Originally Posted by samsungsamsung
Hi
Can I do that or will it impact anything ?

you can do it. it will not harm anything. /etc/services is just a file to map ports/service names/protocols.
This User Gave Thanks to frank_rizzo For This Post:
# 7  
Old 02-24-2011
it will not effect any other services.you can proceed .
This User Gave Thanks to Rajesh_Apple For This Post:

Previous Thread | Next Thread
Test Your Knowledge in Computers #679
Difficulty: Medium
IEEE 802.3 CSMA/CD, CSMA/CD stands for Carrier Sense, Multiple Authorization with Collision Detection.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to Start services based on dependent services on other AIX machine

Hi, I just started working on a script. After my research, i found a command which can help me: AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2. So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies

2. Red Hat

Restart of services if port no is changed in /etc/services in RHEL

I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed. I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed. Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies

3. Solaris

etc/services

Need help from the unix admins out there. I am trying to telnet from a windoze machine to a sun machine. It won't let me connect. I looked at etc/services and I found the port that telnet was listening on. But, how can I tell if its actually up and available? is there a unix command I can issue?... (15 Replies)
Discussion started by: Harleyrci
15 Replies

4. UNIX for Dummies Questions & Answers

services in linux

hi, what is the command for checking the particular services and how can we find whether that service is up or down. Consider http service. how to check whether its up or down Edit: Question continued here. (0 Replies)
Discussion started by: satheeshkr_cse
0 Replies

5. Windows & DOS: Issues & Discussions

Services for Unix

I just installed Services for Unix on a Windows 2003 DC. I have a Debian box with Samba shares for our storage drive. I'm trying to test a Linux client. She is unable to read or write from the Samba shares. Her login is being mapped to the same name from NIS to AD. She can login from a windows... (0 Replies)
Discussion started by: dawningtech
0 Replies

6. HP-UX

HP-UX services

Hi, We are running HP-UX 11.11 in trusted mode. We have a audit scheduled next week and I have been given the resp. to check all the network servies and other user maintenance things. Is there any HP document which states which services can be easily disabled and how. Like ftp, finger etc.... (1 Reply)
Discussion started by: isingh786
1 Replies

7. UNIX for Dummies Questions & Answers

services

I have an application service running on an AIX server Client application is able to connect to the server machine. Strange thing is when i do "netstat -a | grep servicename" I get no output but when i do "ps -ef | grep service name", I am able to see the service running I... (1 Reply)
Discussion started by: bryan
1 Replies

8. UNIX for Dummies Questions & Answers

ports and services

hello all, in order for me to close ports and remove services that could be a danger to my system i have edited the /etc/initd.conf file, /etc/system file, and renamed some of the r commands. However i wanted to know if anyone knows how to turn off all services and close ALL known ports, so i... (3 Replies)
Discussion started by: Holistic
3 Replies

9. UNIX for Advanced & Expert Users

services

Hi, Is it possible to remove/disconnect a socket connection having a status of LISTEN, from command prompt..?? Thanks in Advance.. (1 Reply)
Discussion started by: shibz
1 Replies

Featured Tech Videos