Rocket U2 | UniVerse & UniData

 View Only
  • 1.  View activity on a specific port

    Posted 12-18-2021 15:52
    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
    ------------------------------


  • 2.  RE: View activity on a specific port

    PARTNER
    Posted 12-18-2021 16:58
    Hi

    Try PORT.STATUS PID 99 LAYER. STACK

    I hope this help.

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



  • 3.  RE: View activity on a specific port

    Posted 12-20-2021 11:48
    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
    ------------------------------



  • 4.  RE: View activity on a specific port

    PARTNER
    Posted 12-20-2021 13:46
    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
    ------------------------------



  • 5.  RE: View activity on a specific port

    Posted 12-20-2021 15:58
    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
    ------------------------------



  • 6.  RE: View activity on a specific port

    ROCKETEER
    Posted 12-19-2021 12:48
    Edited by Neil Morris 12-19-2021 12:48
    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
    ------------------------------



  • 7.  RE: View activity on a specific port

    ROCKETEER
    Posted 01-07-2022 10:49
    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.
    ------------------------------



  • 8.  RE: View activity on a specific port

    Posted 01-27-2022 11:28
    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
    ------------------------------