file structure

Hi,

We are running Novel OES2, SUSE10 and i have a question on the file structure. I am looking for a way to search for certian .c files and to see their associated MD5 hashes.

Thank you
  • mac57;2332056 wrote:
    Hi,

    We are running Novel OES2, SUSE10 and i have a question on the file structure. I am looking for a way to search for certian .c files and to see their associated MD5 hashes.

    Thank you


    The two quickest ways I can think of for searching:
    1) Use NRM so the search executes on the server. There's a custom inventory search you can run
    2) SSH into the server and use the native linux "find" command

    I'm sure there's a native way to find the MD5 hash, but I use a windows tool for that (ie, once I find the file, I'd map a drive, and run the tool). Any number of freeware tools exist.

    But again, I'm sure there's a native linux command to show the hash
  • On 09/04/2014 10:16 AM, kjhurni wrote:
    >
    > 2) SSH into the server and use the native linux "find" command
    >
    > I'm sure there's a native way to find the MD5 hash, but I use a windows
    > tool for that (ie, once I find the file, I'd map a drive, and run the
    > tool). Any number of freeware tools exist.
    >
    > But again, I'm sure there's a native linux command to show the hash


    As usual, you're correct.


    find /path/to/search -iname 'whatever.c' -execdir md5sum '{}' ';'


    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...
  • ab;2332072 wrote:
    On 09/04/2014 10:16 AM, kjhurni wrote:
    >
    > 2) SSH into the server and use the native linux "find" command
    >
    > I'm sure there's a native way to find the MD5 hash, but I use a windows
    > tool for that (ie, once I find the file, I'd map a drive, and run the
    > tool). Any number of freeware tools exist.
    >
    > But again, I'm sure there's a native linux command to show the hash


    As usual, you're correct.


    find /path/to/search -iname 'whatever.c' -execdir md5sum '{}' ';'


    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...


    Thanks Aaron!!
  • I tried find /dir/bin *.c and the results were no directory or file found, how would i convert that path to your example below? thanks

    find /path/to/search -iname 'whatever.c'
  • mac57;2332091 wrote:
    I tried find /dir/bin *.c and the results were no directory or file found, how would i convert that path to your example below? thanks

    find /path/to/search -iname 'whatever.c'


    find -name *.c

    Let's say the data you want to look at is "somewhere" on the VOL1 NSS volume.
    cd /media/nss/VOL1
    find -name *.c
  • Replace /path/to/search with the base directory used for searching, such
    as /bin, or /home, or /var/log, or whatever. Leave the rest of the
    command alone and you should be fine unless your server does not have the
    'md5sum' command, which would be pretty unusual.

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...
  • On Thu, 04 Sep 2014 19:56:01 0000, kjhurni wrote:

    > mac57;2332091 Wrote:
    >> I tried find /dir/bin *.c and the results were no directory or file
    >> found, how would i convert that path to your example below? thanks
    >>
    >> find /path/to/search -iname 'whatever.c'

    >
    > find -name *.c
    >
    > Let's say the data you want to look at is "somewhere" on the VOL1 NSS
    > volume.
    > cd /media/nss/VOL1
    > find -name *.c


    Or, in one working line:


    find /media/nss/VOL1 -iname '*.c'



    --
    --------------------------------------------------------------------------
    David Gersic dgersic_@_niu.edu
    Knowledge Partner http://forums.netiq.com

    Please post questions in the forums. No support provided via email.
    If you find this post helpful, please click on the star below.