Skip to main content

View activity on a specific port

  • December 18, 2021
  • 7 replies
  • 0 views

Nelson Schroth
Are there any UniVerse utilities that would show the commands run from a specific port?  When certain problems arise, this would be a great troubleshooting tool.
  • One scenario would be to track activities from TCL at that port.
  • Another scenario would be to track activities run from the initial TCL-launched programs
  • It would also be helpful to have the date and time of those commands. 
  • If not a utility, what U2 BASIC functions/commands exist that might be utilized in a monitoring program?
Thanks in advance for any feedback.

Nelson

------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------

7 replies

Manu Fernandes
Forum|alt.badge.img+2
  • Inspiring
  • 257 replies
  • December 18, 2021
Are there any UniVerse utilities that would show the commands run from a specific port?  When certain problems arise, this would be a great troubleshooting tool.
  • One scenario would be to track activities from TCL at that port.
  • Another scenario would be to track activities run from the initial TCL-launched programs
  • It would also be helpful to have the date and time of those commands. 
  • If not a utility, what U2 BASIC functions/commands exist that might be utilized in a monitoring program?
Thanks in advance for any feedback.

Nelson

------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------
Hi

Try PORT.STATUS PID 99 LAYER. STACK

I hope this help.

------------------------------
Manu Fernandes
------------------------------

Neil Morris
  • Rocketeer
  • 207 replies
  • December 19, 2021
Are there any UniVerse utilities that would show the commands run from a specific port?  When certain problems arise, this would be a great troubleshooting tool.
  • One scenario would be to track activities from TCL at that port.
  • Another scenario would be to track activities run from the initial TCL-launched programs
  • It would also be helpful to have the date and time of those commands. 
  • If not a utility, what U2 BASIC functions/commands exist that might be utilized in a monitoring program?
Thanks in advance for any feedback.

Nelson

------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------
You might consider looking at the security subroutine feature of the "R"emote VOC type entry. While the security subroutine can be used to allow or restrict access to a particular TCL command, it could also be used to log  which users are accessing specific commands. And since the security subroutine is a BASIC program, the current time and date can also be recorded as part of the log. Hope this helps.

------------------------------
Neil Morris
Universe Advanced Technical Support
Rocket Software
------------------------------

Nelson Schroth
  • Author
  • Participating Frequently
  • 43 replies
  • December 20, 2021
Hi

Try PORT.STATUS PID 99 LAYER. STACK

I hope this help.

------------------------------
Manu Fernandes
------------------------------
Manu - thanks for the brain refresh on "port.status".  Problem is, when I run any variation using PID, PORT or LAYER.STACK, it always comes back with  "Unknown option specified.".  I am going to Unix using the "SH" command on one of my three wIntegrate sessions.

Examples:
$ port.status USER nschroth

There are currently 3 uniVerse sessions; 3 interactive, 0 phantom

Pid.... User name. Who. Port name..... Last command processed............
15926004 nschroth 7 /dev/pts/7 HELP PORT.STATUS
18285054 nschroth 8 /dev/pts/8 SH
18285072 nschroth 9 /dev/pts/9 PORT.STATUS

$ port.status PORT 7
Unknown option specified.

$ port.status PID 15926004
Unknown option specified.

$ port.status pid 15926004 LAYER.STACK
Unknown option specified.

If I log to UNIX as "root", even the user command fails???

# port.status USER nschroth
Unable to open VOC file.
#

Am I missing something like an environment setting?

Nelson



------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------

Manu Fernandes
Forum|alt.badge.img+2
  • Inspiring
  • 257 replies
  • December 20, 2021
Manu - thanks for the brain refresh on "port.status".  Problem is, when I run any variation using PID, PORT or LAYER.STACK, it always comes back with  "Unknown option specified.".  I am going to Unix using the "SH" command on one of my three wIntegrate sessions.

Examples:
$ port.status USER nschroth

There are currently 3 uniVerse sessions; 3 interactive, 0 phantom

Pid.... User name. Who. Port name..... Last command processed............
15926004 nschroth 7 /dev/pts/7 HELP PORT.STATUS
18285054 nschroth 8 /dev/pts/8 SH
18285072 nschroth 9 /dev/pts/9 PORT.STATUS

$ port.status PORT 7
Unknown option specified.

$ port.status PID 15926004
Unknown option specified.

$ port.status pid 15926004 LAYER.STACK
Unknown option specified.

If I log to UNIX as "root", even the user command fails???

# port.status USER nschroth
Unable to open VOC file.
#

Am I missing something like an environment setting?

Nelson



------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------
Hi

To use PORT.STATUS you must be in UV account. 

Or

You COPY the keywords of the PORT. STATUS from UV VOC to CURRENT VOC (PORT, USERNO, PID, LAYER.STACK,etc)

Regards

------------------------------
Manu Fernandes
------------------------------

Nelson Schroth
  • Author
  • Participating Frequently
  • 43 replies
  • December 20, 2021
Hi

To use PORT.STATUS you must be in UV account. 

Or

You COPY the keywords of the PORT. STATUS from UV VOC to CURRENT VOC (PORT, USERNO, PID, LAYER.STACK,etc)

Regards

------------------------------
Manu Fernandes
------------------------------
Thanks again Manu for reminding me to read the 1st sentence in the manual!  UV account, of course.

------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------

  • 0 replies
  • January 7, 2022
Are there any UniVerse utilities that would show the commands run from a specific port?  When certain problems arise, this would be a great troubleshooting tool.
  • One scenario would be to track activities from TCL at that port.
  • Another scenario would be to track activities run from the initial TCL-launched programs
  • It would also be helpful to have the date and time of those commands. 
  • If not a utility, what U2 BASIC functions/commands exist that might be utilized in a monitoring program?
Thanks in advance for any feedback.

Nelson

------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------
Nelson,

You could also take a look at AUDIT, though it may be overkill for the specific requirement:
https://www.rocketsoftware.com/resource/rocket-universe-audit-logging

Audit logging also provides a logging API so that application code can create its own audit trail of selected events - and these can be as general or circumstance-specific as can be crafted in BASIC.


------------------------------
John Jenkins
Principal Technical Support Engineer
Rocket Software Limited
U.K.
------------------------------

Chuck Stevenson
  • Participating Frequently
  • 54 replies
  • January 27, 2022
Are there any UniVerse utilities that would show the commands run from a specific port?  When certain problems arise, this would be a great troubleshooting tool.
  • One scenario would be to track activities from TCL at that port.
  • Another scenario would be to track activities run from the initial TCL-launched programs
  • It would also be helpful to have the date and time of those commands. 
  • If not a utility, what U2 BASIC functions/commands exist that might be utilized in a monitoring program?
Thanks in advance for any feedback.

Nelson

------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------
I am posting an enhancement request related to what is discussed here.  To capture the call return stack when an event is written to uv\\errlog.
I hope others like the idea & give some support.  See "Universe Enhancement Request for uv/errlog - Return Stack".
thx

------------------------------
Chuck Stevenson
DBA / SW Developer
Pomeroy
San Ignacio BZ
------------------------------