mac57 Absent Member.
Absent Member.
806 views

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
Labels (2)
0 Likes
7 Replies
Knowledge Partner
Knowledge Partner

Re: file structure

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
0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: file structure

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...
0 Likes
Knowledge Partner
Knowledge Partner

Re: file structure

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!!
0 Likes
mac57 Absent Member.
Absent Member.

Re: file structure

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'
0 Likes
Knowledge Partner
Knowledge Partner

Re: file structure

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
0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: file structure

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...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: file structure

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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.