From: pat on
All,

Is there a max number of enteries in the /etc/services file? I'm running
Solaris 9 and I've added 3 enteries for my applications and it works for one
but not all 3.

Thanks



From: jimp on
pat <philpott.patrick(a)gmail.com> wrote:
> All,
>
> Is there a max number of enteries in the /etc/services file? I'm running
> Solaris 9 and I've added 3 enteries for my applications and it works for one
> but not all 3.
>
> Thanks

Nope, other than maybe the max size of an integer.

By it not working do you mean netstat -a shows one service as a name and
the other two as numbers?


--
Jim Pennino

Remove .spam.sux to reply.
From: pat on

<jimp(a)specsol.spam.sux.com> wrote in message
news:laj497-ao2.ln1(a)mail.specsol.com...
> pat <philpott.patrick(a)gmail.com> wrote:
>> All,
>>
>> Is there a max number of enteries in the /etc/services file? I'm running
>> Solaris 9 and I've added 3 enteries for my applications and it works for
>> one
>> but not all 3.
>>
>> Thanks
>
> Nope, other than maybe the max size of an integer.
>
> By it not working do you mean netstat -a shows one service as a name and
> the other two as numbers?
>
>
> --
> Jim Pennino
>
> Remove .spam.sux to reply.
>
So if I I add these services to the /etc/services file and then run a
netstat -a I should see them listed and if they are not listed what does
that usually mean.

A123 8500/tcp
B123 8700/tcp
C123 8900/tcp

Thank you


From: hume.spamfilter on
pat <philpott.patrick(a)gmail.com> wrote:
> So if I I add these services to the /etc/services file and then run a
> netstat -a I should see them listed and if they are not listed what does
> that usually mean.

You'll only see them if something has the port open/bound.

What does "getent services 8500/tcp" tell you?

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: jimp on
pat <philpott.patrick(a)gmail.com> wrote:
>
> <jimp(a)specsol.spam.sux.com> wrote in message
> news:laj497-ao2.ln1(a)mail.specsol.com...
>> pat <philpott.patrick(a)gmail.com> wrote:
>>> All,
>>>
>>> Is there a max number of enteries in the /etc/services file? I'm running
>>> Solaris 9 and I've added 3 enteries for my applications and it works for
>>> one
>>> but not all 3.
>>>
>>> Thanks
>>
>> Nope, other than maybe the max size of an integer.
>>
>> By it not working do you mean netstat -a shows one service as a name and
>> the other two as numbers?
>>
>>
>> --
>> Jim Pennino
>>
>> Remove .spam.sux to reply.
>>
> So if I I add these services to the /etc/services file and then run a
> netstat -a I should see them listed and if they are not listed what does
> that usually mean.
>
> A123 8500/tcp
> B123 8700/tcp
> C123 8900/tcp
>
> Thank you

You will only see them with netstat if there is something actually running
on the port, which I foolishly assumed you already have.

Otherwise, use something like "getent services 8500" and it should return
A123 8500/tcp.


--
Jim Pennino

Remove .spam.sux to reply.