Operating System - OpenVMS
1748271 Members
4155 Online
108760 Solutions
New Discussion юеВ

logging for services in TCPIP for VMS

 
SOLVED
Go to solution
J David Ashton
New Member

logging for services in TCPIP for VMS

I have a locally defined service for which I would like to enable logging. Unfortunately I don't have a doc set for TCPIP Services and the on-line help isn't helping much. I see the "set service /log_options=" command in the on-line help but no mention of how to define the location/name of the log file and if I need to bounce the service to activate the log.
Thanks for any & all assistance,

Dave
7 REPLIES 7
Steven Schweda
Honored Contributor
Solution

Re: logging for services in TCPIP for VMS

It seems to be missing from the HELP ("HP
TCP/IP Services for OpenVMS Alpha Version
V5.4 - ECO 6"), but there seem to be hints
in SYS$MANAGER":TCPIP$CONFIG.COM, like:

/log=(file:sys$sysdevice:[TCPIP$bootp]TCPIP$bootp_run.log, all)

so I'd guess it's actually

/LOG_OPTIONS = FILE: log_file_spec

> [...] if I need to bounce the service [...]

I don't know, but I'd assume so. One way to
find out...
Barry Alford
Frequent Advisor

Re: logging for services in TCPIP for VMS

You can browse the HP TCP/IP Services for OpenVMS documentation at:

http://h71000.www7.hp.com/doc/tcpip56.html

..in HTML or PDF format.
Barry Alford
Frequent Advisor

Re: logging for services in TCPIP for VMS

Sorry, I just looked at the doc and it doesn't mention FILE:... either!

SET SERVICE
/LOG_OPTIONS=
[ [NO]ACCEPT ]
[ [NO]ACTIVATE ]
[ [NO]ADDRESS ]
[ [NO]ALL ]
[ [NO]CONNECT ]
[ [NO]DEACTIVATE ]
[ [NO]ERROR ]
[ [NO]EXIT_CLEANUP ]
[ [NO]LOGIN ]
[ [NO]LOGOUT ]
[ [NO]MODIFY ]
[ [NO]REJECT ]
Sets the specified logging options for the service you are configuring.
The logging options have the following meanings:
Option Meaning
[NO]ACCEPT Message is logged when a request is accepted.
[NO]ACTIVATE Message is logged when the service is activated.
[NO]ADDRESS For auxiliary server messages and OpenVMS security
events, the message displays the IP address as a host
name. If host names are not relevant, HP recommends
that you specify [NO]ADDRESS.
[NO]ALL Messages are logged for all events.
[NO]CONNECT Message is logged when the auxiliary server issues a
connect request back to the client. The services that
usually make this request (on a second socket) are
remote shell and remote execute.
[NO]DEACTIVATE Message is logged when the service is being
deactivated.
[NO]ERROR Message is logged when an error is detected while
processing a request to the service.
[NO]EXIT_CLEANUP Message is logged when the service fails to complete
startup (that is, the server did not assign the BG
device, with logical name SYS$NET, or did not issue a
C socket before exiting).
[NO]LOGIN Message is logged when a connected terminal server
accepts a remote login request.
[NO]LOGOUT Message is logged when a connected terminal server
terminates a connection.
[NO]MODIFY Message is logged when the active service is being
modified.
[NO]REJECT Message is logged when a request is rejected.
Steven Schweda
Honored Contributor

Re: logging for services in TCPIP for VMS

When in doubt, I say, see how the experts do
it (SYS$MANAGER:TCPIP$CONFIG.COM).
Andy Bustamante
Honored Contributor

Re: logging for services in TCPIP for VMS


Depending on your objective and version of TCPIP, TCPTRACE or TCPDUMP provide very detailed logs.

These are capture utilities, see the TCPIP Doc set at http://h71000.www7.hp.com/doc/tcpip56.html for more information. You can use Ethereal or the follow on Wireshark http://www.wireshark.org/ to view and manipulate the capture files.

Andy
If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
J David Ashton
New Member

Re: logging for services in TCPIP for VMS

Thanks for the responses!!

Andy, your first response was spot on!! And, just FYI: the service does need to be bounced to have the logging change take affect. Thanks also for the pointer to tcptrace and tcpdump. I have been using the tcptrace utility but didn't know about tcpdump.
Thanks again,
Dave
J David Ashton
New Member

Re: logging for services in TCPIP for VMS

Oops. Sorry!! I meant that Steven's first response... And thanks to Andy for the info on TCPTRACE & TCPDUMP.
Too early in the AM... ;-)