EFI Commands
Total Page:16
File Type:pdf, Size:1020Kb
drvcfg [-c] [-lXXX] [-f] [-v] [-s] [driverhandle [devicehandle [childhandle]]] . EFI Commands Use drvcfg to display available controllers Then use “drvcfg -s drv# ctrl#” to start ROM High-End & Mid-Range Integrity Server (Shell scripting commands have been omitted) Config menu from IO card. Hit “esc” key to exit (can take while to respond). Command Summary Trifold Boot Commands drvdiag [-c] [-lXXX] [-s] [-e] [-m] [driverhandle [devicehandle [childhandle]]- HPUX> Bootloader Commands Runs diags on controllers Output is similar to devtree. autoboot [on|off] | [time [value]] time = 2 - 65535 seconds. Normal Boot: fsx:> hpux.efi ie, go to file system where hpux boot loader hpux.efi is guid [-b] - Displays “Guid” info. “Global Universal ID’s” (See “guid help”) bcfg boot [dump [-v]] | [add # file “desc”] | [rm#] | [mv # #] “bcfg boot dump” then “bcfg located and run this executable.. You must interrupt the automatic boot to get to the Displays mac address of Core Lan boot mv ori new” | “bcfg boot add” or use “boot maintenance mgr.” Type Shell> exit to get lanaddress ‘HPUX >’ prompt before running any other boot method from the the commands below: to boot maintenance mgr menu (see recovering lost boot options). load [-nc] file [file...] - Loads and EFI driver Boot kernel] Boot hpux kernel. hpux vmunix.prev is now “backup” boottest [on|off] | [[test] [on | off] early_cpu, late_cpu, platform, chipset, io_hw, mem_init, map [-r | -v | -d [sname] [handle] [-b] - Displays/defines a mapping between a name help [-d] Show help. “-d” shows debug commands mem_test In hpux use “setboot -v” or setboot -T to change settings. and a device handle. Use “map -r” when cd/dvd media is replaced. ls [-b] [dir] List directory of /stand & ll [-b] [dir] Long listing of /stand directory mmap Display current EFI memory map dbprofile [-dn name [-dhcp] [-sip server_ip] [-cip client_ip] [-gip gateway_ip] [-m openinfo handle - Diplays open protocol on a given handle. pci [bus dev func] [-i] [-s [seg]]] - Displays pci info. Same as “info io”. setauto [-d] [str] Sets autofile. Same as Shell> type \efi\hpux\auto subnet_mask] [-b "boot_file"] [-od "optional_data"]] | [-h] DBPROFILE [rm name] | [-h] showauto - Display contents of \efi\hpux\auto file reconnects drivers. DBPROFILE [cp src_name dst_name] | [-h] reconnect devicehandle# [driverhandle# [childhandle#]] | -[r] ver - Shows bootloader, hpux, efi, fw vendor, fw rev and cpu rev lanboot [select] Use “lanboot select” to search for lans, can use with above command eg, unload [-n] [-v] handle - Unloads a protocol (handle) from memory. what - Shows vmunix details. Use “what /stand/vmunix” Shell> lanboot select -dn profile1 exit - Exits back to Shell> or fs#: reconfigreset Same as MP>CM: RR reset to BIB after partition changes have been made. Filesystem Commands hpux [-lm] [-vm] [-tm] [-lq] [ -a [C|R|S|D] devicefile][-fnumber] [-istring] [boot] reset Resets the partition and boots to EFI. Same as MP>CM:RS. Don’t run with O/S up. Commands that require selection of a volume first. i.e. fs0:, fs1: fs2: or fs3: [devicefile], lm = LVM, vm = VXVM , tm = Tunable mode, lq = Quorum override help [-a] [cmd | class] - Displays help. (“cmd /?” also works). attrib – Display/change attributes of files & directories. search <cells> [pcislot] | all Useful to find scsi targets cell = Cell number (0-15) cd - Change directory. Cd by itself shows current working directory I/O Card Setup & Other Useful Utilities & Tips: pcislot = pci slots (0-11) Use “info io” to determine occupied slots. all : Load the drivers for comp file1 file2 - Compare two files Use shell> search cell # slot # or Search All to Find Option ROM’s on IO cards in IO all option ROMS’s in all io cages. Use if you want to see your newly inserted io card. cp [-r] [-q] src [src...] [dst] - Classic cp command (-r recursive, -q quiet) backplanes. Use drvcfg.efi utility to configure IO cards (inc. SCSI speeds and initiators & FC edit - text based editor (Esc 3 to quit) SAN parameters) especially in HA environments. (Hint: use the devtree, drvcfg & devices commands to identify driver and controller handles for use with drvcfg -s [driver #] [ctlr#] Configuration Commands - Compresses “infile” to “outfile” eficompress [infile] [outfile] command. Use drvcfg –s without any parameters to configure all option ROM’s available). acpiconfig [windows | default|[enable|diable] softpowerdown] - default is for efidecompress [infile] [outfile] - Uncompress “infile” to “outfile” hpux. (Requires a Reset) single-pci-domain for SUSE & Red Hat LINUX Don’t forget to reconnect –r to reattach and rescan‘stopped’ controllers and attached devices. hexedit [[-f] [file | [ -d diskname offset size] | [-m offset size]] cellconfig [cell ] [on | off] - Note: MP>CM:mfg must be enabled cell = Cell number ls - list contents of directories (see “help ls” for options) S Use F8 (Esc 8 on vt100) at SA banner during startup to invoke ORCA for SmartArray Ctlrs. (0-15) on|off : Specifes to configure or deconfgure a cell (Reset required). mkdir directory [ directory…] - Create a directory or directories.. Use Diskpart.efi from ECU CD 5 to format disks and remove disk partitions, (hint: use conconfig [index primary] – set/display primary operating system console p=primary commands, list, select, inspect & clean within diskpart.efi). s=secondary. Index- Specifies index of console to set as primary. (sx2000). mount blkdevice [sname] - Mounts a fs on a block device mv source [source...] [destination] – move or rename file, source to destination.. cpuconfig [cell [module [on|off|busoff]] or cpuconfig [threads [on|off]] ] - Recovering a Lost Boot Options for HPUX, LINUX & Windows : cell = Cell number (0-15) d=module : Specifies which cpu module to configure (0-3)busoff rm [-q] file | directory - Delete a file or directory, -q = quiet mode. setsize newsize file - Changes the file size in bytes For HPUX & LINUX: Use boot options > add a boot option and drill down to location of specifies deconfigure cpu bus. on | off : Specifies to configure or deconfigure a cpu bootloader to add loader back in, or manually add it back in by changing directory to the path Updates a file or directory. Must exist first. date [mm/dd/[yy]yy] - Display or set the date touch [-r] file | directory - where the boot loader is eg, fs0:> cd \EFI\HPUX (for hpux) then use the EFI command bcfg dimmconfig [cell] [dimm] [on | off] dimm = XY where X = Echelon (0-15) Y = Side in type [-a | -u] file [file...] -b Similiar to “cat” command. Use -b to pause. to add the loader back in. eg, fs1:> bcfg boot add 3 hpux.efi "My OS" ( the ‘3’ indicates format (a-f), cell = Cell number (0-15) vol [filesystem] [label] - Display or change name of filesystem volume menu entry location ). For Windows boot option recovery: use NVRBOOT.EFI utility, ie, err [errorlevel] - Display or set bitmask for error reporting,.Only errors above level set Go to Windows O/S disk and verify that \efi\Microsoft\WINNT50\Bootxxxx and will be displayed. Memory Commands MSUTIL\nvrboot.efi are present. Run EFI utility \MSUTIL\nvrboot.efi, select I for import, errdump <cell> | all <logtype> | clear | clear <logtype> [-n ] cell = Cell number default [clear] - Resets Nvram to default settings. Including boot options. put the complete path: \EFI\Microsoft\WINNT50\Bootxxxx The newly imported boot (0-15) all = Use all instead of cell # to retrieve/clear logs for all cells in pd. logtype = mca, dmem [address] [size] [:MMIO] - Display memory contents option will now be in your Boot Options Menu. init, cmc, drr or all. drr is deadlock recovery reset -n = no interactive prompts dmpstore - View all of the EFI variables fru [cell] [frutype] cell = Cell number (0-15) & frutype = only “mem” is available Booting Diagnostics: Locate launchmenu.efi on either the ECU CD5, Offline memmap - Shows how physical memory is mapped out. Diagnostics CD or within the HP service partition on the hard disk. DO NOT install info [-a] [-h] [cell] target [target...] [-b] cell = Cell number (0-15) target = all, boot, mm - Memory Modify (See “help mm” for complete details) cache, cell, chiprev, cpu, fabric, fw, io, mem, sys. –b enable page breaking. diagnostics from ECU CD to the HPSP, use the Offline Diagnostics CD instead. pdt [cell] [clear] - Display or clear the PDT table. Use “reset” afterwards. cell = Cell number (0-15) & module = module number monarch [cell] [module] [cpu] (0-3) cpu = which cpu on the module (0-1) How to Enable Networking at EFI shell: palproc - Make a PAL call (see help for additional info) Shell Commands Insert ECU CD 5 or from a HPUX installation: Find the networking directory in the EFI parconfig [mode [-n]|default [-n]|reset] [-b] - Display or set partition configuration. alias [-d | -v | -b] [sname] [ value] - Displays/creates/del aliases. partition. Then run following programs found within the networking directory: EFI> load tcpipv4.efi (loads tcpip protocol) - (see help) shows vendor vs. hp part numbers. cls [color #] Clears standard out and changes background color. romdrivers EFI> ifconfig –a (lists the configurable lan ports eg, sni0, sni1,sni2 etc.) rootcell [clear] [[c0] [c1] [c2] [c3]] c = Cell number (0-15) exit - Exits EFI shell and returns to EFI boot manager getmtc - Diplays monotonic counter (See “help getmtc” for info) EFI> ifconfig sni0 <ip-address> netmask <mask> salproc - Sal procedure call (see help for additional info). EFI> route add default <gateway-ip> (add a gateway if needed) - Displays help. ( “cmd /?” also works). tftp [select] -Use select option to select a lan card. help [-a] [-f] [cmd|class] [-b] EFI> ping target_ip_address time [hh:mm:ss] - Display or set time Accepts 24 hour format mode - Display available mode of the console output device (sx2000). EFI> ftp (you may now use ftp.efi to get/put files as needed. variable <-s | -r ¬ -d> [filename] Similar to nvrboot export/import set [-d | -v] [sname [value]] [-b] - Displays, changers or deletes variables.