Openinfo, Parse, Pause – HP Unified Extensible Firmware Interface User Manual

Page 45: Openinfo parse pause

Advertising
background image

fs0:\> mv IsaBus.efi Bus.efi
moving fs0:\IsaBus.efi -> \Bus.efi
- [ok]

openinfo

Displays the protocols and agents associated with a handle.

Syntax

openinfo Handle

[-b]

Options

-b

Display one screen at a time.

Handle

Display open protocol information for specified handle.

parse

Retrieves a value from a specified record that was output in a standard formatted output.

Syntax

parse filename tablename column

[-i instance] [-s instance]

Options

filename

Specifies a source file name.

tablename

Specifies a table name to be parsed.

column

Specifies a one-based column index to use to determine which value from a
particular record to parse.

-i instance

Starts parsing with the nth instance of the specified tablename, after the
specified instance of ShellCommand. If not present, then all instances are
returned.

-s instance

Starts parsing with the nth instance of the specified ShellCommand table. If
not present, then 1 is assumed.

Description

This command enables the parsing of data from a file containing data output from a command
having using the –sfo parameter. Since the standard formatted output has a well known means
of parsing, this command is intended to be used as a simplified means of having scripts consume
such constructed output files and use this retrieved data in the logic of the scripts being written for
the UEFI Shell.

Examples

The following data is contained in a temporary file (temp.txt):

ShellCommand, "LS"
VolumeInfo, "MikesVolume","400000000","32000000","16000000"
FileInfo, "fs0:/efi/boot/winloader.efi","45670","arsh"
FileInfo, "fs0:/efi/boot/mikesfile.txt","1250","a"
FileInfo, "fs0:/efi/boot/readme.txt","795","a"

To use the index parameter to parse the temp.txt file:

fs0:\> parse temp.txt FileInfo 3 –i 3
795

pause

Pauses the script file execution.

UEFI Shell commands

45

Advertising
This manual is related to the following products: