This website uses cookies. By clicking OK, you consent to the use of cookies. Click Here to learn more about how we use cookies.
OK
  • RSA.com
  • Products
    • Archer®
      • Archer®
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Archer® Exchange
      • Training
      • Upcoming Events
      • Videos
    • RSA® Fraud & Risk Intelligence Suite
      • RSA® Fraud & Risk Intelligence Suite
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Web Threat Detection
      • Upcoming Events
      • Videos
    • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Cloud
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Upcoming Patch Content
      • Videos
    • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication Mobile SDK
      • Advisories
      • Events
      • Ideas
      • Knowledge Base
      • Request Access
      • Training
    • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Events
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® Adaptive Authentication for eCommerce
      • RSA® Adaptive Authentication for eCommerce
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Ideas
      • Knowledge Base
      • Training
      • Videos
    • RSA® FraudAction Services
      • RSA® FraudAction Services
      • Advisories
      • Discussions
      • Documentation
      • Ideas
      • Videos
    • RSA® Web Threat Detection
      • RSA® Web Threat Detection
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Videos
    • RSA NetWitness® Platform
      • RSA NetWitness® Platform
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Integrations
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • RSA NetWitness® Detect AI
      • RSA NetWitness® Detect AI
      • Documentation
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA NetWitness® Investigator
      • RSA NetWitness® Investigator
      • Documentation
      • Download the Client
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA NetWitness® Orchestrator
      • RSA NetWitness® Orchestrator
      • Overview
      • Documentation
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
    • RSA SecurID® Suite
      • RSA SecurID® Suite
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Knowledge Base
      • Ideas
      • Integrations
      • Training
      • Videos
    • RSA® Identity Governance & Lifecycle
      • RSA® Identity Governance & Lifecycle
      • Advisories
      • Blog
      • Community Exchange
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • RSA SecurID® Access
      • RSA SecurID® Access
      • Advisories
      • Blog
      • Discussions
      • Documentation
      • Downloads
      • Ideas
      • Integrations
      • Knowledge Base
      • Training
      • Upcoming Events
      • Videos
    • Other RSA® Products
      • Other RSA® Products
      • RSA® Access Manager
      • RSA® Data Loss Prevention
      • RSA® Digital Certificate Solutions
      • RSA enVision®
      • RSA® Federated Identity Manager
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
  • Resources
    • Advisories
      • Product Advisories on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Hosted
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Product Advisories
    • Blogs
      • Blogs on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Blogs on RSA Link
    • Discussion Forums
      • Discussion Forums
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Discussion Forums on RSA Link
    • Documentation
      • Product Documentation
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Documentation on RSA Link
    • Downloads
      • Product Downloads
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Downloads on RSA Link
    • Ideas
      • Idea Exchange
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® FraudAction Services
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Documentation on RSA Link
    • Knowledge Base
      • Knowledge Base
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication Mobile SDK
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Knowledge Base Pages on RSA Link
    • Upcoming Events on RSA Link
      • Upcoming Events
    • Videos
      • Videos on RSA Link
      • Archer®
      • RSA® Adaptive Authentication Cloud
      • RSA® Adaptive Authentication On-Premise
      • RSA® Adaptive Authentication On-Premise (Cassandra)
      • RSA® Adaptive Authentication for eCommerce
      • RSA® Identity Governance & Lifecycle
      • RSA NetWitness® Platform
      • RSA SecurID® Access
      • RSA® Web Threat Detection
      • All Videos on RSA Link
  • Support
    • RSA Link Support
      • RSA Link Support
      • News & Announcements
      • Getting Started
      • Support Forum
      • Support Knowledge Base
      • Ideas & Suggestions
    • RSA Product Support
      • RSA Product Support
      • General Security Advisories and Statements
      • Product Life Cycle
      • Support Information
      •  
      •  
      •  
      •  
      •  
  • RSA Ready
  • RSA University
    • Certification Program
      • Certification Program
    • Course Catalogs
      • Course Catalogs
      • Archer®
      • RSA NetWitness® Platform
      • RSA SecurID® Suite
    • On-Demand Subscriptions
      • On-Demand Subscriptions
      • Archer®
      • RSA NetWitness® Platform
      • RSA SecurID® Suite
    • Product Training
      • Product Training
      • Archer®
      • RSA® Fraud & Risk Intelligence Suite
      • RSA® Identity Governance & Lifecycle
      • RSA NeWitness® Platform
      • RSA SecurID® Access
    • Student Resources
      • Student Resources
      • Access On-Demand Learning
      • Access Virtual Labs
      • Contact RSA University
      • Enrollments & Transcripts
      • Frequently Asked Questions
      • Getting Started
      • Learning Modalities
      • Payments & Cancellations
      • Private Training
      • Training Center Locations
      • Training Credits
      • YouTube Channel
    • Upcoming Events
      • Upcoming Events
      • Full Calendar
      • Conferences
      • Live Classroom Training
      • Live Virtual Classroom Training
      • Webinars
Sign In Register Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Announcements

Visit the Known Issues dashboard if you are experiencing issues on RSA Link

View Dashboard

RSA enVision® Discussions

Browse the RSA enVision discussion board to get product help and collaborate with other users of RSA enVision.
  • RSA Link
  • :
  • Products
  • :
  • Other RSA Products
  • :
  • RSA enVision
  • :
  • Discussions
  • :
  • Odd chars when using dbUpdate_watchlist.cmd
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page
RSAAdmin
RSAAdmin Beginner
Beginner
‎2008-10-14 03:56 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Odd chars when using dbUpdate_watchlist.cmd

I have a txt file that is created via a script that parses an enVision report in csv format.  When I open the txt file with notepad it looks just fine.  When I run >dbUpdate_watchlist.cmd TermedEmp 30dTerm.txt the first entry in the TermedEmp Watchlist is prefixed with three questionmarks.  Attached is the txt file of names that I'm loading into the Watchlist.

Has anyone seen odd chars in the first entry of a Watchlist that they loaded via the dbUpdate script?

  • Tags:
  • Community Thread
  • Discussion
  • enVision
  • Forum Thread
  • RSA enVision
Preview file
1 KB
0 Likes
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
11 Replies
PatrickChouinar
PatrickChouinar Beginner
Beginner
‎2008-10-14 07:12 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I believe the problem is in your text file...

 

I did a quick test with your file as posted and it does give me some weird chars.

 

When I used "type 30dTerm.txt" in a DOS window, it printed out some weird chars at the beginning of the file. So, I opened the file using Notepad++ and copied/pasted the list of names in a new document and tried again with the new file... TA-DA ! It worked !

 

I dunno what cause those chars to appear in the first list, but even if you can't "see" the chars in notepad, they were in it anyway.

 

How was that file created ? Did it come from an automated service ?

 

 

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to PatrickChouinar
‎2008-10-15 12:08 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I opened it wirh notepadd++ also but saw nothing.  I didn't think of copying from there into another txt doc.

 

the source is from an enVision report csv file that i'm parsing with a powershell script i wrote.  The script strips out the header in the csv plus i have to strip out the double quotes.  i'm then writing this array to a txt file.  this is obviously where the problem is coming from.

 

Here's the powershell code if anyone is a guru I'd appreciate pointing out the possible source.  The AccountChanged is the header from the csv report file

 

ForEach ($file in $files){
    $array = (Get-Content $file.PSPath)
    foreach ($element in $array) {
    if ($element -notmatch "AccountChanged") {$n_element = $element -replace("`"","")}
        $n_element >> $outfile
    }    

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-15 03:00 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I found the problem.  Using Powershell script I had to specify "-Encoding "ASCII" so the code should be:

 

ForEach ($file in $files){
    $array = (Get-Content $file.PSPath)
    foreach ($element in $array) {
    if ($element -notmatch "AccountChanged") {$new_element = $element -replace("`"","")}
        $new_element | Out-file -Encoding "ASCII" -Append $outpath\$outfile
        
    }
    
}

 

Now that I have this working, I will move the script to our prod system and confirm.  When a employee is termed their account is disable which triggers a Windows Security_642 message.  I run a daily report that outputs a csv file.  The script takes the 30 most current csv files then uploads the past 30 days of termed employees into a watchlist.

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-15 03:23 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Good catch.    Nice script too.    When you indicated that it "uploads the past 30 days of termed employees into a watchlist" are you calling the dbUpdate_watchlist.cmd and passing it your txt file as indicated earlier in the thread, or have you re-writen the functionality of dbUpdate_watchlist within your powershell script?

 

Reason i ask is regarding the watchlist size limitation issue, written about in the other thread here in the forum.

 

thanks

ryan 

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-20 03:15 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I'm not a Sybase person, but from what I can tell the limit is not a problem of the script but I'd suspect that it's the schema of the watchlist table.  This table has 6 fields; guid, name, description, regex, listvalues, modified.  The listvalues field is the limiting field, this is the field with those odd ~W~ value delimiters.

That said I feel that the watchlist table should be a database and each Watchlist should be table within that database.  So my attempts to creat a 30 day watchlist of terminated accounts list is too large at our company... but I'm still hoping for some sort of workaround.  It's not likely to get any support from the enVsison product engineers

But ehhh....

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-20 04:13 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hey RSA (Matt?).  What is the byte size limit of the listvalues field in the watchlist table?

 

Why?

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-20 05:26 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

   IF

          Enough people scream.

               AND

          Screams are loud enough.

      DO

           Product Enhancement Request

      ELSE

           ECHO "Thanks, we'll look into that." 

 

 

I agree with you regarding the need for a dedicated table for watchlists.  I too have quite a few lists i tried to synchronize into enVision watchlists but I could not because of this limitation.   Its a very frustrating challenge with the product.   In fact, I feel so strongly about watchlists and need to make numerous improvements around them, that it calls for a pulse check across the forum community.

 

If enough of us have a valid requirement for improving them, and by the sounds of others on the forum I think we do, then I truly believe RSA will heavily consider such a request.  

 

If you agree with  Kurta59's suggestion for a dedicated database for watchlists, containing tables for each watchlist, then Kudo his message so your vote can be heard. 

 

IMHO the RSA folks with power to steer the product are very good at listening to the user community, but they can't serve everyone's needs for every little request.  I think in this case some serious R&D is warranted.  Especially given the maturity of "watchlist" like functions in competitor products.

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-22 07:01 AM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Sorry for the delay, but I went and checked on this.  I have been told:

 

1) There is no limit to how many characters a particular watchlist value can be

2) There is no limit to how many values per watchlist

3) There is no limit to how many watchlists you can create

 

Based on that, if you are seeing truncations when you try to import lists from a file, I would open a support case.

0 Likes
Share
Reply
RSAAdmin
RSAAdmin Beginner
Beginner
In response to RSAAdmin
‎2008-10-22 12:00 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

No limit?  Really? Then the Sybase update command has a limit. Here is a quick rundown of what the script does. 

 

The dbUpate_watchlist script reads a file and creates one string named WATCHLIST here:

 

for /F "tokens=1" %%i in (%INPUTFILE%) do call :Append_CMD %%i 

:Append_CMD
set WATCHLIST=%WATCHLIST%%1~W~

 

Then it creates a .sql file to update the watchlist table to modify an existing Watchlist created from the GUI. 

 

update "watchlist"  set listvalues = '%WATCHLIST%' where name = '%WATCHLISTNAME%';

 

I described the watchlist table's fields previously in this thread. The script modifies the record matching the Watchlist name via the Sybase update and set functions to make the listvalues field to be the WATCHLIST string.


It has been discussed in other sections of this board that people have run into a limit on the number of items that they can to load into a Watchlist via this script.  This number of items actually turns out to be one single string of the users items delimited with ~W~ ie: the variable %WATCHLIST% becomes joe~W~bob~W~carol~W~ etc.

 

I'm not a Sybase person but from a slightly more generic database view indicates that there is a bottleneck here of either the CHAR (byte) size of the listvalues field maximum and/or the Sybase update command has a limit to the length of the string of it's 'set' parameter.  Or both.

 

Is dbUpdate_watchlist.cmd an RSA supported script?

0 Likes
Share
Reply
  • « Previous
    • 1
    • 2
  • Next »
  • « Previous
    • 1
    • 2
  • Next »
Powered by Khoros
  • Products
  • Resources
  • Solutions
  • RSA University
  • Support
  • RSA Labs
  • RSA Ready
  • About RSA Link
  • Terms & Conditions
  • Privacy Statement
  • Provide Feedback
© 2020 RSA Security LLC or its affiliates.
All rights reserved.