Sort order from NAT rules via CLI

Hi all,
im a newbie here and i have my first question. Hope you can help me to find a solution.
Is there a way to change the order of NAT statements via CLI in Cisco ASA IOS 9.1 ?
By ASDM i can change the order and bring them up and down to the place where i must have them, but i found no way to do this via CLI.
Any Ideas?
Greetings from germany
Marco

You would need to remove the NAT statements and then re-add them in the order you want them to appear.  The ASDM does it the same way but makes it easier by you just having to move the NAT rule to where you want it and apply...the ASDM does the rest.  If you set your ASDM to show the commands before they are applied you will see how the ASDM does this.  The setting is under Tool > Preferences and select Preview commands before sending them to the device
Please remember to select a correct answer and rate helpful posts

Similar Messages

  • 'Film Rolls' View loses sort order when finding photos via Keywords or text

    I have my iPhoto Library sorted by Film Roll so when I select 'Library' in the source list I see my rolls listed in date order in the viewing area.
    If I try and find photos using the keywords pane or the search field the rolls which match are displayed in the viewing area but the order they are listed is no longer according to their date but some (seemingly) random order.
    Does anyone else have this problem?

    I find that if I have my rolls sorted by Film roll and Ascending (by roll date) the keyword search results will have the rolls in the correct chronological order.
    However if I change the sort order to Descending , the search order remains as Ascending by roll date.
    If you create a Smart album for a keyword search then you can sort the photos by any criteria you'd like: Date, Keyword (redundant), Rating or Title and Ascending or Descending.
    Do you Twango?

  • Unexpected sort order from collator

    When I use a collator I am getting an unexpected sort order.
    Does anyone know why "BN - Bern" does not come before "BNB - Bern Br�nnen" when I use a Collator?
              Collator collator = Collator.getInstance();
              List<String> list = new ArrayList<String>();
              list.add("BNB - Bern Br�nnen");
              list.add("BN - Bern");
              Collections.sort(list, collator);
              for (String string : list) {
                   System.out.println(string);
              }results in:
    BNB - Bern Br�nnen
    BN - Bern
    But withou a collator:
    BN - Bern
    BNB - Bern Br�nnen
    thanks

    Because Collators tend to ignore whitespace and puctuation unless the strings are otherwise identical.

  • Sort order question

    Hello, all.
    I have a client who would like to have the ability to change
    the order in which sub navigation items appear on their site.
    I've got it to the point where if the SO is changed in the
    database, that change is reflected on the site. But currently the
    change has to be manually done via Enterprise Manager.
    The next step is to set up the CMS so that the SO can be
    changed. I'm looking into a javascript solution that displays all
    items in a select object (size=number of records in recordset) and
    the items can be "dragged" to whatever position in the list the
    user wants.
    My ideas end, there. Any suggestions on how to pass that
    information to the database for the update? Should I use an array?
    Where do you recommend I go, from here?
    Thanks,
    ^_^

    This is for a CMS, the part that allows an admin to change
    the sort order of sub-navigation items associated with a particular
    top-navigation item on the pages that the public can access. (The
    sub-navigation items are articles.)
    Currently, the idea is that each top navigation item uses js
    to display all sub-nav items associated with that top-nav, and at
    the top of the list of sub-nav items is a link for changing the SO
    of those sub-nav items. When the top-nav clicked is for, say,
    "About", then all sub-nav items (clickable for editing) under the
    heading of "About" appear with a link at the top of the list that
    says "Change Sort Order for: About"; when clicked this will open a
    page that (ideally, if I can find the js for it) contains a select
    box that has a size equal to the number of sub-nav items so there
    is no scrollbar, and contains all sub-nav items in the current sort
    order from top to bottom; the js allows the user to click-n-drag
    the items to the order they want them in, then click a submit
    button to make the changes in the database. Each sub-nav item in
    the database has a sortOrder column, datatype int; this is the
    column that needs updating. I'm just not sure how to make sure that
    the ID associated with each sub-nav item gets the correct value in
    the sortOrder column.
    So it will be more than just "click this header to sort data
    according to this column" (which I'd use CF for that, not js). The
    client wants a customisable sort order for the sub-nav items (first
    item = 1, second item = 2, etc.; change the way the items appear on
    the public side pages.)
    ^_^

  • Album sort order PSE11 - is it by design ?

    When experimenting with the sort order of albums in PSE11, I was surprised to see that in some albums, changing the sort order from 'oldest' to 'newest' did not produce any effect.
    The reason of this probably lies in the menu /preferences/general :
    If you have only pictures taken the same day, the above setting will still show 'oldest first' even you choose 'newest first' for album order.
    I believe that the most used order is 'album order' and that the 'newest first' is very rare.
    I can understand the option to browse 'oldest first within each day' when in 'newest first' in thumbnail view.
    However, I wonder if that option makes sense to sort an album ?
    Was it by design ?
    If it were me...
    I would not use that preference for an album,
    and...
    I would add the option to sort by filename and caption.

    Figured it out. I added "Various Artists" in the Album Artist field for every track and it then sorted them all together.

  • Bug: iOS 5 and iTunes 10.5 podcast smart playlist sort order and how to fix.

    There seems to be a bug in iOS 5 and iTunes 10.5 involving the sort order of a smart playlist of podcasts. I created such a playlist and sorted by release date on iTunes but I noticed it had a different sort order on the iPod Touch.
    After playing around with it a bit I found that the only way to preserve the sort order that I have in iTunes on the iPod Touch is to uncheck "Live Updating" in the smart playlist.

    Confirming this incredibly annoying bug.  Basic list sorting not working... real bottom shelf work apple.
    workaround update:  limit to must be turned on, set it to an absurdly high number if you don't want to actually limit the playlist, then one of the sortby options in that submenu will work.   The live update checkbox is irrelevant from experimentation. 
    This workaround does NOT fix the fundamental problem: sort order from itunes in smart playlists is not being synced and preserved in ios5 devices.
    This is the latest in a long string of debacles which is making me seriously consider swapping to debian stable. (snow leopard to lion was a severe downgrade in performance for anyone doing heavy multitasking.. scheduling is FUBAR... when a command option escape beachballs on a brand new core 17 machine, your OS has serious problems with nice levels)

  • How to set default sort order for all folders/albums/etc

    This is driving me nuts, having to change the sort order from manual to file name every time I change projects or folders (and I have a lot of both). Is there a way to set the default to just sort by file name ascending? Or sort by timestamp (that's date + time, not just date)?

    Chuckcars wrote:
    I am in process of doing some rearrangement to make Projects as the main box (the file drawer) with headings like: iPhone, Assignments, Events, Landscape, People, Travel. Then, a specific folder under the project. Then, an Album under the Folder.
    This should be started as a new thread -- do so if you have any questions.
    Strongly recommend using Projects as intended (see comments by Frank and DLSCreative in current thread ^1^ and long comment by me in another thread ^2^ ). In your case that would mean Folders with the headings you've selected, the (most likely) Projects, then Albums (and perhaps more Folders).
    ^1^ http://discussions.apple.com/thread.jspa?threadID=2716711&tstart=0
    ^2^ http://discussions.apple.com/thread.jspa?threadID=2654297&tstart=0

  • Sort Order for a VARCHAR2 Column

    Hello Everyone,
    This is probably quite simple, however I cannot see it. I am trying to sort on a varchar2 column that has numbers, text, dashes, tildes, carets and underscores which are mixed to compose a wire number. I have come up with an order by that changes the sort order from alpha to numeric satisfying one portion of the requirement.
    select wirenbr,fromitem "from",frompin,diagnbr,sht,toitem,topin,effect
    from acft_wires
    order by decode(to_char(nvl(length(translate(wirenbr,'A1234567890','A')),0)),'0',lpad(wirenbr,18),wirenbr);
    The select returns:
    1
    2
    3
    20
    21
    200
    201
    1000
    A
    ADT1
    AEN1
    AE1
    AE9
    AFA
    B
    1A
    2U7230A-ZZ
    2000A
    213-22
    22X100A20
    220-11
    The customer preferred sort looks like:
    1
    2
    3
    10
    10A
    11
    200
    201
    201-01
    202
    1000
    1000A
    1001
    I will build a shrine in my hall of honor to this forum if someone can point me in the right direction on how to solve this problem.
    Thanks everyone for your help.

    ok, start with this
    order by
    translate(substr(wirenbr,1,1),'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-','0000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZ')
    , nvl(length(substr(wirenbr,1,instr(translate(wirenbr,'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-','1234567890XXXXXXXXXXXXXXXXXXXXXXXXXXX'),'X')-1)),length(wirenbr))
    , to_number(translate(wirenbr,'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-','123456789000000000000000000000000000'))
    First, all that start with number go to the beginning and all that start with a letter go to the end.
    Next, sort by the length of the first numerical part, as per Al's first solution.
    Next, sort by the numerical part.
    I started getting what I think is the right sort by that point. However, I think that you'll also have to add
    stuff to sort by the alpha part, mine was
    , NVL(RTRIM(LTRIM(wirenbr,'0123456789'),'0123456789'),0)
    The biggest problem I see is all of the different number-letter-number
    number-letter-number-letter formats. How many levels of recursion you'll have to go through to get it perfectly sorted, could you have ZZ999ZZ99Z9Z9Z9Z99?
    Any ideas for breaking this value up?

  • Sort order differs on iPod

    I've just replaced my G2 iPod with a 60GB 5G iPod. The song sort order on the 'standard' playlists like 'Songs" (as opposed to the playlists I create myself) have a different sort order from how they're displayed in iTunes. For example, I sort 'Recently Added' by date with the most recent at the top, on the iPod they are sorted alphabetically even though the iPod playlist in Tunes has them sorted by date. has anyone else experienced this or is there a setting for altering the sort order on the iPod that I haven't discovered?
    TIA

    I think that is basic sorting for the iPod. For example if you have an album of songs but no track number noted for each song they will show up in the album section but be listed alphabetically where if they have track #'s then they will be listed in tract # order.
    I hope this answers your question.

  • Changing sorting order

    I am trying to change the sorting order from the default setting when executing a query on a datablock. I try to sort by name dynamically by using SET_BLOCK_PROPERTY('block',ORDER_BY,name_sort(:block.id)); . There is no name in the datablock, but I can get the name from the name_sort function by passing :block.id. I built the name_sort function and put it in the program units. I put the SET_BLOCK_PROPERTY('SFRSTCR',ORDER_BY,name_sort(:sfrstcr.sfrstcr_pidm)); in the pre-query trigger, but it didn't work. I got the error as shown:
    frm-40735 pre-query trigger raised unhandled exception Ora 01403
    I am not sure where I should put it. I searched for documentation on where to put it, but didn't find one. Also, I am not sure if this is a right approach to fix the problem.

    ORA-01403 is the error code of No Data Found predefined exception.
    your procedure/function name_sort is raising no_data_found exception error, try to handle that error in the exception section and try again.
    Tony

  • EPMA 11.1.2.1 dimension build from FlatFile to EPMA to EssbaseASO using ODI, member sorting order issues

    We are building our EssbaseASO cube using FlatFiles which are pushed to EPMA via interface tables and then the EPMA Essbase app is deployed to Essbase, this entire job is done through a ODI interface/package. The problem I am facing is the Order in which members in EPMA appear, even though the FlatFile has the right sorting order, by the time the hierarchies arrive into the EPMA interface table the sort order is changed randomly.
    I am using the File to SQL control append IKM in ODI and some where on the way I saw a suggestion to add a new option to insert "ORDER BY" into the IKM. I successfully did this and it did change the sort order but even this is not the right order(order in which my flatfile has the dimensions).
    I can't understand why Oracle/ODI needs to randomize the rows without being asked to do so! Please let me know if anyone has faced this issue before and if they were able to resolve it.

    The EPMA interface tables have a SORTORDER column. Make sure this is populated with numeric values sequencing the order you want your members to appear in the EPMA hierarchies and when you import from the interface tables this order will be respected. Prior to this feature being introduced the workaround was to create a view referencing the interface tables imposing the required ORDER BY clause but this isn't required in 11.1.2.1 just use the SORTORDER column

  • BPC 7.5NW: Hierarchy Upload from BW - Sort Order

    Hi,
    we are currently updating from BPC 7.0NW to 7.5 NW SP10. (BW has been upgraded to 7.02 SP09)
    As master data and hierarchies had been uploaded using the coding from 'HowTo Upload automated...' so far, we now have to use standard Data Manger packages.
    Maintaining packages and package links was successful. Everything works fine so far.
    The only problem are Hierarchies, better the sort order of hierarchie nodes. At the moment they are always sorted in an alphabetical order.
    We introduced property MBR_SEQ to all dimension using program UJA_MIGRATE_MBR_SEQ.
    We loaded hierarchies with different settings.
    Searching SDN and SAP Notes lead to notes 1603352 or 1581331.
    But manually changing hierarchies each time, new members are assigned, is not an option!
    Do I miss any option in the selection screen of the Data Manager package?
    Are there any options in transformation or conversion file?
    Thanks and regards
    Steve

    For your Information...
    We were now adviced to include parameter DM_KEEP_SRC_SEQ with value Y in AppSet parameters (Web-Administration).
    Please have a look at note '1626929 - Keep hierarchy sequence for Load Hierarchy from BW package'.
    It works!
    For the first hierarchy to be uploaded...
    If there are more than one hierarchy defined for upload, only the first hierarchy is sorted correctly, all following ones are sorted alphabetically again.
    Regards
    Steve

  • Why does iPhoto change the sort order of the photos in my album when I attempt to share via Photo Stream?

    Why does iPhoto change the sort order of the photos in my album when I attempt to share via Photo Stream?

    Did anyone find a good way to sort the shared albums better, so that the ones you share with can better find their way around.
    You can arrange them manually in an album, select all and use the Photos ➙ Batch Change ➙ Date to menu option and check the box to add a set interval between photos. That will let the photos be sorted by date and be in the order you want:
    OT

  • Sort order for photos synched from Aperture

    I have synched photos from Aperture to the Apple TV, but the sort order when shown on Apple TV is not the same as the sort order in Aperture. Does anyone have an idea about which metadata field in Aperture is being used by Apple TV to determine the sort?

    Hi this is my first append to Apple support so things may go pear shaped...
    I have the same problem as you describe and have discovered that the order appears to be consistent with the file NAME order (as seen in Finder) This is not the camera file name but the version name I gave it when I imported the file into Aperture. I then exported the album to the desktop and streamed it to Appletv. (iTunes #count/album is sometimes wrong)
    Given a file list of say 40 files, the new (incorrect Appletv re-sorted) order follows a pattern based on the FIRST numeric decimal digit in the filename!
    Example - I have a folder containing 40 consecutive images - the new order these images will be displayed by Appletv will be as follows
    1 10[...]19 2 20[...]29 3 31[...]39 4 40 5 6 7 8 9
    I've proved this by photographing 40 separate image files each one showing a number in the range of 1 to 40 as an individual image. These are in order by number (as appears in the image) & file number assigned by the camera, and also therefore by file date time. I imported them into Aperture and assigned them the Version name of 'Number' + sequence.
    So, when I view image file #1 named 'Number 1 of 40' I see the number '1' and the EXIF tells me it was taken at 28/07/2007 13:33:16 BDT. Similarly when I view image file #40 named 'Number 40 of 40' I see the number '40' and the EXIF tells me it was taken at 28/07/2007 13:37:34 BDT.
    I CAN CHANGE the order Appletv displays these by renaming them - eg change file name 'Number 10 of 40' to 'Number 41 of 40' makes it appear at the end. The sequence now becomes 1 11-19 etc 40 41. Nothing else appears to have changed.
    I've since found that a separate burn of different files(29) using Toast followed the same pattern.
    Since starting this append iTunes has the added the album of 40 numbers to its list and I have just viewed them on Atv slideshow. Bizarrely the order is different again - 3,5,2,4,1,10,13,15,6,11,14,7,8,12,9,32,17,33,26,22,23,28,18,29,20,24,35,16,21,3 1,19,25,30,34,27,37,38,40,39,36. Random is off. Please can we have a fix for this or at least a workaround.
    Thanks.

  • How to Control the Sorting Order of iPhone Contacts from Outlook?

    In a series of editing steps we've loaded ca. 1,900 personal and business contacts from Outlook into a 1st gen iPhone with 2.0.1 software on it. To our surprise we found that while most of the entries were listed and sorted by company, certain entries were listed and sorted by the person's name. It looked random and there didn't seem to be any way to control it on the iPhone.
    While troubleshooting the problem we synced up the iPhone with an empty Address Book on a MacBook Pro and found that the sort order flag was indeed set differently on these entries. When we changed the sorting flag of a contact in the Mac's Address Book to "Company" it also changed on the iPhone after the next sync.
    Problem: In our business environment it is impossible to switch to Macs for contact administration. We need to do it from Outlook. This is one of several features needed for the adoption of iPhones.
    Question: Is there a way to control this flag on the individual iPhone contact entries from Outlook Contacts?

    Well, I think we figured it out.
    Outlook doesn't offer a sorting flag on person or company name. Instead it uses a separate "File As" string. The problem with our contacts was that this "File As" string was frequently edited to be something else than exactly the personal or company name, e.g. it was set to an abbreviated company name. Once we set the "File As" to any of the defaults offered, i.e. person or company name, the sorting flag in iPhone was properly set through the synchronization.
    Obviously, the application logic compares the content of these fields in Outlook and decides how to set the flag. If it can't find the company name in "File As" it defaults to person.
    This was an expensive holdup for us. It cost us 2 man days to figure it out. Is there any place where such application logic is described?

Maybe you are looking for