Jump to content
xisto Community

phoboz

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by phoboz

  1. Hi ! I wonder if there is any special command that shows which programs are listening to which network ports ? I have tried: # ps -ef Then I get something like this: UID PID PPID C STIME TTY TIME CMD root 0 0 0 07:51:10 ? 0:09 sched root 1 0 0 07:51:10 ? 0:00 /sbin/init root 2 0 0 07:51:10 ? 0:00 pageout root 3 0 0 07:51:10 ? 0:01 fsflushwebservd 262 247 0 07:51:34 ? 0:00 /usr/apache2/bin/httpd -k start root 7 1 0 07:51:13 ? 0:03 /lib/svc/bin/svc.startd root 9 1 0 07:51:14 ? 0:15 /lib/svc/bin/svc.configdwebservd 259 247 0 07:51:34 ? 0:00 /usr/apache2/bin/httpd -k startwebservd 260 247 0 07:51:34 ? 0:00 /usr/apache2/bin/httpd -k start root 234 7 0 07:51:33 console 0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T sun -m ldterm,ttcompat -h root 228 1 0 07:51:32 ? 0:01 /usr/lib/inet/inetd start root 337 1 0 07:51:41 ? 0:00 /usr/sbin/syslogd root 229 7 0 07:51:32 ? 0:00 /usr/lib/saf/sac -t 300 root 49 1 0 07:51:22 ? 0:00 /sbin/dhcpagent root 93 1 0 07:51:26 ? 0:00 /usr/sbin/nscdwebservd 266 247 0 07:51:35 ? 0:00 /usr/apache2/bin/httpd -k start root 76 1 0 07:51:25 ? 0:00 /usr/lib/sysevent/syseventd daemon 95 1 0 07:51:27 ? 0:00 /usr/lib/crypto/kcfd root 98 1 0 07:51:27 ? 0:00 /usr/lib/power/powerd root 235 1 0 07:51:33 ? 0:00 /usr/lib/utmpd root 82 1 0 07:51:25 ? 0:00 /usr/lib/picl/picld daemon 219 1 0 07:51:31 ? 0:00 /usr/sbin/rpcbind root 203 1 0 07:51:31 ? 0:00 /usr/sbin/cron daemon 222 1 0 07:51:32 ? 0:00 /usr/lib/nfs/statd daemon 230 1 0 07:51:32 ? 0:00 /usr/lib/nfs/lockd root 247 1 0 07:51:33 ? 0:00 /usr/apache2/bin/httpd -k start root 239 229 0 07:51:33 ? 0:00 /usr/lib/saf/ttymonwebservd 264 247 0 07:51:34 ? 0:00 /usr/apache2/bin/httpd -k start root 611 538 0 07:51:52 ? 0:00 /usr/dt/bin/dtlogin -daemon root 317 1 0 07:51:39 ? 0:00 /usr/lib/autofs/automountd root 335 1 0 07:51:41 ? 0:00 /usr/lib/ssh/sshd smmsp 361 1 0 07:51:43 ? 0:00 /usr/lib/sendmail -Ac -q15m root 395 394 0 07:51:44 ? 0:00 /usr/sadm/lib/smc/bin/smcboot root 396 394 0 07:51:44 ? 0:00 /usr/sadm/lib/smc/bin/smcboot root 342 1 0 07:51:42 ? 0:01 /usr/lib/fm/fmd/fmd root 362 1 0 07:51:43 ? 0:00 /usr/lib/sendmail -bd -q15m root 587 1 0 07:51:49 ? 0:00 /usr/sbin/vold root 394 1 0 07:51:44 ? 0:00 /usr/sadm/lib/smc/bin/smcboot alex 629 611 0 07:52:08 ? 0:00 /bin/ksh /usr/dt/bin/Xsession root 407 1 0 07:51:44 ? 0:00 /usr/sbin/afbdaemon /dev/fbs/afb0 root 431 1 0 07:51:45 ? 0:00 /usr/lib/im/htt -port 9010 -syslog -message_locale C root 610 1 0 07:51:52 ? 0:01 /usr/sfw/sbin/snmpd alex 547 538 3 07:51:48 ? 0:56 /usr/openwin/bin/Xsun :0 -defdepth 24 -nobanner -auth /var/dt/A:0-DKaqdb root 448 431 0 07:51:45 ? 0:00 htt_server -port 9010 -syslog -message_locale C root 580 1 0 07:51:49 ? 0:00 /usr/lib/dmi/snmpXdmid -s nova root 461 1 0 07:51:46 ? 0:00 /bin/sh /opt/csw/mysql4/bin/mysqld_safe --pid-file=/opt/csw/mysql4/var/mysql.pi mysql 571 461 0 07:51:49 ? 0:02 /opt/csw/mysql4/libexec/mysqld --basedir=/opt/csw/mysql4 --datadir=/opt/csw/mys alex 702 699 0 07:52:09 pts/3 0:00 -bash -c unset DT; DISPLAY=:0; /usr/dt/bin/dtsession_res -mer root 538 1 0 07:51:47 ? 0:00 /usr/dt/bin/dtlogin -daemon root 556 1 0 07:51:48 ? 0:00 /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf root 568 1 0 07:51:49 ? 0:00 /usr/lib/dmi/dmispd root 612 538 0 07:51:52 ?? 0:00 /usr/openwin/bin/fbconsole -d :0 alex 646 629 0 07:52:08 ? 0:00 /usr/openwin/bin/fbconsole alex 724 716 0 07:52:14 ? 0:01 /usr/dt/bin/sdtperfmeter -f -H -t cpu -t disk -s 1 -name fpperfmeter alex 715 1 0 07:52:11 pts/3 0:00 /usr/dt/bin/ttsession alex 652 1 0 07:52:08 ? 0:00 /usr/openwin/bin/speckeysd alex 699 629 0 07:52:09 pts/3 0:00 /usr/dt/bin/sdt_shell -c unset DT; DISPLAY=:0; /usr/dt/bin/dt alex 716 702 0 07:52:11 pts/3 0:00 /usr/dt/bin/dtsession alex 701 1 0 07:52:09 ? 0:00 /usr/dt/bin/dsdm alex 722 716 0 07:52:11 ? 0:01 dtwm root 723 228 0 07:52:11 ? 0:00 /usr/dt/bin/rpc.ttdbserverd root 732 228 0 07:52:14 ? 0:00 /usr/lib/netsvc/rstat/rpc.rstatd alex 726 1 0 07:52:14 ? 0:00 /bin/ksh /usr/dt/bin/sdtvolcheck -d -z 5 cdrom,zip,jaz,dvdrom,rmdisk alex 744 715 0 07:52:29 pts/3 0:00 /bin/sh -c dtfile -noview alex 743 726 0 07:52:24 ? 0:00 /bin/cat /tmp/.removable/notify726 alex 745 744 0 07:52:30 pts/3 0:00 dtfile -noview alex 747 745 0 07:52:40 pts/3 0:00 dtfile -noview alex 980 979 1 08:02:15 ?? 0:00 /usr/dt/bin/dtterm -C -ls alex 982 980 0 08:02:16 pts/4 0:00 -bash alex 979 722 0 08:02:15 ? 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.13Eu4A 01 715 1289637086 1 1 100 192.168 alex 802 1 0 07:52:47 ? 0:00 /bin/ksh -p /usr/sfw/bin/mozilla alex 988 982 0 08:02:17 pts/4 0:00 ps -ef alex 835 802 0 07:52:48 ? 0:00 /bin/sh /usr/sfw/bin/../lib/mozilla/run-mozilla.sh /usr/sfw/bin/../lib/mozilla/ alex 851 1 0 07:52:51 ? 0:00 /opt/csw/libexec/gconfd-2 16 alex 849 835 6 07:52:48 ? 2:31 /usr/sfw/bin/../lib/mozilla/mozilla-bin -UILocale en-US -contentLocale USAnd take for example the line: UID PID PPID C STIME TTY TIME CMDmysql 571 461 0 07:51:49 ? 0:02 /opt/csw/mysql4/libexec/mysqldI get a lot of information but I can't see which port number it runs on. /Alex
  2. Hi !I have a strange error with Oracle 10g R2.I run it on a Solaris 10 computer (Ultra 60 450MHz 1024 MB RAM).When I start all the services as usual as the user oracle I do like this:Database startup:sqlplus /nologSQL> connect / as sysdbaSQL> startupSQL> exitListener startup:lsnrctl startiSQL*Plus startup:isqlplusctl startThen there is a strange behavior of the iSQL*Plus service, when I close the shellwindow that is started the services from the iSQL*Plus servers shutdown. I assumeit does since I can no longer reach it. But the other serices continue to run as usual.I should mention that when I first installed oracle everyting was started up as a partof the installtion, but after some use the iSQL*Plus service got disabled so I reinstalledthe whole pakage. But when I booted the system before the reinstalltionI got some IP port error message at boot the first time, next time there was no error message.Could it be that there is another service running at the same port and there is some kindof conflict.Please let me know if anyone have had the same problem.A also wonder if there is a solaris command to see which services are running at which ports./Alex
  3. Hi !I wonder if anybody knows how to set up a DNS server on Solaris 10.I know that the service should be started with:# svadm enable network/dns/serverBut when I write:# svcs -l /network/dns/serverI get:fmri svc:/network/dns/server:defaultenabled falsestate disablednext_state nonestate_time Wed Sep 28 11:53:52 2005restarter svc:/system/svc/restarter:defaultdependency require_all/none file://localhost/etc/named.conf (absent)dependency require_all/none svc:/system/filesystem/minimal (online)dependency require_any/error svc:/network/loopback (online)dependency optional_all/error svc:/milestone/network (online)So it appears that I must set up the named.conf file. Though I haveno idea how to do that since there is no sample. So my questions are:1. Should it be placed in /etc/named.conf ?2. How is the syntax in the file ?3. What is the minimum requirements that I have to write in the file ?4. Is there any other stuff I have to do before I start the server ?5. What port will the server listen to ?You don't have to answer all of these questions if you can't, just some helpwould be nice./Alex
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.