UNSOLVED

ladybug4

updated

15 years ago

L

ladybug4

1 Message

0

1513

September 20th, 2011 10:00

Querying to see what file systems has replication sessions

Has anyone used the nas_fs –query command to query which file systems has replication sessions?

I have a Perl script that is executing the following command with no results:

nas_fs  -query:name==prod.fs -format:'%q' -fields:replicationsessions -query:* -format:'%s\n' -fields:srcfsname

I run the same query returning the ID instead of srcfsname with a result. 

nas_fs  -query:name==prod.fs -format:'%q' -fields:replicationsessions -query:* -format:'%s\n' -fields:id

DART = 5.6.50.2

  • 696

    0

    Posted April 24th, 2012 03:00

    Hi,

    Let me try in a lab box and check this

    Thanks

    Vanitha

  • droche71

    11 Posts

    696

    0

    Posted January 6th, 2014 12:00

    Was there any resolve to this?

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    696

    0

    Posted January 8th, 2014 13:00

    Why?

    Original question was over two years ago

  • droche71

    11 Posts

    696

    0

    Posted January 8th, 2014 13:00

    My goal was to try and use nas_fs -query to give me data on the replicationsessions. What i learned was that there are only 6 tags that work for Replication V2 and the Replication V1 tags are still listed in the nas_fs query command because they were unable to remove them. At this point I will need to use the XML API to extract the data I need.

    ACL The Access Control List of the item

    CommunicationState The network communication state for remote replication
    ID The internal database ID of the item
    IsDstFlowCtrlActive Is the replication dst flow control active?
    IsSrcFlowCtrlActive Is the replication src flow control active?
    IsSynchronous  Is this synchronous replication?

  • McK

    12 Posts

    696

    2

    Posted January 8th, 2014 16:00

    Would the following help you?

    nas_replicate -report -fields name,networkStatus,curTransferTotalSizeKB,curTransferRemainSizeKB,curTransferEstEndTime,curTransferIsFullCopy

  • droche71

    11 Posts

    696

    0

    Posted January 9th, 2014 06:00

    Bingo McK! Thank you. This is EXACTLY what i needed

    This is what i really wanted

    nas_replicate -report -fields name,maxTimeOutOfSync

    And for a reference for the full set of fields:

    nas_replicate -report|head -1|cut -f 1- | tr ',' '\n'

    "id"

    "name"

    "object"

    "remoteSystem"

    "dartInterconnect"

    "peerInterconnect"

    "localRole"

    "sourceMover"

    "sourceInterface"

    "destinationMover"

    "destinationInterface"

    "isCopy"

    "destinationDataPort"

    "destinationControlPort"

    "sourceControlPort"

    "sourceStatus"

    "destinationStatus"

    "networkStatus"

    "maxTimeOutOfSync"

    "lastSyncTime"

    "curTransferRateKB"

    "curReadRateKB"

    "curWriteRateKB"

    "curTransferTotalSizeKB"

    "curTransferRemainSizeKB"

    "curTransferEstEndTime"

    "curTransferIsFullCopy"

    "curTransferSourceDataPort"

    "prevTransferRateKB"

    "prevReadRateKB"

    "prevWriteRateKB"

    "avgTransferRateKB"

    "avgReadRateKB"

    "avgWriteRateKB"

    "sourceFilesystem"

    "destinationFilesystem"

    "sourceVdm"

    "destinationVdm"

    "sourceLun"

    "destinationLun"

    "sourceTarget"

    "destinationTarget"

    "appData"

    "latestSrcSnap"

    "latestDstSnap"

    "curTransferSnap"

    "waitingSnaps"