Forum Discussion

Zahid_Haseeb's avatar
Zahid_Haseeb
Moderator
13 years ago
Solved

Any command from command prompt of SF for windows which tells SRL usage

Environment

OS = windows 2003 R@ SP2 (32bit)

SF = SFHA 5.1 SP2 R1         (32bit)

 

Query

I want to run a command from command line which can tells us the SRL status/Usage.

  • This means the SRL usage is 0 - if rlink was behind then it would say SRL has X bytes outstanding and give percentage - you can test this by downing network.  

    Note also, that vxrlink status will also show you if rlink is using DCM (if SRL overflows, or in autosync, or after running a takeover)

    To watch rlink catching up, then a good command to run is:
    vxrlink -i 5 status 

    so you can see how much the SRL or DCM is draining every 5 seconds.

    Mike

7 Replies

  • Have you had a look at 'vxrlink status' ?

    It also shows SRL status.

    Extract from VVR Admin Guide:

    Syntax for vxrlink status command

     

    vxrlink [-g <diskgroup>] [-r <rvg>] [-i <interval>] \[-t <timestamp>] [-T] status <rlink>
     
    Example:
    vxrlink -i1 -t 10 -T status rlink_sec_host
    The output resembles:
    4/6/2005 11:38:21 AM
    RLINK is up to date.
    RLINK is up to date.
    RLINK has 47 outstanding writes, occupying less than 1%
    (2994 Kbytes) of the
    Replicator Log.
    4/6/2005 11:38:31 AM
    RLINK has 101 outstanding writes, occupying less than 1%
    (6371 Kbytes) of the
    Replicator Log.
    RLINK rlink_sec_host is behind by 0 hrs 0 mins 15 secs
    with respect to primary
    RLINK is up to date.
    RLINK is up to date.
    4/6/2005 11:38:54 AM
    RLINK is up to date.
     
  • I am only able to see below after the command .    #vxrlink -g DG status RLINKname

     

    26-Nov-12 12:04:00

    RLINK is up to date.

  • This means the SRL usage is 0 - if rlink was behind then it would say SRL has X bytes outstanding and give percentage - you can test this by downing network.  

    Note also, that vxrlink status will also show you if rlink is using DCM (if SRL overflows, or in autosync, or after running a takeover)

    To watch rlink catching up, then a good command to run is:
    vxrlink -i 5 status 

    so you can see how much the SRL or DCM is draining every 5 seconds.

    Mike

  • Good idea to keep small cmd window open so that the command (with -i <sec>) can keep on running.
    (Similar to 'ping -t'  that we use to keep on pinging another machine.) 

    As you can see the sample output in the manual (with -i <sec> also gives 2 cycles of :
    RLINK is up to date.
    and then shows 
    outstanding writes in the next cycle  (meaning some activity occurred at this point in time).

  • But unfortunately that command should be run on Primary Node unlike Linux we can run the repstatus command on any Site Active Node

  • The fact that "vradmin repstatus" is not available in Windows is a pain and I don't know why this is the case.

    Mike