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
------------------------------
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
------------------------------
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 - 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
------------------------------
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
------------------------------
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-loggingAudit 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.
------------------------------
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
------------------------------