Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #856
Difficulty: Medium
React was created by Jordan Renke, a software engineer at Facebook.
True or False?
Linux & Unix Commands - Search Man Pages

lcp_mlehash(8) [centos man page]

LCP_MLEHASH(8)							   User Manuals 						    LCP_MLEHASH(8)

NAME
lcp_mlehash - generate a SHA-1 hash of a TXT MLE binary file suitable for use in a TXT launch control policy SYNOPSIS
lcp_mlehash [-v] [-c cmdline] [-h] mle-file DESCRIPTION
lcp_mlehash is used to generate a SHA-1 hash of the portion of an executable file that contains the Intel(R) TXT measured launched environ- ment (MLE). In the MLE binary file, the portion of the file to be used as the MLE is specified in the MLE header structure. If verbose mode is not used, the output is suitable for use as the mle-file to the lcp_crtpol and lcp_crtpolelt commands. OPTIONS
mle-file File name of the MLE binary. If it is a gzip file then it will be un-ziped before hashing. -v Verbose mode, display progress indications. -c cmdline Specify quote-delimited command line. It is important to specify the command line that is used when launching the MLE or the hash will not match what is calculated by SINIT. -h Print out the help message. EXAMPLES
lcp_mlehash -c "logging=memory,serial,vga" /boot/tboot.gz > mle-hash SEE ALSO
lcp_readpol(8), lcp_writepol(8), lcp_crtpol(8), lcp_crtpolelt(8). tboot 2011-12-31 LCP_MLEHASH(8)

Check Out this Related Man Page

LCP_CRTPOLELT(8)						   User Manuals 						  LCP_CRTPOLELT(8)

NAME
lcp_crtpolelt - create an Intel(R) TXT policy element of specified type. SYNOPSIS
lcp_crtpolelt COMMAND [OPTION] DESCRIPTION
lcp_crtpolelt is used to create an Intel(R) TXT policy element of specified type. OPTIONS
--create create an policy element --type type type of element; must be first option; see below for type strings and their options --out file output file name [--ctrl pol-elt-ctr1] PolEltControl field (hex or decimal) --show file show policy element --verbose enable verbose output; can be specified with any command --help print out the help message Available type options: mle [--minver ver] minimum version of SINIT mle [file1][file2]... one or more files containing MLE hash(es); each file can contain multiple hashes pconf [file1][file2]... one or more files containing PCR numbers and the desired digest of each; each file will be a PCONF custom [--uuid UUID] UUID in format: {0xaabbccdd, 0xeeff, 0xgghh, 0xiijj, {0xkk 0xll, 0xmm, 0xnn, 0xoo, 0xpp}} or "--uuid tboot" to use default custom [file] file containing element data EXAMPLES
Create an MLE element: 1 lcp_mlehash -c "logging=serial,vga,memory" /boot/tboot.gz > mle-hash 2 lcp_crtpolelt --create --type mle --ctrl 0x00 --minver 17 --out mle.elt mle-hash Create a PCONF element: 1 cat /sys/devices/platform/tpm_tis/pcrs | grep -e PCR-00 -e PCR-01 > pcrs 2 lcp_crtpolelt --create --type pconf --out pconf.elt pcrs Create an SBIOS element: 1 Create hash file containing BIOS hash(es), e.g. named sbios-hash 2 lcp_crtpolelt --create --type sbios --out sbios.elt sbios-hash Create a CUSTOM element: 1 Create or determine the UUID that will identify this data format (e.g. using uuidgen(1)). 2 Create the data file that will be placed in this element (e.g. the policy file from tb_polgen(8)). 3 lcp_crtpolelt --create --type custom --out custom.elt --uuid uuid-value data-file SEE ALSO
lcp_crtpol2(8), lcp_mlehash(8), lcp_crtpollist(8), uuidgen(1), tb_polgen(8). tboot 2011-12-31 LCP_CRTPOLELT(8)

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

RE?? or plain old matching?

Hi, I need to get filenames without an extension using an ls command. is there a way to do that? for example. I want to get: abc_123_ggg but not: abc_123_ggg.TXT Anything would be appreciated. (9 Replies)
Discussion started by: bi89676
9 Replies

2. Shell Programming and Scripting

Help with Script may be using SED

Hello Everybody, I have a directory in Unix(AIX) called DATA where every month I get some data copied like the following:i.e in /DATA i have the following ENCTR01.TXT DISCH01.TXT DIAG01.TXT and many more rows like this..... I want to remove the '01' from these lines and make them... (4 Replies)
Discussion started by: thumsup9
4 Replies

3. Shell Programming and Scripting

Rename a file if I don't know its exact original name?

Hi everyone, I will be downloading a file every day with the name in this format SCA20060303_17514_IN.TXT And I need to rename it to SCA20060303_IN.TXT Where "20060303" is the current date, and the "_17514" part will always be a 5-digit number that I will NOT know beforehand. I... (9 Replies)
Discussion started by: propel
9 Replies

4. Shell Programming and Scripting

not found error

