Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nvram(8) [osx man page]

nvram(8)						      System Manager's Manual							  nvram(8)

NAME
nvram - manipulate firmware NVRAM variables SYNOPSIS
nvram [ -p ] [ -f filename ] [ -d name ] [ -c ] [ name [= value ]] ... DESCRIPTION
The nvram command allows manipulation of firmware NVRAM variables. It can be used to get or set a variable. It can also be used to print all of the variables or set a list of variables from a file. Changes to NVRAM variables are only saved by clean restart or shutdown. In principle, name can be any string. In practice, not all strings will be accepted. New World machines can create new variables as desired. Some variables require administrator privilege to get or set. The given value must match the data type required for name. Binary data can be set using the %xx notation, where xx is the hex value of the byte. The type for new variables is always binary data. OPTIONS
-d name Deletes the named firmware variable. -f filename Set firmware variables from a text file. The file must be a list of "name value" statements. The first space on each line is taken to be the separator between "name" and "value". If the last character of a line is , the value extends to the next line. -x Use XML format for reading and writing variables. This option must be used before the -p or -f options, since arguments are pro- cessed in order. -c Delete all of the firmware variables. -p Print all of the firmware variables. EXAMPLES
example% nvram boot-args="-s rd=*hd:10" Set the boot-args variable to "-s rd=*hd:10". This would specify single user mode with the root device in hard drive partition 10. example% nvram my-variable="String One%00String Two%00%00" Create a new variable, my-variable, containing a list of two C-strings that is terminated by a NUL. example% nvram -d my-variable Deletes the variable named my-variable. October 28, 2003 nvram(8)

Check Out this Related Man Page

cat_nvram(8)							   NVRAM WakeUp 						      cat_nvram(8)

NAME
cat_nvram - Dumps the contents of nvram to STDOUT. SYNOPSIS
cat_nvram upper_method DESCRIPTION
cat_nvram is a helper program from the package nvram-wakeup. It dumps the contents of nvram to stdout using direct I/O functions. OPTIONS
upper_method specifies the method which should be used to access the upper part of NVRAM. See nvram-wakeup.conf(5) for a list of possible values. SEE ALSO
nvram-wakeup(8), nvram-wakeup.conf(5) HOMEPAGE
http://sf.net/projects/nvram-wakeup/ AUTHOR
Written by Sergei Haller <Sergei.Haller@math.uni-giessen.de>. REPORTING BUGS
Report bugs at the bug tracking system (see HOMEPAGE) or on the mailing list nvram-wakeup-devel@lists.sourceforge.net COPYRIGHT
Copyright (C) 2001-2004 Sergei Haller. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Linux Jul 07 2004 cat_nvram(8)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

nvram reset or crack password

Hello guys ,and girls. Im having a very interesting problem. I have a Netra SUN machine and i had it here for quite a while now...i wanted to install it as a new server and todo so i needed to mount a cd rom and to change the boot at the prom level to cdrom. this could work but i forgot the... (5 Replies)
Discussion started by: talroze
5 Replies

2. UNIX for Advanced & Expert Users

setting some variables

i have a file .NAMEexport MY_NAME=JOE when i do this at the command prompt #. .NAME $echo MY_NAME $JOEi created a script called Run.sh . .NAME At the command prompt i did #sh Run.sh #echo $MY_NAMEit returns nothing. What have i missed out? (7 Replies)
Discussion started by: new2ss
7 Replies

3. Shell Programming and Scripting

how to seperate a variable in 2 variables

Dear all, i dont know how to split one variable value in 2 variable. please send me any example. variable1= "abcde developer" now i want to seperate the values and seperator is space. (6 Replies)
Discussion started by: intikhabalam
6 Replies

4. AIX

How to set permanent variables

I set my TERM variable to work with SMIT and everything works fine but when I logged out and log in again I have to set the variable again. How can I set a permanent variable into the system so it will be as I wish even if a reboot is needed? I set variables this way: export VAR=value (7 Replies)
Discussion started by: agasamapetilon
7 Replies

5. Shell Programming and Scripting

carriage return or funky character stuck in my variables - help :)

