Non-Standard Time format

SS2008 R2
I have to store and manipulate data from a new phone system.  Some of the columns are "Time" interval.  So while they behave like a SS "Time" data type they can hold a value greater than 24 hours (ex. 25:10:33) . 
This causes SS to blow, of course. 
So I was wondering how I should handle this.  I thought about storing the value as a string, and using a group of functions or stored procs or views to interpret the string in a way that the users can still report the numbers.  dd:hh:mm:ss 
. Or perhaps interpret the string as the row is stored and store it elsewhere.
But I am not sure.
Any suggestions?
Michael

That's not a time by SQL Server definitions. It's only ever going to be a string. You can fix it with this:
DECLARE @dodgyTimeStrings TABLE (timestring VARCHAR(10))
INSERT INTO @dodgyTimeStrings (timestring)
VALUES ('25:58:23'),('23:58:23'),('99:58:23'),('24:58:23')
SELECT *,
CASE WHEN LEFT(timestring,CHARINDEX(':',timestring)-1) > 23 THEN LEFT(timestring,CHARINDEX(':',timestring)-1) / 24 ELSE 0 END AS timeDays,
CASE WHEN LEFT(timestring,CHARINDEX(':',timestring)-1) > 23 THEN LEFT(timestring,CHARINDEX(':',timestring)-1) % 24 ELSE LEFT(timestring,CHARINDEX(':',timestring)-1) END AS timeHours,
SUBSTRING(timestring,CHARINDEX(':',timestring)+1,2) AS timeMinutes,
RIGHT(timestring,CHARINDEX(':',REVERSE(timestring))-1) AS timeSeconds
FROM @dodgyTimeStrings
Just fix it on import, and do with it as you must. For example, adding the value to a startDateTime type column:
DECLARE @dodgyTimeStrings TABLE (timestring VARCHAR(10), startDateTime datetime)
INSERT INTO @dodgyTimeStrings (timestring, startDateTime)
VALUES ('25:58:23','2014-07-01 18:00:00.00'),('23:58:23','2014-07-01 18:00:00.00'),('99:58:23','2014-07-01 18:00:00.00'),('24:58:23','2014-07-01 18:00:00.00')
SELECT *, DATEADD(SECOND,timeDurationSeconds,startDateTime)
FROM (
SELECT *,
CASE WHEN LEFT(timestring,CHARINDEX(':',timestring)-1) > 23 THEN LEFT(timestring,CHARINDEX(':',timestring)-1) / 24 ELSE 0 END AS timeDays,
CASE WHEN LEFT(timestring,CHARINDEX(':',timestring)-1) > 23 THEN LEFT(timestring,CHARINDEX(':',timestring)-1) % 24 ELSE LEFT(timestring,CHARINDEX(':',timestring)-1) END AS timeHours,
SUBSTRING(timestring,CHARINDEX(':',timestring)+1,2) AS timeMinutes,
RIGHT(timestring,CHARINDEX(':',REVERSE(timestring))-1) AS timeSeconds,
((CASE WHEN LEFT(timestring,CHARINDEX(':',timestring)-1) > 23 THEN LEFT(timestring,CHARINDEX(':',timestring)-1) / 24 ELSE 0 END * 24) * 3600) +
(CASE WHEN LEFT(timestring,CHARINDEX(':',timestring)-1) > 23 THEN LEFT(timestring,CHARINDEX(':',timestring)-1) % 24 ELSE LEFT(timestring,CHARINDEX(':',timestring)-1) END * 3600) +
(SUBSTRING(timestring,CHARINDEX(':',timestring)+1,2) * 60) +
RIGHT(timestring,CHARINDEX(':',REVERSE(timestring))-1) AS timeDurationSeconds
FROM @dodgyTimeStrings) a

Similar Messages

  • Non standard time windows

    Hi All,
    I am wondering about the best way to implement some non standard TW like biweekly frequency.
    In this case (biweekly), I think I can create a TW with 2 different TW intervals, one for the first 15 days and another for the remaining 15 days.
    What is your point of view ?
    Regards,
    Yi Jiang

    Hi Yi,
    In principle submit frames define the frequency of the job and time windows define the allowed start times.
    However if you have a somewhat irregular time window, then of course both objects (submit frame & time window) come into play.
    For the simple scenario, an exact biweekly schedule, I'd create a submit frame of "every 14 days" and then plan jobs using this submit frame and optionally a time window (for instance to fix the starttime of the process, or to use the "fit in time window" property).
    If the process is not entirely biweekly, but almost, f.i. 1st of the month & 15th of the month, then yes, a time window with two elements (one for each of the options) is the easiest. The submit frame should then be shorter than or equal to the shortest gap in the time window, in this example you could take two weeks (that would work out just right even in February with 28 days).
    Regards,
    Anton.

  • Name for standard time format?

    Is there an official name that describes the Java standard time representation?
    I think Java standard time defines two important things and I wish I could refer to them with a single, short, accurate name. The two things the standard defines are:
    1) An epoch from which time is measured. The epoch is midnight, Jan 1st, 1970 AD, GMT.
    2) The standard form of expressing time is in milliseconds (not seconds, not days) since the epoch.
    Everytime I write a document telling someone that a time will be or should be expressed in this way, I have to write a description.
    "express time in millis since midnight jan 1st, 1970 AD"
    Is there an official (and much shorter) way of saying the same thing? The UNIX time standard, on which this is based, also seems to not have a name. The POSIX time standard seems to be wrong in that it doesn't handle leap years correctly.
    By contrast, it is easy to find a half-dozen web-sites that can tell you, definitely, what a Julian date is. The Julian date standard defines both an epoch (noon on jan 1st 4713 BC) and a standard way of expressing time as days since the epoch and fractions of days since the epoch.
    Can anyone help me out? Is there an official name? Can we bestow one? Java Standard Time would be fine with me, but it won't work if I'm the only using it.

    I don't think it really needs a name. Within Java we
    can just say time in milliseconds and assume the
    standard origin.Yeah, I agree with you, but I'm not really sure it would help the original poster to just assume that the origin is standard. Have you ever noticed how many people post questions about java.util.Date that are caused by a total inablity to understand that the class is nothing more then a wrapper for a time elapse ('how do I swtich the month to Januaray, why is the system time a huge number')? People new to programming seem to have a hard time understand dates as a distance from some origin in time, rather then a calendar expression, and Sun compounded the problem by including those deprecated calendar-specific methods in the original API (creating the impression that it is a calendar class). I don't think any one but senior level programmers will be able to sense the implied origin, even though your point that all computer dates use that epoch as a standard origin is correct.

  • Non-standard date format yyyymdd in holiday calendar?

    Hello,
    I currently implement the Mozilla Dutch Holiday calendar http://www.mozilla.org/projects/calendar/caldata/DutchHolidays.ics on iPhones, iPads, Thunderbird with Lightning and Android-based telephones.
    That calendar contents show up in the iPhones, iPads and Thunderbirds. But a number of different apps on the Android telephone either show nothing or report an invalid date format used in that file. At first I assumed that there was some error in those apps. But one of the creators informed me that according to the specification as shown in http://www.kanzaki.com/docs/ical/date.html the date format in that Mozilla Holiday Calendar is not according to the spec. It contains dates in the format 4-1-2 instead of 4-2-2.
    Here is one I found. I did not try to find all of them.
    DTSTART;VALUE=DATE:2010828
    DTEND;VALUE=DATE:2010829
    Will this be corrected?
    Thank you for your help.
    Best regards

    Now we are into territory I am unfamiliar with, so I looked around.
    Looks like first file a bug. https://bugzilla.mozilla.org/
    I suggest copying product etc from this bug. https://bugzilla.mozilla.org/show_bug.cgi?id=953257
    seek advice there in exactly what to do, but it looks like uploading a corrected ICS is about it.
    You might add the module owner to the bug https://wiki.mozilla.org/Modules/All#Calendar

  • Is it possible to load a non-standard image using some Java API?

    Hi,
    My "problem" is:
    1. I have an image called "mediterranean_sea.IMG" (non-standard image format)
    2. I need to process it (histogram, palette, etc).
    3. I'm wondering if it is possible to load this image an process it using some Java API.
    4. I've tried to do this using JAI but I think that this API only works with TIFF, PNG, JPEG, etc.
    Any idea?
    Thanks in advance,
    Roger

    [url http://forum.java.sun.com/thread.jsp?thread=468188&forum=31]Cross-post

  • CONVERT TIME IN HOURS INTO STANDARD TIME.

    Hi All,
              I have time in standard time format for Ex. 07:00:00 . And I want to add 4 hours and 30 min into that time. That means after adding my output I want like this 11:30:00. That means time is now 11 pass 30 min 00 seconds.......Plz tell how to do this............
    Regards.
    Pradip Pawar

    Hi Pradip,
    you can do it by the way Anji told you.
    I didn't try but guess
    what will be the result of '<b>21:00:00</b>' and '<b>04:30:00</b>'  ?
    Declare variable time1 , time2 and time3...
    Time1 = '21:00:00'.
    Time2 = '04:30:00'
    Time3 = Time1 + Time2.
    write /  Time3 USING EDIT MASK'__:__:__'.
    See the output...
    For getting solution of this problem...
    You should convert the time into SECONDS for both time valuse
    Then add those seconds
    Then again convert it into HH:MM:SS...
    Hope it will help you
    Please correct me if i am wrong.
    <b>Reward Points if it is helpful.</b>
    Thanks & Regards
    ilesh 24x7

  • How To: Use FCPX to create iPhone Portrait Movies (and other non-standard formats)

    Goal: Use Final Cut Pro X 10.0.7 to produce a 640x1136 video (iPhone 5 Portrait). You can use these same steps to produce virtually any dimensions you want. My example is for the iPhone 5, in Portrait mode.
    This information is available in various places, but you have to realy work to find it, so I thought I'd post a step-by-step guide here.
    By the way, you might think you could just create a FCPX Project with your desired dimensions, but you can't (at least with 10.0.7). Projects only support certainly dimensions. But there are other ways, as the rest of this post describes:
    1) Create an initial movie with the desired dimensions, to serve as a template. We'll call it "Template.mov". The only thing that matters is the dimensions. It can be in any codec FCPX understands, and virtually any length.
    I'm using a 2 second video shot on my iPhone for the template. You could also create a blank image (.png, whatever) with the proper dimensions, copy and paste it into a new Quick Time Pro 7 window, and Export it using custom settings. There's lots of different ways to do this.
    2) Drop Template.mov into a FCPX event.
    3) Select Template.mov in the Event browser, and select File->Duplicate (or command-D). You probably could just edit "Template.mov", but it's a good idea to save it for reuse.
    3) Change the name of the copied video. I'm using "iPhone Video".
    4) Right-click "iPhone Video" and select "Open in Timeline".
    5) If you made the Template video from a still image, you may need to change the duration (ctrl+D). You don't have to make it very long, but it needs to be longer than 1 frame. A few seconds should be enough.
    6) Use this timeline like you'd use a project's timeline. Drop in new content, trim, transition, etc. There may be things you can't do in it, but I haven't found any yet. I'm guessing Chapters may not work, but I haven't tried them.
    7) Note that when you drop new content into the timeline, it may size funny. That's because the default setting for "Spacial Conform" is "Fit". Simply select the newly-dropped content, and in the Video settings inspector, scroll down to "Spacial Conform" and change it. You could use "Fill", which fills the frame vertically, or "None", which uses the source's original height. Then crop/transform/whatever to get what you want.
    8) When you're ready to render, select "iPhone Video" in the Event browser, then use the "Share" button. You want to use the "Export File" destination, which you may have to add. Pick your codec, and let 'er rip.
    9) When the rendering is done, you should have a video in your desired dimensions.
    That's all there is to it. Hope this helps someone.
    Dan
    PS: Don't ask why someone would want to create an iPod video using FCPX. The point is that you may need to create a video with non-standard  dimensions at some point in time, and this is how to do it.
    PPS: Most of this information came from http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial. I just wrote it down, while I tried to do what the video suggested.

    Instructions for using QuickTime Pro 7 to create a template video with unusual dimensions.
    I suspect that anyone savy enough to be using FCPX has probably already figured out how to do this, either using my technique or another, so there probably isn't a real need for me to post this. For that matter, I may be the only person who cares about this at all. However, while I was trying to learn how to do all of this, I would have really appreciated having all the information in one place, so here goes.
    If you want to create a video with unusual dimensions (like 640x1136) using my steps above, you'll need a "template" video first. Here's an easy way to create one, using any image editor, and QuickTime Pro 7.
    1) Open QuickTime Pro 7 (QTP for short).
    2) From the menu, select File->New Player. You'll get a window with just the bottom portion of the player, i.e. the playback controls.
    3) Using an image editor, create a still image in the desired dimensions. You can use any image editor. It doesn't matter what the image contains (although it will end up showing as a thumbnail in FCPX).
    4) Copy the image to the clipboard.
    5) Switch back to QTP, and paste the image into the new player. Don't worry that there isn't a video window showing - just paste it into the window that has only playback controls. As soon as you do, the video window appears.
    6) Advance to the end of the movie (the short, 1-frame movie), then hold down Command+V (paste) and keep holding it down to paste multiple images in. Watch the time advance. You could, if you want, just hold down Command+V until you get the length you want. But if you want a long video, there's an easier way:
    7) When you reach a few seconds (or whatever duration your patience allows), select all (Command+A) and copy (Command+C). Then hold down Command+V to keep pasting in the longer clips. Wait until you reach a longer duration, then repeat the process. So, for example, 1 second, then 10 seconds, then 1 minute, then 10 minutes, then 1 hour. Or whatever you want.
    8) Save the video however you want. I usually use File->Export with H.264, with Quality set to "Least". Just make sure you don't let it change the dimensions. If you resized the player window, depending on which "save" or "export" method you've chosen, it might default to the resized dimensions, so double check that to make sure.
    That's it. You now have a template video you can use with my previous post(s).
    Dan

  • Please let me know the sample format of the standard time characterstics..

    Hi Please let me know the sample format of the standard time characterstics..
    Calendar Day-0CALDAY-->
    Calendar Year/Month-->
    Calendar month-->
    Quarter  -->
    Calendar year/quarter-->
    Calendar Year/Week-->
    Calendar Year-->
    Fiscal year / period-->
    Posting period-->
    Fiscal year variant-->
    Fiscal year-->
    Halfyear-->
    Weekday-->
    When coming to format of 0calday i am confused whther to use  20111024 (or) 20112410
    Thanks...all

    HI
        check the link
    http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/content.htm
    Format
    EUR
    'DD.MM.YYYY'
    INTERNAL
    'YYYYMMDD'
    ISO/JIS
    'YYYY-MM-DD'
    USA
    'MM/DD/YYYY'

  • How to get system time format in time stamp

    Hello All,
    I have one problem regarding Time stamp. I want system time stamp format in Time control. If my system date/time format change then automatically my time stamp format should also change.If my system Time stamp format is hh:mm:ss AM/PM dd/mm/yy so in my LabVIEW time stamp format should also same. If System time stamp format hh:mm:ss AM/PM mm/dd/yyyy so in my LabVIEW time stamp format should also same.
    So Please help me its a very important for my automation application.
    Thank You.
    Vinal Gandhi
    Kudos are always Welcome.... :-)
    Vinal Gandhi, CLD
    Software Engineer

    Hi Vinal,
    have you tried the FormatDateTimeString function with a standard string indicator and the "%c" formatcode as described in the help instead of the generic timestamp indicator?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Hiding non-working time in Team Planner View

    Hello there.  The tasks in my project are typically between 2-5 hours over a week period.  In Team Planner View, I'm hoping to provide a better representation of free time between tasks by making my bottom tier hours in a 4 hour count.  However,
    decreasing the scale forces the Task names become cut off when the event itself shrinks.
    I was hoping to remove the non-working time (i.e., nights and weekends) from the Team Planner view to enable a better view.  I'm aware that the capabilities of Team Planner View seem to be limited, but is this type of formatting at all possible?
    Thanks for the help,
    Joe

    Joe --
    After I created my response and posted it, I wondered whether you wanted to completely remove the nonworking time periods.  This is not possible.  The best you can do is to remove the shading for nonworking time periods, but you cannot remove them
    entirely in any view.  Hope this helps.
    Dale A. Howard [MVP]

  • AV output and non-standard frame sizes

    I usually work in non-standard frame size for my FCP projects because my final output will be in a 2:35:1 ratio. I use a Blackmagic Ultrastudio Mini Monitor as an HDMI output to a client monitor. Up until a few months ago the AV output of FCPX would allow the Mini Monitor to accept a frame size of 1920x818 and letterbox the output to 16x9 on this consumer grade LCD. One day, this just stopped working... I've reached out to Blackmagic and they have no solution or reason why this happened, and are not willing to offer support since what I was achieving wasn't an "officially supported" feature. Now, the AV output will distort the image vertically to fill a 16x9 frame. At this point I am stuck having to use either a matte layer or a widescreen effect on individual clips to output correctly to my monitor which increases edit time having to re-render any edits underneath the matte and having to re-order the letterbox effect after apply color correction etc. It was also very easy to adjust the frame offset with this wide angle project size.
    Is anyone editing in 2:35:1 (or other cinema standard) projects and getting successful conversion on output? What are you using?
    Cheers,
    Matt

    Thanks Tom, you clarified it .......  or at least something clicked in my brain.
    I was trying to set "Custom" when I created the new project.
    I didn't know, or had forgotten, that in the "error" window I could select "Custom".
    All is now well and FCP X 10.1.1 is pretty clever after all!
    There is one weird thing I'd like to mention.
    When I clicked on "Custom" the 960 x 600  frame dimensions appeared but the  frame rate was listed as 23.98p as shown in the screenshot below.
    So what's wrong with that?
    Well the clip is 30p  and I naturally thought I was going to end up with a project with an incorrect frame rate.
    Now here's the funny thing  .........  when I selected the project and viewed it in the Inspector it was the correct 30p
    So why was I given that worrying piece of misinformation.

  • How to change date and time format

    Hi experts,
    Can i know how to change the date and time format?
    I want the date format to be dd-mmm-yyyy  and time format to be hh:mm:ss
    These date and time is in my sapscript form.
    I make use of PERFORM function in sapscript.
    This is the code in my print program.
    FORM get_actlog_QA TABLES in_tab STRUCTURE itcsy
                           out_tab STRUCTURE itcsy.
       DATA: object TYPE string, "
            qaname LIKE JCDS-USNAM, "NAME for engineering process, QA Manager
            qadate LIKE JCDS-UDATE, "DATE changed in engineering process, QA Manager
            qatime LIKE JCDS-UTIME. "TIME changed in engineering process, QA Manager
    DATA: lt_jcds type standard table of jcds,
          wa_jcds like line of lt_jcds,
          new_date(10) type c.
      READ TABLE in_tab INDEX 1.
      MOVE in_tab-value TO object.
      select * into CORRESPONDING FIELDS OF TABLE lt_jcds
      from jcds WHERE objnr = object
        AND  ( stat = 'E0005' )
        AND inact = ''.
      Loop at lt_jcds into wa_jcds.
          qaname = wa_jcds-USNAM.
          qadate = wa_jcds-UDATE.
          qatime = wa_jcds-UTIME.
       READ TABLE out_tab INDEX 1.
       MOVE qaname TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
       READ TABLE out_tab INDEX 2.
       MOVE qadate TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
       READ TABLE out_tab INDEX 3.
       MOVE qatime TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
      endloop.
      clear wa_jcds.
      ENDFORM. 
    This is my PERFORM in sapscript.
    /:           DEFINE &V_QANAME& = ''.
    /:           DEFINE &V_QADATE& = ''.
    /:           DEFINE &V_QATIME& = ''.
    /:           PERFORM GET_ACTLOG_QA IN PROGRAM ZFIR002
    /:           USING &VIQMEL-OBJNR&
    /:           CHANGING &V_QANAME&
    /:           CHANGING &V_QADATE&
    /:           CHANGING &V_QATIME&
    /:           ENDPERFORM.                     
    Sapscript
    Prepared by : &V_QANAME& ,, &V_QADATE& ,, &V_QATIME&
    The output now is
    Prepared by: Name   20080312  115536 
    I want to change the date format to 12-MAR-2008
    and the time format to 11:55:36 
    Can anyone please suggest on how to solve this?
    Thank you.

    Hi,
      Before assigning the  QADATE value you can write the logic to display  20080312   as  12-MAR-2008  taking the offset values .
    Like
    qadate = wa_jcds-UDATE.
    qatime = wa_jcds-UTIME.
      lw_year    = qadate(4).
      lw_month = qadate+4(2).
      lw_date    = qadate+6(2).
    case lw_month.
    when 1.
    when 2.
            concatenate lw_date  '-FEB-'  lw_year into qadate.
    when 3.
          concatenate lw_date '-MAR-' lw_year into qadate.
    endcase.
    READ TABLE out_tab INDEX 2.
    MOVE qadate TO out_tab-value.
    MODIFY out_tab INDEX sy-tabix.
    And you can also change the timeformat also  .
    then assign that value to qatime .Then
    READ TABLE out_tab INDEX 3.
    MOVE qatime TO out_tab-value.
    MODIFY out_tab INDEX sy-tabix.
    I think this helps you.
    Regards,
    Rajitha.

  • How I can set the Non-standard option of -Xmxn of jvm

    Hi there,
    Can any one tell me how I can set the Non-standard option of -Xmxn of jvm (setp by step).Iam using Sun's jvm(jdk1.2.2).Iam facing a error(java.lang .OutOfMemory).I want to set the maximum size of the memory allocation pool.Any help will be highly appreciated.
    Thanks for ur valuable Time
    Bikash

    you can use the following sample options to specify memory size.
    EX:java -Xms128mb -Xmx512mb myClassFile

  • MSI, please stop using non-standard keyboard layouts.

    God dam it MSI, why do you insist on messing with layout of the bottom row of the keyboard?
    You get everything else right, but for some reason when it comes to the bottom row of keys you want to say "Industry standards? 20 years of tradition? Fack that, we're gonna move things around for no facking reason."
    Explain to me why you feel the need to put a superfluous "\" key on the keyboard to the right of the space bar. Nobody wanted that, nobody was asking for that, nobody needs that. Why the hell did you do that?
    Explain why the Menu key is missing in action.
    Explain why you put the Windows key on the wrong side. And while you're at it, explain why you thought this clusterfack of having that second "\" key there in combination with the missing menu key being not where it is on top of the Windows key being in the wrong place was a good idea.
    Bottom row of a standard keyboard layout goes like this:
    Ctrl, Fn, Alt, Win, Space bar, Alt, Win, Menu, Ctrl.
    MSI layout goes like.
    Ctrl, Fn, Alt Space Bar, \, Alt Gr, Win, Ctrl!
    WHY?!   
    MSI seems to think that having the keys in the right place so my fingers will know where they are without having to learn key placement all over again is a horrible idea. Instead they seem to think that my fingers should need to relearn the god dam keyboard all over again for no reason at all.
    But hey, at least the kept the numpad the same, right?
    GOD DAM IT MSI!
    Aparantly MSI logic works like this:
    Everyone uses the numpad.
    Nobody uses the trackpad to game.
    Delete that numpad that everyone uses, insert fancy trackpad that nobody will use.
    Profit?
    What the hell are you people smoking?
    Seriously, when is the last time you gamed on a PC with anything other than a mouse in your right* hand? Do you ever use the trackpad when you game? Ever? I own two laptops and I never, ever use the useless trackpad. I hate trackpads. First thing I do when I buy a new laptop? I plug in a mouse. Second thing I do? Disable the god dam trackpad.
    *Some left-handed use of mice can occur. See nearest lefties for details. May contain nuts. For external use only.

    I had a Gateway FX years ago that was a great laptop, but the "fn" key was at the bottom left instead of ctrl. I used that laptop for years and I was never able to become accustomed to it for gaming (group select ctrl+# ffs) or word processing, so I feel your pain.
    That being said, you should be able to re-bind your keys without any problem, and possibly pop off the keys themselves and move them to their new locations if they're the same size and you like that consistency. You can rebind via the registry, or certain bios, or w/ a third party application.
    The track pad is essential if you've got limited space and/or aren't a twitch gamer. For non-real time games, there is hardly any advantage to using a mouse over a good track pad.

  • CSS 11501 ftp server setup problem using non-standard port

    Dear Expert,
    we would like to setup FTP server over CSS where our member sever use non-std-port to open both control/data channel (i.e. 6370 as ctrl and 6369 as data this case.) but seems we only get Passive mode FTP mode work only but not for Active mode FTP case for data channel establishement for server back to client...is there any professional advise can help on this case...? here is our setup info FYI
    #  sh ver
    Version:               sg0820501 (08.20.5.01)
    Flash (Locked):        08.10.1.06
    Flash (Operational):   08.20.5.01
    Type:                  PRIMARY
    Licensed Cmd Set(s):   Standard Feature Set
                           Secure Management
    CVDM Version:          cvdm-css-1.0_K9
    !*************** Global
    ftp data-channel-timeout 10
      ftp non-standard-ports
    !************************** SERVICE **************************
    service ftp_ftpgtw
      keepalive maxfailure 2
      keepalive frequency 15
      keepalive retryperiod 2
      keepalive type tcp
      ip address 192.168.52.170
      protocol tcp
      keepalive port 6370
      port 6370
      active
    # sh run group drfusegtwftp_grp 
    !*************************** GROUP ***************************
    group gtwftp_grp
      vip address 192.168.52.28
      add service ftp_ftpgtw
      active
      content ftp_gtwpkg-ftpgtw
        add service ftp_ftpgtw
        vip address 192.168.52.28
        port 21
        protocol tcp
        application ftp-control
        active

    Thanks for your confirmation on no prob found in config level 1st..:P..as to save us a lot of time in isolating problem at this level.
    What we can notice is seems the data port connection is fail to open  for server back to client....for our general sense..... the flow expected should be:
    TCP session A -- Client:1234 --> VIP:21 --> member svr:6370
    TCP session B -- Client: 5678 <--> VIP:20 <--> member Svr: 6379 [on demand generated between server/client]
    but we can only see session B fail  to setup when client side access VIP site on CSS..even we try to put the most standard case as below
    TCP session A -- Client:1234 --> VIP:21 --> member svr:21
    TCP session B -- Client: 5678 <--> VIP:20 <--> member Svr: 20
    we still unable to make the Active mode FTP access work either...hence we got no idea on how CSS handle FTP access when it involve services over multiple tcp ports..
    and from CSS xlate view...the problem is we can only see what NAT IP that used in CSS connect to client...but no way to confirm for which port for VIP using outgoing to client. neither it is dropped by CSS..nor it is never setup from VIP to Client side.

Maybe you are looking for

  • Checking for a valid date

    I have a program that takes a user's input from three text boxes to make a date. I need to be able to check to make sure that the day of the month is correct. For example if they enter 02/35/02 an error message should apear. I am trying to use a Cale

  • Download 9i Form

    hi friends, I want to download 9i Form developer. what i require to download any oracle product? Is there any licence which i supposed to have? or only to accept the terms and conditions given in download procedure.

  • When converting to AAC?

    I just got my iPod Nano and I have about 1700 mp3's now I'd like to convert them a little at a time to AAC because converting them all at once will take all day. But when I convert say 100 and then try again if I already converted a song it doesn't s

  • JRE-6u22 Uninstall 250 Machines

    Need to script an uninstall of 6u22 and reinstall 6u21 on 250 XP SP3 machines. Machines are used by filed Reps / not connected to Domain. Haven't been able to find the msi. Anyone know what file name / directory will trigger an uninstall?

  • Buzzing/whining sound coming from top left keyboard area...?

    For a couple of months now (I think, I can't pinpoint when exactly this started), there has been an annoying buzzing/whining sound coming from the very top left part of my keyboard (I think). It happens when the computer is on and dies down once I tu