LMS 4.0 Compliance Reg Expression Issue

I'm
having problems with a regexp, I'm trying to search for multiple patterns in the loopback description field:
Example:
Rtr1:
interface loopback0
description rndm:text:cursor:1536:blah:blah1
Rtr2:
interface loopback0
description rndm:text:cursor:3072:blah:blah1
The regular expression that works is:
+interface Loopback0
+ [#description .*:.*:.*:1536:.*#]
But that only searches for one instance, what I cannot get to work is the following:
+interface Loopback0
+ [#description .*:.*:.*:1536|3072:.*#]
I have tried many variants, but I cannot get the (pipe) to work properly.
Thanks in advance for any help,
Craig

Nope, still no luck, I did have to add \ in front of the
colons to get the specific location, the asteriks wwould allow it to search for that sting any
where in the description, but I couldn't get the pipe to work properly still, I've trie
d moving the hard brackets, paranthesis etc.
I ended up working around the problem, by creating individual lines:
+[#description .*\:.*\:.*\:1536\:.*\:.*\:.*#]
+[#description .*\:.*\:.*\:3072\:.*\:.*\:.*#]
+[#description .*\:.*\:.*\:2048\:.*\:.*\:.*#]
Then running the report, the report gave the output of which commands needed to be "added", so I used a seperate program to determine which devices were non-compliant, IE.
If router one needed all 3 of those commands, then I knew it did not match any of them, and was non-compliant, if router two only needed 2 of those commands, I knew that it was compliant.
Kind of a backwards approach, and I would still like to see the search work.
Thanks for the help,
Craig

Similar Messages

  • Seemingly simple, yet annoying reg. expression issue

    Hey guys,
    Im considerably familiar with the use of regular expressions in Java (and other languages), yet seem to be having a very simple problem.
    I wish to match a full stop character occuring after a space in a string, once that space does not occur after a digit.
    e.g. "went to the shop . This is another sentence"
    The code I'm using is this:
    String s = "went to the shop. This is another sentence"
    s = s.replaceAll("([^0-9]+)\\s+\\.","$1.");This doesn't seem to work, neither does:
    String s = "went to the shop. This is another sentence"
    s = s.replaceAll("(\\D+)\\s+\\.","$1.");It seems that there's a problem with the first + symbol, but I'm not sure exactly what the problem is.
    Any insights?
    Edited by: SuperGrover on Jan 19, 2009 12:35 PM

    SuperGrover wrote:
    The problem seems to occur when there's more than one occurance of the space before a fullstop in the string, so the above code doesn't work for the following string:
    "went to the shop . This is another sentence . And another"
    It only replaces the final occurance, despite using the replaceAll method.When I tested your pattern (using JRET), it matched both occurrences in the sample string!
    The matching was done by repeated invocations of the method [Matcher.find|http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html#find()].
    Maybe [String.replaceAll|http://java.sun.com/javase/6/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String)] does something different internally?
    Anyway, are you aware that your expression always matches the entire string preceding the space and the dot?
    This is probably not really what you are looking for. You may want to try this expression instead, which uses negative lookbehind:
    (?<!\d)\s+\.Edited by: McNepp on 20.01.2009 09:47

  • Validate through Reg Expression

    Hi,
    I have following requirement to be achieved through reg expressions.
    Need to write a boolean method which takes a String parameter that should satisfy following conditions.
    o 20 character length string.
    o First 9 characters will be a number
    o Next 2 characters will be alphabets
    o Next 2 characters will be a number.(1 to 31 or 99)
    o Next 1 character will be an alphabet
    o Last 6 characters will be a number.
    JDev 11.1.1.6.0

    Hi,
    Hope following links are useful
    https://blogs.oracle.com/shay/entry/regular_expression_validation
    http://www.vogella.com/articles/JavaRegularExpressions/article.html

  • CFINPUT Reg Expression Validation Pattern Help

    I've got a form with a non-required field that needs to meet
    some validation requirements (Numbers, Letters, 'space character'
    or 'blank, empty string' only) if the user chooses to fill it
    out...
    I'm using CFINPUT tag with the following settings, does my
    Reg Expression pattern look OK?
    REQUIRED="No"
    VALIDATE="regular_expression"
    PATTERN="^[a-zA-Z *]{1,40}$"
    MAXLENGTH="40"
    Thanks for any help. I'm v. new to regular expressions (10
    hrs education at Google Univ.)
    Sincerely,
    Paul Cross

    I think you want something more like this:
    ^[a-zA-Z0-9 ]{0,40}$

  • Reg expression help

    Can/will you help me make a regular expression for these characters? I want to replace eveyone occurance in a string contianing these chars
    \/:*"<>|
    with
    right now I am doing a string.replaceAll(...) on each char but I was wanting to combine that to one reg expression. What cha got? I am doing this b/c I am generating file names and those are not valid chars allowed in file names.
    Thanks
    Doopterus

      String regex = "[*<>/'\"\\\\]";In a character class (i.e., between the square brackets), "|" has no special meaning.

  • LMS 4.2 Compliance check extended access-list

    Hi,
    I would like to check of our router has one specific line in an extended access-list. I have tried to use the 'baseline compliance' to get the output, but can't get the syntax right.
    I would like to avoid checking on the line number in the access-list, because this is not the same on all the routers.
    I have made a new compliance check like this:
    'submode': ip access-list extended 'acl-name'
    +deny tcp any any eq smtp
    But that is not working, Can some one show me the 'right path'?
    Thanks
    Soren                 

    Doesnt have any issues on my Lab 4.2.4. following is the Job Work order :
    Name:
    Archive Mgmt Job Work Order
    Summary:
    General Info
    JobId: 2704
    Owner: admin
    Description: test_acl
    Schedule Type: Immediate
    Job Type: Compliance Check
    Baseline Template Name: test_acl
    Attachment Option: Disabled
    Report Type: NAJob Policies
    ----------------------------------------------------------------------------------------------E-mail Notification: Not Applicable
    Job Based Password: DisabledDevice Details
    Device
    Commands
    Sup_2T_6500
      ip access-list standard 21
      permit host 10.20.30.40
      permit host 40.30.20.10
      deny any log
    10.104.149.180
      ip access-list standard 21
      permit host 10.20.30.40
      permit host 40.30.20.10
      deny any log
    Check your template, or export it and share, i will try it on my LMS server. also, check the same complaince job on other devices if you have such issues.
    -Thanks
    Vinod
    **Rating Encourages contributors, and its really free. **

  • SSRS expression issue

    Hello All,
    I'm having an issue with adding parameters to the report with the below statement. When I add @Start as a parameter in report and set the default value to =DATEADD( "M", -1, DATEADD("QQ", DATEDIFF("QQ", 0, Today()),0)),
    I get an error saying - An error occured during local report processing. How can I set default value for @End to - DATEADD(day, -1, DATEADD(month, DateDiff(month, 0, @Start) +1, 0))? Thanks
    declare @Start as date
    declare @End as date
    declare @NextStart as date
    Declare @NextEnd as date
    Set @Start= DATEADD( MM, -1, DATEADD(QQ, DATEDIFF(QQ, 0, GETDATE()),0))
    Set @End = DATEADD(day, -1, DATEADD(month, DateDiff(month, 0, @Start) +1, 0))
    Set @NextStart = DATEADD(MONTH, 1, @Start)
    Set @NextEnd = DATEADD(day, -1, DATEADD(month, DateDiff(month, 0, @Start) +2, 0))
    Thanks,
    Amol

    Hi Neha,
    Thank you very much for your help. The expressions you suggested works perfect. The only issue is with @NextEnd paramater. I get default date as 09/30/2014 instead of 07/31/2014.
    For @NextEnd
    =DateAdd("d",-1,DateAdd("q",1,DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)))
     Thanks again for your help.
    Amol

  • IIS Express Issue?

    I am working in a visual studio premium 2013 solution that has a web project and class library. The web project is called UI and the class library project is called AppService. We are using ServiceStack and AngularJS. The UI project
    is calling the AppService project via AngularJS controller. The class library is a pass through which calls APIs for data.
    The web project was created as an empty web project that another team member created. Items were added as needed. It is set up to use IIS Express. The web project is defined to use port 30000 so that the URL is http://localhost:30000/.
    When I try running the application using port 30000 I am not getting data back; heck, when I am in debug mode I am not stepping into the AppService project. I am the only person on the team experiencing this problem. There are four other developers
    on the team.
    In the UI project we have a Global.asax file. In the Application_Start property we are setting a new instance of the AppServiceAppHost object. We are able to step into this method when debugging.
    The crux of the problem is that when I change the port number to something other than 30000 (e.g. 30001, 30002) everything works. We are getting data; we step into the AppService project when debugging.
    When I am using port 30000, I am seeing in the IIS express logs the error "Object reference not set to an instance of an object" with the stack trace pointing to ServiceStack.HttpHandlerFactory..ctor().

    Hi Gerald,
    Thank you for posting in the MSDN forum.
    Actually this forum is to discuss the VS IDE usage, if this issue is related to web project, you could ask this question in the ASP.NET forum:
    http://forums.asp.net. If then, you could get an answer more quickly and professional. Thanks for your cooperation
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SSRS 2012 background color format by expression issue when exporting to Excel.

    We are using SSRS 2012. We have a report that conditionally formats a background color for some cells. The report renders properly in a browser and in Excel 2003 format. In Excel format all cells after the first one that meets the condition are highlighted,
    even if only one cell should.
    The sample expression that triggers this condition looks like this:
    =IIF(Fields!VIOL_NOTE.Value="Internal","Green","No Color")
    All cells after the first one that meets the condition Fields!VIOL_NOTE.Value="Internal" have a green background.
    Excel 2003 (proper) results:
    Excel (improper) results:
    Zenon

    Hi Zenon,
    Based on your description, I try to reproduce the issue in my test environment, however it is work well. After export the report to Excel and Excel 2003, I can get exact same result when open the Excel file in Excel 2010.
    Did you open the repot in Excel 2003 or Excel 2007-2010? Please post more deatils, so we can help to work out this issue.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

  • HP Color LaserJet 2600n and Airport Express Issues

    To me it seems like more of an issue with the Airport Express and Snow Leopard. Am I totally off base on this. I tried the work around post in another thread on here and it just fails to connect to the printer properly. Either way, I wonder how long it will take to get this fixed.

    To me it seems like more of an issue with the Airport Express and Snow Leopard. Am I totally off base on this. I tried the work around post in another thread on here and it just fails to connect to the printer properly. Either way, I wonder how long it will take to get this fixed.

  • LMS 4.2 Topology Data Collection Issue

    Hi there,
    i have an issue with the lms 4.2 Topology Data Collection. After installation the Topology Data Collection was running normaly, but since first server reload the Topo Data Collect under Inventory > Dashboards > Device Status > Collection Summary is "frozen". It only shows the following content from first run:
    Topology Data Collection    193    0    Not Available     Running    Schedule
    Is there any option to stop this process elsewhere? I cannot find anything under jobs in running state or so. Clicking on Schedule only give me the option to start data collection, but lms always returns that the process is running.
    Thanks for help.

    Hi,
    i have reseted the ANI db using NMSROOT\bin\perl.exe NMSROOT\bin\dbRestoreOrig.pl dsn=ani dmprefix=ANI
    Everything is set to 0:
    Topology Data Collection      0 0 Not Available                          Running Schedule
    UT Major Acquisition            0 (0 End hosts 0 IP Phones) 0      Not Available Idle Schedule
    VRF Collection                    0 0                                              Not Available Idle Schedule
    But Topology Data Collection is still frozen to "Running" state....

  • LMS 4.2.3 - C6500 VSS - Issue with inline card on secondary chassis

    Hello,
    We are currently setting up a fresh new LMS 4.2.3 server to administrate a 90 LAN-device-perimiter. Installation is OK (on a Windows Server), devices are up, monitored and their configurations archived.
    The core switches are Catalyst 6506 VSS (s2t54-IPSERVICESK9-M - 15.1(1)SY) including 2 inlines cards :
    - WS-C6505E-SUP2T
    - WS-X6824-SFP-2T
    There is an issue with line card WS-X6824-SFP-2T recognition on secondary chassis only. We updated the last software packages for LMS (via Admin > Software Center > Device Update) and situation improved but still, it is not behaving as excepted.
    Impact : Topology, Ciscoview and Device Center for C6506-VSS do not show the card and links on the WS-X6824-SFP-2T of secondary chassis.
    Do you have this issue as well ? Any direction or help ?
    I am afraid of a potential bug...
    Rgds,
    Yoann

    When you were placing the internal test calls, where was your phone located?   The RTP streams are usually only set up between the two endpoints (assuming no transcoder or MTP is used).
    Have you have already checked calls between IP phones at your central site (where Unity is located) and IP Phones at site A?   Are these working fine?   If not, then it's likely you do have a QoS issue over the WAN to Site A.
    Have you confirmed whether or not calls from the PSTN gateway at site A experience any voice QoS issues when transferred to an IP Phone at the central site?
    Is the same codec is being used for the MGCP gateway as for IP Phones at that site (check the Region settings for the Device Pool it's in)?
    If these things have all been checked, then you may want to consider collecting a simultaneous sniffer trace from each end of a single call, and comparing what's seen at the two endpoints.
    Kind regards,
    Craig

  • LMS 4.2.4 intermittent Syslog issue

    Hi All,
    syslogs services on the LMS stops all of a sudden and doesn't reflect the current logs from the devices till we restart services.
    Performed below steps
    -> Found the device logs are making its way to syslog.log file(CSCOpx>logs)
    -> SyslogCollector and SyslogAnalyzer are in healthy state.
    -> Even the collector subscription status is fine.
    After the restart of the SyslogCollector and SyslogAnalyzer  the logs reflects back on lms. Issue is intermittent and reappeared couple of times. any suggestions to find root of the problem ??
    Regards,
    Channa

    Hi Channa,
    looks like , you are getting huge no. of syslogs from your devices..
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,389, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,390, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,390, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,391, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,392, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,393, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,393, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,394, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,394, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,395, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,396, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,396, Anonymous Dropping the syslog as queue is full 100000
    SyslogCollector - [Thread: EvaluatorThread-0] INFO , 10 Jul 2014 16:53:16,397, Anonymous Dropping the syslog as queue is full 100000
    and which is why they are getting dropped.
    2 suggestions:
    check the filters > configure the filters for only those messages that you want
    second :
    plan to upgrade the LMS from 4.2.4 to 4.2.5 .  LMS 4.2.5 have a fix of  the syslogs issue . in 4.2.5 syslogs are well managed.
    BUG:CSCul38962 : Syslog dropping issue
    above BUG is fixed in 4.2.5
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ****

  • Kodak Gallery (Ofoto Express) Issues with iPhoto 8

    Since uploading iPhoto 8 I haven't been able to get the application that I use for Kodak Gallery (Ofoto Express) to work at all. Anyone else having these issues? If so, do you know a solution or work around??

    Ofoto Express is an old app (2004), and it looks like Kodak is not going to update it (not even to put Kodak's name on the app).
    Ofoto Express looks for Albums, so it won't find the new iPhoto "events". Good news is that the last event you load is placed in iPhoto's "Recent" folder, which is a folder that Ofoto Express recognizes. So, in iPhoto, select the event that you want to upload to Kodak before loading Ofoto Express.
    Tony

  • Ciscoworks Lms 3.2 giving ANi Server issue

    We have lms 3.2 configured at our organisation.But i am not able to initialise ANI server.The process is always down and not coming up.
    EDS and anidatabase processes are up.But ani server is not coming up due to which i am not able to access the CAmpus manager.Please reply asap.

    Before this below was the output then i followed one doc im attaching  it now and changed as per the instructions.Il paste the current files also.
    EnablePurgeArchives=ON
    PurgeArchivesOlderThan=180
    EnablePurgeJobs=ON
    PurgeJobsOlderThan=180
    EnableCMPurgeArchives=ON
    I have attached the doc which i followed to change the aniserver file but still did not initialise the aniserver.
    Aniserver issue .pdf is the file i followed to change the corrupted aniserver file.
    aniserver.properties is the file attached with current settings after changing.

Maybe you are looking for