Sponsored Content
Full Discussion: listen to ports...
Top Forums UNIX for Dummies Questions & Answers listen to ports... Post 302094933 by tonlu on Thursday 2nd of November 2006 05:11:51 AM
Old 11-02-2006
Ok..., but how can I log all requstes to a file from this?
I want to see everytime someone login to my machine and uses the telnet, ftp, or rsh commands.
Is it possible to do some edit in /etc/inet/inetd.conf file?

/combat
 

7 More Discussions You Might Find Interesting

1. Programming

can client connect() when server in sleep(300); after listen(fd,5);

0 .with regards to you 1 .Thank you for reading letter 2 .a Server call sleep(20) after listern(fd,5) . When the Server is in asleep,a Client connect() to it successful and send a lot of appointed data . 3 .Why ? I think that the server is in sleep (beasue I call sleep()) , it donot block at... (3 Replies)
Discussion started by: chenhao_no1
3 Replies

2. UNIX for Advanced & Expert Users

Let NTP listen only on one interface

Hallo, I have a machine which serves as NTP server. This machine has more (3) Network interfaces (+ loopback). By default NTP "binds" itself to all available interfaces, i.e. it listens on port 123 on all interfaces: netstat -an|grep 123 udp 0 0 127.0.0.1.123 *.* udp... (0 Replies)
Discussion started by: one71
0 Replies

3. Shell Programming and Scripting

Program to listen a port

I need to launch a script as soon as a file comes via a specified port on my system from another system. Program should work as a dameon and should invoke only when port start/stop accepting file. Any idea how to program/script it... Please no suggestions for cron. Thanks in advance. (1 Reply)
Discussion started by: sumitwa
1 Replies

4. Solaris

socket in listen state disappears/closes automatically

Hi, I am using solaris 10. I have opened a socket connection using java in solaris 10 operating system, the port went to LISTEN state and able to create new socket connection and the new connections went to ESTABLISHED state. If I issue the command "netstat -an | grep <<portnumber>>", I... (10 Replies)
Discussion started by: kumar3k
10 Replies

5. IP Networking

Configure squid to listen on any IP address with port 80

Hi, I am trying to configure a transparent squid cache. When I try to use the below option in squid.conf, squid listens on port 80 only for the IP address configured on the system's interface. http_port 80 transparent But I want squid to accept connections for any IP address on port 80.... (3 Replies)
Discussion started by: Learner32
3 Replies

6. Solaris

Listen given port

Good morning! I would like to test a particular port in Solaris, to see if the firewall rules are ok. Should I install an application, but as yet I have not, have to force solaris to keep an open door, and put any application listening to port 1099, and will test a terminal connectivity via... (5 Replies)
Discussion started by: poyato
5 Replies

7. HP-UX

What is the Listen Address of my process ?

Hi, We cant set the listen address of my java process to the IP address or any of the DNS names listen in the hosts file of the server. We can access the resources of the pid in the web browser through http://<IP / DNS>:port/console Based on the pid, how can we find what is the listen... (6 Replies)
Discussion started by: mohtashims
6 Replies
inetconv(1M)                                              System Administration Commands                                              inetconv(1M)

NAME
inetconv - convert inetd.conf entries into smf service manifests, import them into smf repository SYNOPSIS
inetconv -? inetconv [-f] [-n] [-i srcfile] [-o destdir] inetconv -e [-n] [-i srcfile] DESCRIPTION
The inetconv utility converts a file containing records of inetd.conf(4) into smf(5) service manifests, and then import those manifests into the smf repository. Once the inetd.conf file has been converted, the only way to change aspects of an inet service is to use the inetadm(1M) utility. There is a one-to-one correspondence between a service line in the input file and the manifest generated. By default, the manifests are named using the following template: <svcname>-<proto>.xml The <svcname> token is replaced by the service's name and the <proto> token by the service's protocol. Any slash (/) characters that exist in the source line for the service name or protocol are replaced with underscores (_). The service line is recorded as a property of the converted service. During the conversion process, if a service line is found to be malformed or to be for an internal inetd service, no manifest is generated and that service line is skipped. The input file is left untouched by the conversion process. OPTIONS
The following options are supported: -? Display a usage message. -e Enable smf services which are listed in the input file. -f If a service manifest of the same name as the one to be generated is found in the destination directory, inetconv will overwrite that manifest if this option is specified. Otherwise, an error message is generated and the conversion of that service is not performed. -i srcfile Permits the specification of an alternate input file srcfile. If this option is not specified, then the inetd.conf(4) file is used as input. -n Turns off the auto-import of the manifests generated during the conversion process. Later, if you want to import a generated manifest into the smf(5) repository, you can do so through the use of the svccfg(1M) utility. If the -e option is specified, the -n option only displays the smf services that would be enabled. -o Permits the specification of an alternate destination directory destdir for the generated manifests. If this option is not specified, then the manifests are placed in /var/svc/manifest/network/rpc, if the service is a RPC service, or /var/svc/manifest/network other- wise. EXAMPLES
Example 1: Generating smf Manifests from inetd.conf The following command generates smf(5) manifests from inetd.conf(4) and places them in /var/tmp, overwriting any preexisting manifests of the same name, and then imports them into the smf repository. # inetconv -f -o /var/tmp 100232/10 -> /var/tmp/100232_10-rpc_udp.xml Importing 100232_10-rpc_udp.xml ...Done telnet -> /var/tmp/telnet-tcp6.xml Importing telnet-tcp6.xml ...Done Example 2: Generating Manifests from an Alternate Input File The following command specifies a different input file and does not load the resulting manifests into the smf repository. # inetconv -n -i /export/test/inet.svcs -o /var/tmp 100232/10 -> /var/tmp/100232_10-rpc_udp.xml telnet -> /var/tmp/telnet-tcp6.xml EXIT STATUS
The following exit values are returned: 0 Operation completed successfully (no errors). 1 Invalid options specified. 2 One or more service lines are malformed, and thus no manifest(s) were generated for them. 3 An error occurred importing one or more of the generated manifests. 4 A system error occurred. FILES
/var/svc/manifest/network/{rpc}/<svcname>-<proto>.xml default output manifest file name ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
inetadm(1M), inetd(1M), svccfg(1M), inetd.conf(4), attributes(5), smf(5) SunOS 5.10 21 Oct 2004 inetconv(1M)
All times are GMT -4. The time now is 03:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy