Using MD5 on Solaris 8

Is there anyway to use a files content as input for the md5-sparc command?
For example: ls -Rap /usr/bin > test and then use the test file to run the md5-sparc to assign signatures to the files located in the test file.

Not sure how this relates to zones, but something like should do it:
find . -type f -print | xargs md5sumDoes Sun ship an md5 command on Solaris now? I've had my own private copy in my personal "bin" directory since 2.6 or before so I haven't really paid any attention...

Similar Messages

  • Using MD5 to generate Dimension IW Keys

    Hi Guys
    I had wanted to use MD5 to hash concatenated strings in a dimension table to come up with IW Keys. I must be missing something because I couldn't find much around the net when looking for it.
    Basically were looking at facts and dimension data in Star Schema. Now typically in a star schema for each dimension we generate an IW Key which we store in the fact to link the two:
    So a region table might look like:
    Region=IW Key
    A=1
    B=2
    c=3
    And A fact table would be like
    RegionIWKey,Metric1,Metric2
    1,3.0,4.0
    2,3.0,4.1
    3,3.0,4.0
    1,3.2,4.3
    Now to load the fact we need to load the dimensions first and then get the IW key, and this takes a lot of time.
    After all that here's the question?
    Why couldn't we just hash the dimension fields to get an IW Key then we could load facts and dimesnions in parallel.
    My understanding is that an MD5 Hash should do this, correct? Then we can index the hashed field. If I am missing something has anyone found out a way to do this successfully and get hashes with no collisions.
    Thanks for light anyone could shed on this.

    http://forum.java.sun.com/thread.jsp?forum=31&thread=225812

  • Using emacs on solaris 10

    Hi,
    Does anybody know how can i use emacs on solaris 10
    i tried to type
    emacs
    from a shell, but it responds me with
    emacs: command not found
    when i install solaris 10, is emacs installed by default or i have to
    install it by myself?
    I am very new to solaris, can anybody help me?
    thank you in advance.

    Emacs 21.3 is part of the Solaris10 Companion CD.
    The CD image is available for download on the Solaris10 download site.
    Various versions of Emacs are also available as individual downloads ( pkg-add ) from the Sun Freeware site, as well as, a number of other sites that support the Sun OSes. ................John.

  • How to use rsync on Solaris 10

    I have set up rsync to run as a daemon on 2 Solaris 10 servers
    rsync --daemon
    with a /etc/rsyncd.conf file of
    motd file = /etc/motd
    max connections = 5
    syslog facility = local3
    [ftp]
    comment = ftp area
    path = /
    read only = yes
    list = yes
    uid = nobody
    gid = nobody
    [tmp]
    comment = temporary file area
    path = /tmp
    read only = yes
    list = yes
    host allow = l3sun l4sun
    auth users = root
    when I execute
    rsync -vrzt l3:/usr/ptraq/man /usr/ptraq/man
    it gives the following:
    The authenticity of host 'l3 (89.1.20.13)' can't be established.
    RSA key fingerprint is 45:e6:23:88:42:7f:a6:9f:55:b4:43:ba:1c:1d:90:45.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'l3,89.1.20.13' (RSA) to the list of known hosts.
    Password:
    Password:
    Password:
    Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).
    rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c(359)
    Any ideas as to how to use rsync on Solaris 10

    When given a file source lie l3:/usr/ptraq/man with one colon (:) ssh attempts to connect using ssh.
    If you want to connect to the rsync daemon, you need to give 2 colons l3::/usr/ptraq/man.
    Your other alternative is to setup ssh keys so you can log in without a password and then you won't have to run rsync in daemon mode at all.

  • Can I use MD5 value for indexing files ?

    I would like to know if MD5 value for each unqiue file is also unique. I am wonder if U can use MD5 value of a file for indexing. Any suggestion ??

    I would like to know if MD5 value for each unqiue file
    is also unique.No, since the number of MD5 hashes is less than the number of possible files. Of course, if you don't have many files the probability of clashes is pretty low. There's some theory about this which you'll find in algorithms textbooks where they talk about hash tables.
    I am wonder if U can use MD5 value of
    a file for indexing. Any suggestion ??Why? Don't you want your index to tell you something about the contents of the file?

  • How to use md5 Checksums to verify thousands of copied files

    Hello,
    So I need to be able to verify the succesful copy of thousands of files using md5 checksums.
    is there a program for this or a string of code for terminal?
    Please help.
    Cheers.

    I cover how to do that in the link above, but to quickly do this, run the following command on both folder paths:
    find -s ~/Downloads -type f -exec md5 -q {} \; | md5
    This will generate a list of md5 checksums for each file in the directory (in this case, the Downloads directory in your home folder, but you can change this to whatever you would like), and then create a summary checksum of the collective checksums.
    In my case, the above command yields the following checksum:
    42cf9632cf763cad84c633f0cc7c93bb
    Doing this on my Documents folder yields the following checksum:
    782845544f0ecf8a7ae5fa66197d6abd
    You can then compare these to see if they are different. In this case they are, indicating the folders do not have the same contents.
    Keep in mind this may take a while to run, as checksums will have to be computed for each file in the directory. While this is a raw command, you can save it in a script and then simply run the script with an input argument to make it easier. For example, the following script should work:
    #!/bin/bash
    find -s $1 -type f -exec md5 -q {} \; | md5
    Saving this in a text file, naming it something like "dirsum" and then making it executable in a path location such sa /bin (or a custom added path) will make it easily accessible, so you can run the same command by simply typing the following in the Terminal (in this case to calculate a checksum of the Downloads folder):
    dirsum ~/Downloads

  • Hashing of the password field using MD5 and then store in the XML

    Hi,
    I need to design a form with User ID and a Password field. When i extract the XML from the form i need to hash the password field using MD5 and then store it. Does anyone have some kind of experience in doint it. Can you please suggest some way to do it.
    Thanks,
    Sayoni.

    Hi,
    To hash password you can use function from http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_md5/ or try to find another implementation. Just call this function on some event like button click for example.
    Also I made some example. See attach.
    BR,
    Paul Butenko

  • How to compare two files using MD5?

    Hi,all:
    How to compare two files to know if they're the same without any difference?I want to use MD5, but I just konw how get a message digest of a string. How to get a message digest of a file? Or there is other method to compare two files?
    Thanks advance!

    This is starting to sound rather a lot like a homework problem.
    An MD5 message digest is simply a 16 byte array. To compare two message digests...
    byte[] md5incoming = ...
    byte[] md5comparison = ...
    if( md5incoming.equals(md5comparison) ) {
       System.out.println("MD5 Checksums match");
    }To find out how to generate an MD5 checksum, please look up MessageDigest in the API documentation, and do a google search for "MD5 java"
    In a networked scenario, there are two issues - firstly the performance in sending copies of files all over the place (imagine if it's a 10Gb file to be compared over a 14.4K modem link, this would take a while). Secondly, the network link itself might insert an error in the file and you'd get a false miss.
    By only sending MD5 digests over the link, you simultaneously reduce the error (shorter files are less likely to be corrupted) and reduce the transmission time (16 bytes takes practically no time to transmit over damp string, let alone any sort of sensible device).
    D.

  • How to encrypt password using md5

    Hello all,
    I would like to generate a password and encrypt it using md5 with the current time(System's time) as the key, in Servlets.
    How do i go about doing this?
    Kindly guide.
    regards
    appu

    >
    I would like to generate a password and encrypt it
    using md5 MD5 is a non-reversible hashing, not an encryption!
    with the current time(System's time) as the
    key, If you use the current system time as the key for any encryption algorithm then how are you going to know what system time to use to decrypt?
    in Servlets.
    How do i go about doing this?Read up on encryption, the JCE and Servlets.

  • Question for using ORACLE with SOLARIS

    Hi Experts,
    I have worked Oracle with Linux in one of my projects 2yrs back and i was just a developer, used to write SQL Query, Creating Table and Objects.
    Now i got a question from TL which is
    Tell me about consequences for using Oracle with Solaris?
    I am not worked ORACLE with SOLARIS, Can some one give me the answer for this question with
    1. Difference between ORACLE with LINUX and ORACLE with SOLARIS.
    2. Advantages and Disadvantages Between ORACLE with LINUX and ORACLE with SOLARIS.
    Thanks,
    MuraliDharan V

    Hi MuraliDharan V,
    It would had been better if you had searched first;
    Here is one
    Advantage for Linux64-bit Versus Solaris-x86_64 OS in RAC
    And beside that your question is incomplete:
    -What Oracle? Database, etc
    -Which Version? 9i, 10g, etc
    Aside from that a simple search on google might have answered your question as well.
    But I think there is some new trend of dumping questions here before searching.
    Ex Senior DBA

  • Using Accessibility in Solaris 10

    Hello,
    I've installed Solaris 10 03/05 and am attempting to use the included Accessibility (explicitly the gnopernicus screen reader with Gnome). I have followed the instructions in the Java Desktop System Release 3 Accessibility Guide (http://docs.sun.com/app/docs/doc/817-7307) RE: changing the GDM greeter, sym linking the two jar files (enabling accessibility), defining a line in AccessKeyMouseEvents to run srcore when pressing CTRL-s, but there's still something I'm missing, as pressing CTRL-s at the login screen, or once logged in, produces nothing.
    I've also tried logging in, and as I can not use X at all, login in a second time via SSH, setting my DISPLAY variable, and running srcore and (for something to try) gnopernicus manually from the SSH window - I get messages in the SSH window about speech access initialization succeeding, but no speech.
    My sound card is detected by Solaris (no 3rd party drivers required) and I can play audio with audioplay. I've looked in logs (syslog, xorg) but found nothing that appears to be related to this issue.
    I'm wondering whether anyone here has more experience with this than I (undoubtedly) and has a suggestion?
    Some things I've thought to try, but have not yet found enough info about, include:
    1. Perhaps sound needs to be turned on in Gnome first - can this be done without using the GUI? I've read about the sound-properties application but it requires use of X.
    2. Perhaps FreeTTS (or what default synthesizer is gnopernicus wanting to use?) is not installed? I installed the full Solaris 10 distribution and the companion CD.
    Thanks very much for your time and patience - it'd be great to try the accessible desktop out, I've gotten this to work under Linux a while back, but it's nice that Sun is bundling it with the OS.

    Hi Peter - thanks for your reply.
    I had already tried including the full path to srcore in AccessKeyMouseEvents (apologies for not mentioning this before) and still no luck.
    I've just now re-verified that I made the correct changes as outlined in the JDS3 accessibility guide. My AccessKeyMouseEvents line is:
    <Control>s 1 1000 1000 /usr/sfw/bin/srcore login disable-magnifier enable-speech enable-braille
    (it is all on one line)
    Any other suggestions?
    Is there a way I can determine (via a non graphical method) whether the proper modules are being loaded by gdm?
    Thanks,
    Ivan Fetch.

  • How can multiple versions of the appserver be used on a Solaris server...

    You can use the file-based versions of the Sun Java System Application Server to be co-located with any packaged based version or other file based version(s). The file based version is a full set of appserver components that reside under an install root.
    You can download the latest file based version of SJSAS 8.1 from SunSolve. We release updates to the file based version as a fully installable patch. The documentation for the current latest version, SJSAS 8.1 UR2 is located at http://docs.sun.com/app/docs/coll/1310.2
    The patch you retrieve is based on the OS:
    File-based AS 8.1 patches:
    119169: Solaris SPARC SE/EE
    119170: Solaris x86 SE/EE
    119171: Linux RHEL2.1 RHEL3.0 SE/EE
    119173: Solaris SPARC PE
    119174: Solaris x86 PE
    119175: Linux RHEL2.1 RHEL3.0 PE
    119176: Windows 2000/XP PE
    Please note that the file-based patch actually contains the full installer bundle of AS 8.1
    It is best to use the latest version of the patch ids listed above, which can be download from http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access
    If wrote the specifics of the patches in a forum item located at http://swforum.sun.com/jive/thread.jspa?forumID=114&threadID=57331.
    Hope this helps - Mark

    We worked with one of their partners gssinfotech to create a custom runbook for "upgrade in place"
    I think you might have to go to SQL2012 with 6.2.1 (there's a ton of benefits like always on that make BCP/DR with Tidal very smooth.) We've been Tidal 6 /SQL2012 for a while now so I forget. we're about 80% done with our 5.3.1 conversion
    We restore our 5.3.1 admiral database to a sandbox SQL2012 server, run some cleanup script (if not upgrade in place, don't forget to set queue to zero and disable all jobs)
    We installed a tidal Master then run every major rev and point to that database. (6.0,6.1,6.2,6.2 sp1)
    The database gets upgraded during the process (we have some trouble with our "older" 531 so we do the same thing each time)
    We then can use transporter to transport "legacy" 531 jobs to our pristine Tidal 6.2.1 (non-prod ) environment so we can take advantage of mapping files, etc. to switch things as needed
    This gives a lot of flexibility to moving things in when one piece or job set at a time.. we use it to move job frameworks into nonprod Tidal 6 so that developers and other groups can review / asses / rewrite / test /  their jobs on tidal 6.
    Marc

  • OK to use fdisk/100% "SOLARIS System" partition for RAID6 Virtual Drive?

    Solaris newb, here - I am configuring an x4270 with 16 135 GB drives. Basic approach is
    D0, D1: RAID 1 (Boot volume, Solaris, Oracle Software)
    D2-D13: RAID 6 (Oracle dB files)
    D14, D15: global spares
    After configuring the RAID's w/WebBIOS Utility, I am now trying to format/partition the RAID 6 Virtual Drive, which shows up as 1.327 TB 'Optimal' in the MegaRAID Storage Manager. After hunting around the ether for advice on how to do this, I came across http://docs.oracle.com/cd/E23824_01/html/821-1459/disksxadd-50.html#disksxadd-54639
    "Creating a Solaris fdisk Partition That Spans the Entire Drive"
    which is painfully simple: after 'format', just do an 'fdisk' and accept the default 100% "SOLARIS System" partition. After doing this, partition>print and prtvtoc show this:
    partition> print
    Current partition table (original):
    Total disk cylinders available: 59125 + 2 (reserved cylinders)
    Part Tag Flag Cylinders Size Blocks
    0 unassigned wm 0 0 (0/0/0) 0
    1 unassigned wm 0 0 (0/0/0) 0
    2 backup wu 0 - 59124 1.33TB (59125/0/0) 2849529375
    3 unassigned wm 0 0 (0/0/0) 0
    4 unassigned wm 0 0 (0/0/0) 0
    5 unassigned wm 0 0 (0/0/0) 0
    6 unassigned wm 0 0 (0/0/0) 0
    7 unassigned wm 0 0 (0/0/0) 0
    8 boot wu 0 - 0 23.53MB (1/0/0) 48195
    9 unassigned wm 0 0 (0/0/0) 0
    # prtvtoc /dev/dsk/c0t1d0s2
    * /dev/dsk/c0t1d0s2 partition map
    * Dimensions:
    * 512 bytes/sector
    * 189 sectors/track
    * 255 tracks/cylinder
    * 48195 sectors/cylinder
    * 59127 cylinders
    * 59125 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 48195 2849481180 2849529374
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    2 5 01 0 2849529375 2849529374
    8 1 01 0 48195 48194
    My question: is there anything inherently wrong with this default partitioning? Database is for OLTP & fairly small (<200 GB), with about 140 GB being LOB images.
    Thanks,
    Barry

    First off, RAID-5 or RAID-6 is fine for database performance unless you have some REALLY strict and REALLY astronomical performance requirements. Requirements that someone with lots of money is willing to pay to meet.
    You're running a single small x86 box with only onboard storage.
    So no, you're not operating in that type of environment.
    Here's what I'd do, based upon a whole lot of experience with Solaris 10 and not so much with Solaris 11, and also assuming this box is going to be around for a good long time as an Oracle DB server:
    1. Don't use SVM for your boot drives. Use the onboard RAID controller to make TWO 2-disk RAID-1 mirrors. Use these for TWO ZFS root pools. Why two? Because if you use live upgrade to patch the OS, you want to create a new boot environment in a separate ZFS pool. If you use live upgrade to create new boot environments in the same ZFS pool, you wind up with a ZFS clone/snapshot hell. If you use two separate root pools, each new boot environment is a pool-to-pool actual copy that gets patched, so there are no ZFS snapshot/clone dependencies between the boot environments. Those snapshot/clone dependencies can cause a lot of problems with full disk drives if you wind up with a string of boot environments, and at best they can be a complete pain in the buttocks to clean up - assuming live upgrade doesn't mess up the clones/snapshots so badly you CAN'T clean them up (yeah, it has been known to do just that...). You do your first install with a ZFS rpool, then create rpool2 on the other mirror. Each time you do an lucreate to create a new boot environment from the current boot environment, create the new boot environment in the rpool that ISN'T the one the current boot environment is located in. That makes for ZERO ZFS dependencies between boot environments (at least in Solaris 10. Although with separate rpools, I don't see how that could change....), and there's no software written that can screw up a dependency that doesn't exist.
    2. Create a third RAID-1 mirror either with the onboard RAID controller or ZFS, Use those two drives for home directories. You do NOT want home directories located on an rpool within a live upgrade boot environment. If you put home directories inside a live upgrade boot environment, 1) that can be a LOT of data that gets copied, 2) if you have to revert back to an old boot environment because the latest OS patches broke something, you'll also revert every user's home directory back.
    3. That leaves you 10 drives for a RAID-6 array for DB data. 8 data and two parity. Perfect. I'd use the onboard RAID controller if it supports RAID-6, otherwise I'd use ZFS and not bother with SVM.
    This also assumes you'd be pretty prompt in replacing any failed disks as there are no global spares. If there would be significant time before you'd even know you had a failed disk (days or weeks), let alone getting them replaced, I'd rethink that. In that case, if there were space I'd probably put home directories in the 10-disk RAID-6 drive, using ZFS to limit how big that ZFS file system could get. Then use the two drives freed up for spares.
    But if you're prompt in recognizing failed drives and getting them replaced, you probably don't need to do that. Although you might want to just for peace of mind if you do have the space in the RAID-6 pool.
    And yes, using four total disks for two OS root ZFS pools seems like overkill. But you'll be happy when four years from now you've had no problems doing OS upgrades when necessary, with minimal downtime needed for patching, and with the ability to revert to a previous OS patch level with a simple "luactivate BENAME; init 6" command.
    If you have two or more of these machines set up like that in a cluster with Oracle data on shared storage you could then do OS patching and upgrades with zero database downtime. Use lucreate to make new boot envs on each cluster member, update each new boot env, then do rolling "luactivate BENAME; init 6" reboots on each server, moving on to the next server after the previous one is back and fully operational after its reboot to a new boot environment.

  • Using md5 in a manul tabular form to compare if column value changed

    Version: Application Express 3.2.0.00.27
    Hello,
    I am creating a manul tabular form using apx_item in my select statment that is the source for the query in a report region. I am using a collection. The collection creation statement is:
        apex_collection.create_collection_from_query(
           p_collection_name => 'DELEG_COLL',
           p_query           => 'SELECT authid
                               ,empid empid
                               ,to_char(deldate,''DD-MON-YYYY'') deldate
                               ,delscope delscope
                               ,dellimits dellimits
                               ,subdelrights subdelrights
                               ,to_char(delexpiry,''DD-MON-YYYY'') delexpiry
                               ,to_char(datedelremoved,''DD-MON-YYYY'') datedelremoved
                               ,delremovalcomments delremovalcomments
                               ,delegator delegator
                               ,''O'' original_record
                               ,wwv_flow_item.md5(delscope, dellimits, subdelrights,
                                  to_char(delexpiry,''DD-MON-YYYY'') delexpiry,
                                  to_char(datedelremoved,''DD-MON-YYYY'') datedelremoved,
                                  delremovalcomments, delegator)
                               FROM tbl_delegations
                               where empid = v(''P12_EMPID'')',
           p_generate_md5     => 'YES');The above code is giving me an error in the function
    wwv_flow_item.md5(delscope, dellimits, subdelrights,
                                  to_char(delexpiry,''DD-MON-YYYY'') delexpiry,
                                  to_char(datedelremoved,''DD-MON-YYYY'') datedelremoved,
                                  delremovalcomments, delegator)It doesn't seem to like where I attempt to convert date column delexpiry and datedelremoved to a varchar. I am doing this as in the db they are dates and inorder to using the md5 function to compare if the values have changed and only update rows where the values changed.
    There error that I get is:
    ORA-20104: create_collection_from_query Error:ORA-20104: create_collection_from_query ParseErr:ORA-00907: missing right parenthesis
    In the collection I am trying to store the md5 hash result. I haved all the update and insert logic working expect for date type columns. THose give the above error.
    I thank you ahead of time for your assistance!
    A. Shalon

    Helen,
    Not sure I fully understand your goal.  We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
    has the email setup.  We do this for alot of workflow tasks.
    So, in the workflow you can have a blanket statement like what I previously listed:
    if Current Item:hiddenStatus  not equals Current Item:Status
        .... do something
    or you can do something like:
    if Current Item:hiddenStatus equals "In-Progress"
        .... do something
    Else if Current Item:hiddenStatus  equals "Completed"
        .... do something
    or combine the two and do nested "if" statements.  Then you add an email statement wherever you need it like:
    if Current Item:hiddenStatus  equals "Completed"
       then email "these users"
    To add the email part, just type in "email" on the line where you want to add a statment.  There is only one option to choose from.  That will display the line "then email these users".   The "these users" will be a link.  When you
    click it you will get a popup to add the email info.  We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields.  On the email form, you can type in your own text, designate that a value is based
    on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc.  To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
    in the bottom-left for the text area.  There is alot you can set in the mail.
    Does this help answer your question?
    - Peter

  • Using vn_make_ops in Solaris 10

    The vnode.h file provided with Solaris 10 provides a new function, vn_make_ops, and recommends using it to create vnodeops structs. There is no explanation given as to how vn_make_ops is supposed to be used. All of my attempts to use it have resulted in kernel crashes. Anyone have any insight/suggestions?
    Thanks in advance!

    Hi Peter - thanks for your reply.
    I had already tried including the full path to srcore in AccessKeyMouseEvents (apologies for not mentioning this before) and still no luck.
    I've just now re-verified that I made the correct changes as outlined in the JDS3 accessibility guide. My AccessKeyMouseEvents line is:
    <Control>s 1 1000 1000 /usr/sfw/bin/srcore login disable-magnifier enable-speech enable-braille
    (it is all on one line)
    Any other suggestions?
    Is there a way I can determine (via a non graphical method) whether the proper modules are being loaded by gdm?
    Thanks,
    Ivan Fetch.

Maybe you are looking for

  • Hierarchy format in Flat file

    Hi gurus,       please tellme  the Hierarchy format in Flat file.            ThanQ.    Regards,    Ramesh.

  • Document saving as repeated files: cannot delete?

    I have made a simple word document on Pages, that I conitue to work at a little each day. Currently there are 56 document under this name that I cannot delete.  When I try to open it, it says: The alias "EOSC Study Questions" can't be opened because

  • Crystal report 8.5 and 11 compatibility with Office 2007

    Hi, we are currently running Crystal report 8.5 and 11. We are projecting to migrate to version 2007 of Office. Is Crystal report 8.5 and 11 has been tested with office 2007? Regards,

  • How to change Label Color Dinamically

    Hallo, i have a Label: <s:Label id="fotoAssociata_nuostr" text="Foto Non Associata" left="512" top="138" color="RED"/> The color is RED and i want to change it dinamically through ActionScript but when i call this.fotoAssociata_nuostr, i can't find c

  • Box to Box quasi redundancy

    Hi folks, I tried to run box-to-box redundacy between two different models of CSS. Box1 is a CSS 11501 software 7.20 build 104 and box2 is a CSS 11050 sofware 5.00 build 63. Playing the script ends up with: File copy Config Sync Failed. Commit unsucc