Prefix-list; clear bgp peer-group Test soft in; no file prompt quiet

Hello everyone,
I have a few simple questions. Hope someone will help me   Thank you in advance.
1) We are using prefix-set into route-maps, but how I can use a prefix-list?
2) In classic IOS we have the command:  clear bgp peer-group Test soft in
I don't see it in IOS-XR (Cisco IOS XR Software, Version 4.0.1):
RP/0/RSP0/CPU0:STH02#clear bgp ipv4 unicast ?
  *                  Clear all peers and all routes from the BGP table
  A.B.C.D or X:X::X  BGP neighbor address to clear
  as                 Clear peers in a specific AS
  dampening          Clear route flap dampening information
  external           Clear all external peers
  flap-statistics    Clear flap statistics
  nexthop            Clear nexthop
  self-originated    Clear redistributed, network and aggregate routes originated here
  shutdown           Clear all peers which were shut down due to low memory
3) In classic IOS we have the command: no file prompt quiet
I don't see it in IOS-XR.  What is the command for IOS-XR?
I need it for the operation like this:
copy ftp://**:***@216.*.*.*/CUST_AS-TEST-in.prefixlist compactflash:/PrefixFilters/CUST_AS-TEST-in.prefixlist
Wed Apr 18 12:02:00.936 UTC
Destination filename [/compactflash:/PrefixFilters/CUST_AS-TEST-in.prefixlist]?  !!!!   I don't need this question
Copy : Destination exists, overwrite ?[confirm]                                                   !!!!   I don't need this question
Accessing ftp://*:*@216.*.*.*/CUST_AS-TEST-in.prefixlist
C
584 bytes copied in      0 sec
Have a nice day,
Dimitry

Thank you Alexander for your reply. It is the good RPL description and I've got the idea of REFRESH capable peer.
BUT, I still don't find the answer on my 3-d question:
In classic IOS we have the command: no file prompt quiet
I don't see it in IOS-XR.  What is the command for IOS-XR?
I need it for the operation like this:
copy ftp://**:***@216.*.*.*/CUST_AS-TEST-in.prefixlist compactflash:/PrefixFilters/CUST_AS-TEST-in.prefixlist
Wed Apr 18 12:02:00.936 UTC
Destination filename [/compactflash:/PrefixFilters/CUST_AS-TEST-in.prefixlist]?  !!!!   I don't need this question
Copy : Destination exists, overwrite ?[confirm]                                                   !!!!   I don't need this question
Accessing ftp://*:*@216.*.*.*/CUST_AS-TEST-in.prefixlist
C
584 bytes copied in      0 sec
How can I suppress confirmations like this?
Destination filename [/compactflash:/PrefixFilters/CUST_AS-TEST-in.prefixlist]?
Copy : Destination exists, overwrite ?[confirm]
Dimitry

