[SOLVED] SunOS 5.10 Netstat monitoring/logging help
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm looking for some assistance with logging connections to a server. I need to know when a connection is established and from where. It would be great if protocol or what the connection is for could also be logged.
My end goal is to identify what servers are connecting to this server and what they are doing. This server acts as our NAS and I need to do some maintenance and don't want to take it down during high traffic times. I also need to notify the other server owners to suspend any jobs that connect during the maintenance window.
Replace SS_TCP_FAST_ACCEPT by SS_DIRECT if you got an error about the former being undefined.
Thank you, and this worked great on the DEV box, but on the PROD server there is no /user/bin/ksh only /usr/bin/sh. Any hints to convert this to work in that shell?
This is the response:
Code:
./connections.sh: syntax error at line 87: `(' unexpected
I've tried removing the parenthesis it's referring to, but as expected that caused another error:
Code:
./connections.sh: print: cannot open
I tried escaping the parenthesis to see if that would do the trick, but no dice again:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.