My variables contain carriage returns... or something. Here is the line in my xml file of interest: <tmp>72</tmp> And here is the line that extracts the 72 from it: REAL=`grep '<tmp>' test.xml | sed -e 's/^ *<tmp>//' -e 's/<\/tmp>//' -re 's/(N|n|A|a|\/)/U/g'`If echo the variable it... (5 Replies)
Discussion started by: audiophile
5 Replies

6. Shell Programming and Scripting

My first shot at variables

Okay, so im setting up a script to start my internet dependent scripts once I am connected to the net. It got complicated because of the different networks I frequent but it goes something like this: n=1 iwconfig wlan0 > wireless.txt m= grep -c MGHS /home/jake/Scripts/wireless.txt o= grep -c... (7 Replies)
Discussion started by: arcnsparc
7 Replies

7. UNIX for Dummies Questions & Answers

Need help with OBP.

Hi Gurus, I am totally confused :wall: . I have some questions regarding OBP,EEPROMand NVRAM, BIOS. What actually are these how do they function and interact on a Sparc based solaris system. What is ok> ? What is system Firmware ? How does the system startup? Trying to google... (8 Replies)
Discussion started by: rama krishna
8 Replies

8. UNIX for Dummies Questions & Answers

I am not able to use variables in system command in a C program

this method is not working.I am having a problem to use variables in system command. i cannot use the variables in system command. this how i was did system("whereis command"); this method works very fine. but, i want use the commands as variable. that means i want only pass the variables.... (6 Replies)
Discussion started by: dhanda2601
6 Replies

9. Shell Programming and Scripting

Increase two numeric variables incrementally together

Hi, I was wondering if someone could help with what is probably a fairly easy problem. I have two variables, i is between 1-5, j is between 11-15 I'd like to produce this: 1_11 2_12 3_13 4_14 5_15 Each number goes up incrementally with the other. But my shoddy code is not... (5 Replies)
Discussion started by: hubleo
5 Replies

10. Shell Programming and Scripting

Concatenate two variables and form the third variable

Hi Guys, I was scratching my head for this for half a day... finally not successful :confused: Following is the problem I have a variable $ var1=123 $ var2-234 $ var3=345 and another Variable $ i=1 Now i wanted to save these into a Variable as shown below for i in 1 2 3 do... (5 Replies)
Discussion started by: ramprabhum
5 Replies

11. Shell Programming and Scripting

Compare and calculate two variables

Hi, I have two variables with some values with 5 decimal digits and separated with space, the values of the variables are different, I want to make operations with this two variables. The way was I find to do it itīs with files and paste file1 file2 | awk '{print $1 - $2}' I want to make it... (8 Replies)
Discussion started by: faka
8 Replies

12. Shell Programming and Scripting

Bash question: working with an array of previously set variable strings

while i've used arrays to work with variables, i've never used them to loop through a set of strings and wanted to ask the community for some feedback or assistance. let me be specific. here's my code: # URL port Variables port2195=`nc -z $url2195 2195` port2196=`nc -z $url2196 2196`... (5 Replies)
Discussion started by: hungryd
5 Replies

13. Shell Programming and Scripting

How can I write variables to same line of a file?

I am trying to keep variables in a file. if I have all variables at the same time, I can write them all like below. echo $var1","$var2","$var3 But, these variables are being calculated at different times then they are lost so I want to keep them in a file seperated by "," . echo... (5 Replies)
Discussion started by: snr_silencer
5 Replies

14. AIX

Sudo question

I am running AIX 6.6.5.115 and am experiencing a problem using sudo. I have shell scripts that I created for our HR user and shell scripts that I created for root administrators. I do have a need to embed a sudo command in the user shell script to run one command as root. However the two... (8 Replies)
Discussion started by: RonDeF
8 Replies

15. UNIX for Beginners Questions & Answers

Concatenating two mutiline variables in a bash

Hi All, I am having a situation where am capturing results in two variables from an xml file. However, I am looking to print those two variables with pipe in between them and these variable are multi-line. This is how my 1st variable looks like: 20181225010 20190224010 20190224010... (8 Replies)
Discussion started by: svks1985
8 Replies