Similar Messages

  • New to EEM, i wanna soft reset BGP when a prefix list is applied

    Hello,
    This is my script:
    event manager applet SOFTRESETBGP_IN
     event cli pattern "neighbor 10.0.0.2 prefix-list.* in" sync no skip no period 1
     action 1.0 cli command "do clear ip bgp 10.0.0.2 soft in"
     action 2.0 syslog msg "BGP PEERS SOFT RESETED IN"
    event manager applet SOFTRESETBGP_OUT
     event cli pattern "neighbor 10.0.0.2 prefix-list.* out" sync no skip no period 1
     action 1.0 cli command "do clear ip bgp 10.0.0.2 soft out"
     action 2.0 syslog msg "BGP PEERS SOFT RESETED OUT"
    When I issue the "neighbor 10.0.0.2 prefix-list A in" command it displays the pre-defined syslog msg, but the peer is not reseted.
    Test:
    R1(config-router)#do sh ip bgp
    BGP table version is 7, local router ID is 10.0.0.1
    Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
                  x best-external, a additional-path, c RIB-compressed,
    Origin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
         Network          Next Hop            Metric LocPrf Weight Path
     *>i 2.2.2.2/32       10.0.0.2                 0    100      0 i
     *>i 22.22.22.22/32   10.0.0.2                 0    100      0 i
    R1(config-router)#neighbor 10.0.0.2 prefix-list A in
    R1(config-router)#
    *Jan 10 13:58:57.663: %HA_EM-6-LOG: SOFTRESETBGP_IN: BGP PEERS SOFT RESETED IN
    R1(config-router)#do sh ip bgp
    BGP table version is 7, local router ID is 10.0.0.1
    Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
                  x best-external, a additional-path, c RIB-compressed,
    Origin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
         Network          Next Hop            Metric LocPrf Weight Path
     *>i 2.2.2.2/32       10.0.0.2                 0    100      0 i
     *>i 22.22.22.22/32   10.0.0.2                 0    100      0 i
    R1(config-router)#
    When I do manually clear the peer, the policy applies:
    R1(config)#do clear ip bgp 10.0.0.2 soft in
    R1(config)#do sh ip bgp
    BGP table version is 8, local router ID is 10.0.0.1
    Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
                  x best-external, a additional-path, c RIB-compressed,
    Origin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
         Network          Next Hop            Metric LocPrf Weight Path
     *>i 2.2.2.2/32       10.0.0.2                 0    100      0 i
    I have also tried to clear both direction without ".*"
    event manager applet SOFTRESETBGP
     event cli pattern "neighbor 10.0.0.2 prefix-list" sync no skip no period 1
     action 1.0 cli command "do clear ip bgp 10.0.0.2 soft"
     action 2.0 syslog msg "BGP PEERS SOFT RESETED"
    result is the same...

    skip no means: execute the command (you can skip it)
    sync no means: you have to execute the CLI command, then the EEM script runs
    example to skip: 
    R1#sh running | b event
    event manager applet OSPF
     event cli pattern "clear ip ospf process" sync no skip yes period 1
    end
    R1#clear ip ospf process
    R1#
    without "skip"
    R1#sh running | b event
    R1#clear ip ospf process
    Reset ALL OSPF processes? [no]: y
    R1#

  • BGP prefix list weird issue

    Hello All,
    I'm working in a BGP prefix list configuration and i'm seeing a strange issue.
    Issue: As per the cofiguration we have defined the prefix list to filter the incomming subnets. Though a specific subnet is not allowed in the prefix list but the router is allowing the subnet to get in to BGP table from the neighbour.
    configuration:
    ip prefix-list TEST seq 5 permit 10.61.64.0/19 ge 24 le 24
    Though the below subnet is not allowed in prefix list but I'm seeing this subnet in BGP table with best path.
    10.61.192.0/23
    Can you anybody help me to know what could be the issue? any bug? any thing I'm wrong with the configuration?
    Thanks,
    Thiyagu

    Hi,
    After applying the prefix-list try soft resting the BGP neighbor and test again
    clear ip bgp XX neigh soft in
    HTH

  • IPv6 BGP prefix-list filtering

    Dears,
    I have  established iBGP seesion between 2 routers (R1 ---- R2) and I want to  advertise loopback interface /128 using ipv prifex filtering, but didnt  advertise to neighbor loopback . it is working fine with network or redistribute command but I want to know why it is not working with
    prefix-list filtering?
    Configuration:
    router bgp 100
    neighbor 2001:100:1:1::2 remote-as 100
    address-family ipv6
    neighbor 2001:100:1:1::2 activate
    neighbor 2001:100:1:1::2 prefix-list IPV6 out
    no synchronization
    exit-address-family
    int lo 100
    ipv address 2001:500:1:1::1/128
    ipv6 prefix-list IPV6 seq 10 permit 2001:500:1:1::1/128
    router bgp 100
    neighbor 2001:100:1:1::1 remote-as 100
    address-family ipv6
    neighbor 2001:100:1:1::1 activate
    neighbor 2001:100:1:1::1 prefix-list TEST out
    no synchronization
    exit-address-family
    int lo 100
    ipv address 2001:600:1:1::1/128
    ipv6 prefix-list TEST seq 10 permit 2001:600:1:1::1/128
    Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
    2001:100:1:1::1 4 100   49236   49191        5    0    0 04:03:21        0

    Even though you're using a prefix list, the prefix list is used for filtering and not advertising the network. You still have to advertise the network using "network 2001:600:1:1::1/128" and you should see it.
    HTH,
    John
    *** Please rate all useful posts ***

  • Strange Problem in dynamically list population with record group

    Hello Room,
    I am dynamically populating a single list with 2 record groups. I am having a strange problem. All the code are written in 2 seperate buttons. The code of every button is given below.
    Button 1 code:-
    DECLARE
    rg_reports RECORDGROUP;
    rg_name VARCHAR2(40) := 'REPORTS';
    vTemp NUMBER;
    BEGIN
    -- Pls make sure Group doesn't already exist
    rg_reports := FIND_GROUP(rg_name);
    -- If it doesn't exist then create it and add ur query to it
    IF Id_Null (rg_reports) THEN
    rg_reports:=CREATE_GROUP_FROM_QUERY(rg_name , 'SELECT companyname,to_char(co) from companymaster order by companyname');
    end if;
    --Populate the Record Group
    vTemp:=POPULATE_GROUP(rg_reports);
    POPULATE_LIST('REPORTS.EXAMPLELIST', rg_name);
    Delete_Group( rg_reports );
    END;
    Button 2 Code:-
    DECLARE
    rg_reports RECORDGROUP;
    rg_name VARCHAR2(40) := 'REPORTS';
    vTemp NUMBER;
    BEGIN
    -- Pls make sure Group doesn't already exist
    rg_reports := FIND_GROUP(rg_name);
    -- If it doesn't exist then create it and add ur query to it
    IF Id_Null (rg_reports) THEN
    rg_reports:=CREATE_GROUP_FROM_QUERY(rg_name , 'SELECT accountname,to_char(co) from accountmaster order by accountname');
    end if;
    --Populate the Record Group
    vTemp:=POPULATE_GROUP(rg_reports);
    POPULATE_LIST('REPORTS.EXAMPLELIST', rg_name);
    Delete_Group( rg_reports );
    END;
    The code is same here only the sql is different in these 2 buttons. Now the problem point.
    when i press button 1, I get the list populated ok. when i try to click on the list item and keep the button pressed the list gets scrolled properly.
    when i press button 2 after that i get account names well populated in the same list item as well, but this time, when i keep the button pressed the list does not scroll below as in button 1. It does not even allow to select different item from the list of button 2 code.
    I tried to clear cache, cookies, exit browser everything and try to run the button 2 first, but still the problem in button 2 code.
    Following are my system details.
    windows 7 professional edition.
    Oracle database 11g on windows 7
    Oracle forms 10g patchset 10.1.2.0.2 on windows 7
    Browser Netscape Navigator with oracle jinitiator 1.3.1.22
    But this form is run by a client side html file where oracle forms 10g is not installed on windows xp. html file is just referring server url to run the module. The file is run on Netscape navigator browser with oracle jinitiator 1.3.1.22
    My question is that is this a bug ? if button 1 gets the list item scrolled, why is the problem with button 2 even though i press it first. Here I am deleting the record group also. after the code is over. Initially I thought this may be the character length problem so I took the maximum character length for that list item as given by the 2 columns in database.
    Why is the list scrolling not happening in button 2 but in button 1 with same codes on both ?
    Anybody please help me.

    The problem is the second query. I would guess that the TO_CHAR(co) is not unique for each account, but is the same for the accounts. And as the second item in the select-list is the listitems values, all your listitem-entries have the same value. therefore, of you select any entry, the list will always go the the first entry again.
    Adjust your query.

  • List.clear() outside of List finalList = new ArrayList(); will delete element in finalList?

    Hello all!
    I am using 3 ArrayLists.
    the first is List<String>
    the second is List<String[]>
    and the third is a list of those lists List<List>
    I use the first list to get the string I need, but I use the second for String.split.
    I then need to keep a list of these to use, so I need the third List.
    After adding the second list to the list of lists I want to clear it so I can set up the next list to be added, but if I do list.clear(); it will delete everything in that list.
    If I do not clear it, it is fine.
    At first I wasn't sure if it was my fault, because I'm not sure if I ever had to do that before, so I made a test case that yields the result if I change the element outside.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    * @author Konrad
    public class JavaApplication1 {
         * @param args the command line arguments
        String a;
        List<String> j = new ArrayList<>();
        public JavaApplication1()
            a();
        public void a()
            a = "ADASDSADSA";
            j.add(a);
            a = null;
            System.out.println(j);
        public static void main(String[] args) throws SQLException {
            JavaApplication1 a = new JavaApplication1();
    If I change a = null to a = ""; it still yields the original a = "ADASD......";
        protected List<String> list = new ArrayList<>();
        protected List<String[]> list2 = new ArrayList<>();
        protected List<List> finalList = new ArrayList<>();
      finalList.add(list2);
                     //list2.clear();
    With this I yield an empty array element, even though my array elements exist.  I tried using multiple lists and I just had multiple empty elements.
    So again I'm not sure if I did something wrong, or is this a bug?  Since my test case worked, I'm confused.
    Thanks!
    ~KZ

    After adding the second list to the list of lists I want to clear it so I can set up the next list to be added, but if I do list.clear(); it will delete everything in that list.
    Correct - you are just working with multiple references to the SAME set of objects.
    Use 'remove' to remove an element from a list and then 'add' to add it to the other list.
    See the Javadocs for the 'remove' method of the List interface
    http://docs.oracle.com/javase/6/docs/api/java/util/List.html#remove(int)
    remove
    E remove(int index)
    Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.   
    Parameters: 
    index - the index of the element to be removed 
    Returns: 
    the element previously at the specified position 
    Throws: 
    UnsupportedOperationException - if the remove operation is not supported by this list 
    IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())

  • PIX 501 - prefix-list causes PDM to fail

    Hi
    I am configuring a redundant link via ADSL between 2 501 routers
    I cant get the link to activate when the system is connected to the local network because it picks up a OSPF route to the remote site via the main internal network.
    I tried to ad a filter to prevent the the route being recieved. And here is my problem
    Either using PDM or the command line, the creation of a filter
    prefix-list mel-backup seq 9 deny melbackup/30 causes the PDM to lock on startup or save.
    And the area filter command seems to have no effect
    I even tried a random internal route.
    The commands I am adding are
    prefix-list backup_melb seq 3 deny Level9/24
    router ospf 22
    network 10.150.102.22 255.255.255.255 area 0
    area 0 filter-list prefix backup_melb in
    Does anyone know of a problem with this ?
    Thanks in Advance
    Mark Casey

    Hi,
    PIX501 is a very very old Cisco firewall that has not been sold for a long time to my understanding. It also doesnt support even close to new software levels.
    If you wanted to replace the PIX501 the corresponding model nowadays would be ASA5505 which is the smallest Cisco ASA firewall with 8 switch port module. There is already a new ASA5500-X Series (while ASA5505 is of the original ASA 5500 Series) but they have not yet introduced a replacing model for this model nor have they stopped selling this unit. I have a couple of them at home. Though naturally they are more expensive than your usual consumer firewalls.
    But if you wanted to replace your PIX firewall then I would probably suggest ASA5505. Naturally you could get some other models too but the cost naturally rises even more. I am not sure at what price these are sold as used.
    I used some PIX501 firewalls at the start of my career but have not used them in ages since ASA5505 is pretty much the firewall model we use when we need a firewall/vpn device for a smaller network/branch site.
    Here is a PDF of the original ASA5500 Series.
    http://www.cisco.com/en/US/prod/collateral/vpndevc/ps6032/ps6094/ps6120/prod_brochure0900aecd80285492.pdf
    Here is a PDF of the new ASA5500-X Series
    http://www.cisco.com/en/US/prod/collateral/vpndevc/ps6032/ps6094/ps6120/at_a_glance_c45-701635.pdf
    I am afraid that its very hard for me atleast to troubleshoot this especially since I have not seen any outputs yet. Also the very old CLI and lack of GUI (?) make it harder to see what the problem is.
    Could you provide the requested outputs?
    From the PIX after connection test
    show crypto ipsec sa
    Screen captures of the VPN Client routing and statistics sections.
    - Jouni

  • Prefix-list Logic -- Need help

    Dear All,
    I have following prefix list on my internet router for which need to understand the logic.
    router bgp xxxx (public AS)
    nei x.x.x.x remote-as 4755
    neighbor x.x.x.x prefix-list VSNL-ANNOUNCE out
    nei y.y.y.y remote-as 1236
    neighbor y.y.y.y prefix-list Bharti-ANNOUNCE out
    network 203.99.216.0 mask 255.255.254.0
    network 203.99.216.0
    network 203.99.217.0
    ip prefix-list Bharti-ANNOUNCE seq 5 permit 203.99.216.0/24
    ip prefix-list Bharti-ANNOUNCE seq 15 permit 203.99.216.0/23
    ip prefix-list DENY-ALL seq 5 deny 0.0.0.0/0 le 32
    ip prefix-list  VSNL-ANNOUNCE seq 10 permit 203.99.217.0/24
    ip prefix-list VSNL-ANNOUNCE seq 15 permit 203.99.216.0/23
    Please help me to understand the logic of the prefix list.
    Because Bharti SP is getting 203.99.216.0/24 networks only & VSNL is getting  203.99.216.0/23 networks.

    Dear All,
    I have following prefix list on my internet router for which need to understand the logic.
    router bgp xxxx (public AS)
    nei x.x.x.x remote-as 4755
    neighbor x.x.x.x prefix-list VSNL-ANNOUNCE out
    nei y.y.y.y remote-as 1236
    neighbor y.y.y.y prefix-list Bharti-ANNOUNCE out
    network 203.99.216.0 mask 255.255.254.0
    network 203.99.216.0
    network 203.99.217.0
    ip prefix-list Bharti-ANNOUNCE seq 5 permit 203.99.216.0/24
    ip prefix-list Bharti-ANNOUNCE seq 15 permit 203.99.216.0/23
    ip prefix-list DENY-ALL seq 5 deny 0.0.0.0/0 le 32
    ip prefix-list  VSNL-ANNOUNCE seq 10 permit 203.99.217.0/24
    ip prefix-list VSNL-ANNOUNCE seq 15 permit 203.99.216.0/23
    Please help me to understand the logic of the prefix list.
    Because Bharti SP is getting 203.99.216.0/24 networks only & VSNL is getting  203.99.216.0/23 networks.
    Hi Yogesh,
    Prefix lists are more sophisticated forms that Cisco provides for filtering      BGP route advertisements. They filter on IP address just as distribute-lists      do, however they are easier to read, and require fewer commands to configure.For example
    prefix-list xx seq 10 permit 43.10.0.0/16 ge 18
    The statement above allows any route announcement in the range of 43.1.0.0 - 43.1.255.255 but that announcement must have a length greater than 18 bits in the mask. This permits you to allow announcements in the range, but not an announcement equalling the entire range (/16), or even announcements of half the range (/17). Only announcments with a length "greater than or equal to" /18 will be permitted.
    With your configuration only /24 and /23 in the network will be out via prefic list for vsnl and vice versa for bharathi.
    Check out the below link for more information and implementation of prefix list
    http://www.cisco.com/en/US/tech/tk365/technologies_configuration_example09186a008009456d.shtml
    Hope to Help !!
    Ganesh.H
    Remember to rate the helpful post

  • Ip prefix-list modification help

    i need to modify my internet edge bgp advertisements to exclude a small slice of the end of our ip space and i can't wrap my brain around what i need to do to modify the prefix list. my company uses the 192.168.0.0 thru 192.168.11.255 ip space and shown below in our existing bgp configuration (slightly modified to protect the innocent). I want to cut out the very last /29 net out of the 192.168.11.0 network.
    router bgp 65001
    bgp always-compare-med
    bgp log-neighbor-changes
    bgp bestpath as-path multipath-relax
    neighbor 1.1.1.1 remote-as 65002
    neighbor 1.1.1.1 ebgp-multihop 255
    maximum-paths 2
    address-family ipv4
      neighbor 1.1.1.1 activate
      neighbor 1.1.1.1 prefix-list mycompany-list out
      network 192.168.0.0 mask 255.255.248.0
      network 192.168.8.0 mask 255.255.252.0
    ip prefix-list mycompany-list seq 70 permit 192.168.0.0/21 le 24
    ip prefix-list mycompany-list seq 71 permit 192.168.8.0/22 le 24
    now, i know i could just remove the prefix-list and change the advertised networks with the following but i'd really like to know how to do it via a prefix-list.
    network 192.168.0.0       255.255.248.0
    network 192.168.8.0       255.255.254.0
    network 192.168.10.0     255.255.255.0
    network 192.168.11.0     255.255.255.128
    network 192.168.11.128  255.255.255.192
    network 192.168.11.192  255.255.255.224
    network 192.168.11.224  255.255.255.240
    network 192.168.11.240  255.255.255.248
    Any help that anyone can provide is much appreciated!

    i tried applying your suggestion and we still saw the larger 192.168.8.0/22 supernet being advertised... still missing something.
    i tried writing the prefix-list explictitly stating only the networks i wanted advertised but something went wrong and we lost some internet connectivity from the outside so i had to pull things back to the way they were. this is what i tried:
    first i added lines 75 thur 105 so the list looked like this:
    ip prefix-list stateofnh-list seq 65 deny 192.168.11.248/29       <- your suggestion applied
    ip prefix-list stateofnh-list seq 70 permit 192.168.0.0/21 le 24  <- original line
    ip prefix-list stateofnh-list seq 71 permit 192.168.8.0/22 le 24  <- oiriginal line
    ip prefix-list stateofnh-list seq 75 permit 192.168.8.0/23          <- new stuff starts here
    ip prefix-list stateofnh-list seq 80 permit 192.168.10.0/24
    ip prefix-list stateofnh-list seq 85 permit 192.168.11.0/25
    ip prefix-list stateofnh-list seq 90 permit 192.168.11.128/26
    ip prefix-list stateofnh-list seq 95 permit 192.168.11.192/27
    ip prefix-list stateofnh-list seq 100 permit 192.168.11.224/28
    ip prefix-list stateofnh-list seq 105 permit 192.168.11.240/29
    then i removed lines 65 and 71 leaving just this:
    ip prefix-list stateofnh-list seq 70 permit 192.168.0.0/21 le 24  <- original line
    ip prefix-list stateofnh-list seq 75 permit 192.168.8.0/23          <- new stuff
    ip prefix-list stateofnh-list seq 80 permit 192.168.10.0/24
    ip prefix-list stateofnh-list seq 85 permit 192.168.11.0/25
    ip prefix-list stateofnh-list seq 90 permit 192.168.11.128/26
    ip prefix-list stateofnh-list seq 95 permit 192.168.11.192/27
    ip prefix-list stateofnh-list seq 100 permit 192.168.11.224/28
    ip prefix-list stateofnh-list seq 105 permit 192.168.11.240/29
    but like i said, suddenly several sites we host became unavailable from and i quickly peeled everything back. suggestions?

  • Change an extend access list in a prefix list

    Hallo All,
    I would like to translate an extend access list in a prefix list.
    ip access-list extended x_to_y
    permit ip 1.1.1.1 0.0.1.255 any
    deny ip any host 3.3.3.3
    Any hint?
    Thanks!!!

    Hi Fabio,
    I am sorry but to my best knowledge, this is not going to work.
    You want to perform Policy Based Routing (PBR). For PBR, the packet selection is based on inspecting their header values by an ACL. A prefix-list does not inspect header values; rather, it would inspect routing update contents. This is also the reason why you cannot figure out how to rewrite the second line - because a prefix-list does not have a source-and-destination semantics. It is simply a list of network addresses you would be looking for in routing protocol updates.
    Even the documentation at
    http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_pi/configuration/15-mt/iri-15-mt-book/iri-pbr.html
    clearly shows that the only supported match commands are match length and match ip address - not match ip address prefix-list.
    I wonder - how come that your platform is unable to accomodate an ACL for PBR in hardware? Can we perhaps try to make this work? A prefix-list is not the way to go.
    Best regards,
    Peter

  • BGP Peer down monitoring through SNMP Traps

    Hello,
    I'm trying to figure out how I can monitor with BGP peer went down using SNMP traps or any other methods that are out there. Basically I would like to get a trap that tells me the IP address of the peer that went down.
    Looking over the SNMP MIBs for BGP all i can find is snmp traps that tell me there was a change in states in BGP, but don't say which neighbor.
    Is there any way to get such information? Would I have to use EEM with some script? This seems like a very common thing that people would want to know.
    Thank you in advance,
    Tom

    SNMP notifications can be configured on the router and GET operations can be performed from an external management station only after BGP SNMP support is enabled.
    SUMMARY STEPS
    1. enable
    2. configure terminal
    3. snmp-server enable traps bgp [state-changes {[all] [backward-trans] [limited]}] | [threshold prefix]
    4. exit

  • MIB and BGP peer (BGP4-MIB::bgpPeerRemoteAddr)

    Hello,
    We're using NAGIOS to monitor the networks of our customers.
    We're using BGPv4 and vrf lite on many of those networks.
    On every remote routers, we have multiple bgp peer sessions facing two ASR-1002F backbone routers (GRT and VRFs...).
    I'd like to know if there's a way to monitor all bgp sessions, on a remote router, without having to enter the ip addresses of all neighbors....
    I'm wondering whether or not I can use the "bgpPeerState" state to monitor the status of these bgp peer sessions?
    Someone got an idea?
    Thanks in advance,
    BRGs
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Tableau Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:Calibri;
    mso-fareast-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;
    mso-fareast-language:EN-US;}
    xxxxx@NOC-SV-PL-SUP01:/usr/local/nagios/libexec$ snmpwalk -v 2c -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerRemoteAddr     
    BGP4-MIB::bgpPeerRemoteAddr.10.40.3.25 = IpAddress: 10.40.3.25
    BGP4-MIB::bgpPeerRemoteAddr.10.40.3.29 = IpAddress: 10.40.3.29
    BGP4-MIB::bgpPeerRemoteAddr.10.40.8.153 = IpAddress: 10.40.8.153
    BGP4-MIB::bgpPeerRemoteAddr.10.40.8.157 = IpAddress: 10.40.8.157
    BGP4-MIB::bgpPeerRemoteAddr.172.25.3.17 = IpAddress: 172.25.3.17
    BGP4-MIB::bgpPeerRemoteAddr.172.25.3.18 = IpAddress: 172.25.3.18
    nsoc-iec@NOC-SV-PL-SUP01:/usr/local/nagios/libexec$ snmpwalk -v 2c -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerState.10.40.3.25
    BGP4-MIB::bgpPeerState.10.40.3.25 = INTEGER: established(6)

    Hello Joseph,
    Thanks for your answer.
    We've been testing some scripts and it's now working!
    We use the bgpPeerRemoteAddrMIB to get our ip @ and then we log any change in bgpPeerStateper ip@...
    An alarm is on when we have an IDLE state....
    Warning for the other BGP states
    OK for established.
    Regards
    Katy Desrosiers

  • Difference between list.clear() and new instance

    In the below code,
    List<String> test = new ArrayList<String)();
    list.add("one");
    list.add("two");
    list.add("three");
    list.clear();
    (or)
    list = new ArrayList<String)();
    list.add("four");
    list.add("five");
    What is the difference between List.clear() and creating new instance for list?

    1. Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    2. Invoking clear() sets all the elements of the ArrayList to null and resets the size to 0.    public void clear() {
         modCount++;
         // Let gc do its work
         for (int i = 0; i < size; i++)
             elementData[i] = null;
         size = 0;
        }(modCount is used to detect concurrent modification and throw an Exception when needed)
    Constructing a new ArrayList creates a new, different, empty ArrayList.
    In many situations they might be equivalent, but not in a case where you have two or more variable references to the same ArrayList. Example (watch out for typos)ArrayList<String> stringsA = new ArrayList<String>();
    ArrayList<String> stringsB = stringsA;
    : // add elements to stringsA
    : // stringsB refers to the same populated list
    stringsA.clear(); // stringsB refers to the clear()ed list
    : // add elements to stringsA again
    stringsA = new ArrayList<String>(); // stringsB still refers to the populated listdb

  • A little bit confused about the ipv6 prefix-list

    when I configured ;
    ipv6 prefix-list abc permit ::/0 ge 0
    which I wish is to permit all the ipv6 routes,
    but the running information becomes "ipv6 prefix-list abc permit ::/0" which only matched the default ipv6 routes
    what is wrong with me

    Hardware > Version > 5.1
    Don't forget to test it on real hardware. There should be plenty of iOS 5.1-limited devices available real soon now. Keep one of those for testing.

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

Maybe you are looking for