Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nvram(8) [opendarwin man page]

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

NAME
nvram - manipulate Open Firmware NVRAM variables SYNOPSIS
nvram [ -p ] [ -f filename ] [ name ] [= value ] ... DESCRIPTION
The nvram command allows manipulation of Open 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
-p Print all of the Open Firmware variables. -f filename Set Open Firmware variables from a text file. The file must be a list name=value statements. If the last character of a line is , the value will be continued to the next line. 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. December 12, 2000 nvram(8)

Check Out this Related 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)
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. Shell Programming and Scripting

Help needed in processing multiple variables in a single sed command.

Is it possible to process multiple variables in a single sed command? I have the following ksh with three variables and I want to search for all variables which start with "var" inside input.txt. I tired "$var$" but it just prints out everyting in input.txt and does not work. $ more test.ksh... (5 Replies)
Discussion started by: stevefox
5 Replies

3. 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

4. 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

5. 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

6. Shell Programming and Scripting

command paste with variables

Hi. I have an interesting problem and i couldn't find out the solution. I have two variables in which there are a lot of lines finished by \n. I would like to concatenate this two variables into one in this format: var1var2 var1var2 . . . I could do this simply by command paste but it works... (32 Replies)
Discussion started by: samos
32 Replies

7. 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

8. 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

9. AIX

Resetting the NVRAM

Does anybody know how to reset the NVRAM on a System p 520 (power 5)? (7 Replies)
Discussion started by: livehho
7 Replies

10. 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

11. 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

12. 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

13. AIX

Password for Firmware woes!

Hi All, On wanting to re-install AIX 6.1 on to an RS 6000 Power 9111 285 station, I've tried to get in to SMS and also to boot from the DVD drive, but now the Firmware is locked and asking for the password. I originally set the password about 6 years ago and have forgotten it because I've never... (14 Replies)
Discussion started by: Box_the_Jack_in
14 Replies

14. Solaris

Can Missing mpk Code be added via NVRAM

Guys, I'm fighting a real bitch of a problem. I've got 2 Tadpole Bullfrog sun4u laptops. One just lost is NVRAM battery - invalid IDPROM. The idprom is virtually all zeros. Clock ticks, NVRAM appears good...testing with and with battery out. Our damn Tadpole boys removed virtually every method of... (6 Replies)
Discussion started by: forjack842
6 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