Hi I have to move data to a file based on the valuies of first three characters in a file I am using the following script FIN=$LOC/TEST.TXT FEEDFILE=$LOC/TUE_GROSSJE.TXT #Read the file while read FDROW do FEEDROW=$FDROW; DTYPE=`echo $FEEDROW |cut -c 1-3` if ; then $FEEDROW... (4 Replies)
Discussion started by: gander_ss
4 Replies

5. Shell Programming and Scripting

blank spaces getting deleted

I have to filter out data from a file based on the value of first three characters of each record I have used the following logic FIN=$LOC/TEST2.TXT FEEDFILE=$LOC/TEST1.TXT while read FDROW do FEEDROW=$FDROW; DTYPE=`echo $FEEDROW |cut -c 1-3` if ; then echo $FEEDROW >> $FIN... (5 Replies)
Discussion started by: gander_ss
5 Replies

6. Shell Programming and Scripting

substring from list of files?

Hi All, In my unix folder there are 2 types of files available. Indicator file & data file. ABC2008110601.TXT ABC2008110901.TXT ABC2008111001.TXT ABC2008111101.TXT ABCIND2008110601.TXT ABCIND2008110901.TXT ABCIND2008111001.TXT ABCIND2008111101.TXT what i want is that first i need to get... (3 Replies)
Discussion started by: Amit.Sagpariya
3 Replies

7. Shell Programming and Scripting

awk print the next line on the current line

Ok I have a file with hundreds of lines, four columns, space delimited, TESTB.TXT for example TESTB.TXT --- AA ZZ 12 34 BB YY 56 78 CC XX 91 23 DD VV 45 67 --- I want a new file that has 7 columns, the first four are identical, and the next 3 are the last three of the next line...so... (5 Replies)
Discussion started by: ajp7701
5 Replies

8. Shell Programming and Scripting

Shell script to find files

Hi Experts, I am trying to write a shell script that should 1. Find files with name (ab030.txt,Ab030.TXT,AB030.TXT,ab030.TXT,AB030.txt) 2. If any of the above found, rename it to AB030.TXT Thanks. (4 Replies)
Discussion started by: welldone
4 Replies

9. Shell Programming and Scripting

Delete first line from file and more....

Hello, I have to deal with several files that will be named something like this: E00001.TXT, E00002.TXT etc. Each file will have a alpha character on the first position of the first line which I want to place in a variable, then delete the entire line leaving the remainder of text. This new file... (6 Replies)
Discussion started by: dfb500
6 Replies

10. Shell Programming and Scripting

Special character \

Hi, In the shell script, i need to remove the special charater "\" with "\\". For example, i need to replace "D:\FXT\ABC.TXT" with "D:\\FXT\\ABC.TXT". However, when trying to do something like , i get the below error :- -->echo "D:\FXT\ABC.TXT" | sed -e 's#\#\\#g' sed: 0602-404 Function... (7 Replies)
Discussion started by: amit_arora
7 Replies

11. Shell Programming and Scripting

print a line when NOT in a file

I have a list of words, one word per line, LIST1.TXT that I want to check for in another file, PARAGRAPHS.TXT. If the line from LIST1.TXT is NOT in PARAGRAPHS.TXT I want to print it to screen. The keyword here is NOT. If the word from LIST1.TXT is NOT in the file PARAGRAPHS.TXT, then I want to... (7 Replies)
Discussion started by: ajp7701
7 Replies

12. UNIX for Dummies Questions & Answers

Extract dates from file name.

Hi All, I have files with names as us_Gec1_wk_01to01_2008.TXT ad_EngEnt_wk_01to10_2008.TXT br_EngMov_wk_01to10_2008.TXT Over here, I need to extract the dates and the year and store them in variables. How can I achieve the same in bash. In case of ad_EngEnt_wk_01to10_2008.TXT ... (3 Replies)
Discussion started by: Swapna173
3 Replies

13. Shell Programming and Scripting

How can I match the particular character in the string?

Hi, I want to check out a word in the text file and generate a clear report for me to see... The text file content: Content: ............ 20120608: 20120608: ............ 20120608: .......... 2012031201: , hime] End of the file My expected output is: Full TXT: manatsu TXT:... (3 Replies)
Discussion started by: meroko
3 Replies

14. Shell Programming and Scripting

Can Anyone help me..to do my task in simple way..

Hi... I am trying extract data using 2 files.. 1. Data file - DATA.TXT containing data to be extracted 2. Column file - LIST.TXT header column to be extracted output not coming properly.. if the header field name matches with data file header extract data...this actually I wanted ... ... (7 Replies)
Discussion started by: nex_asp
7 Replies

15. Shell Programming and Scripting

Need script to convert TXT file into CSV

Hi Team, i have some script which give output in TXT format , need script to convert TXT file into CSV. Output.TXT 413. U-UU-LVDT-NOD-6002 macro_outcome_dist-8.0.0(v1_0_2) KK:1.2.494 (1234:333:aaa:2333:3:2:333:a) 414. U-UU-LVDT-NOD-6004 ... (10 Replies)
Discussion started by: Ganesh Mankar
10 Replies

Featured Tech Videos