RE: Jumpstart eeprom command

From: Donovan, Jeffrey (Jeff), ALABS (jmd@att.com)
Date: Fri Aug 08 2003 - 09:51:00 EDT


All,

Thanks for the responses. First time using this mail list and I'm impressed!
The suggestion below worked great. Simple and effective. Thanks again Darren.

Jeff
 -----Original Message-----
From: Darren Dunham [mailto:ddunham@taos.com]
Sent: Thursday, August 07, 2003 10:31 PM
To: Donovan, Jeffrey (Jeff), ALABS
Subject: Re: Jumpstart eeprom command

>
> Hi,
>
> I am jumpstarting several E15k domains. The interface on the domains is not
> the one specified by the net devalias, therefore I create a "jumpnet"
devalias
> at the OBP prompt which points to the correct interface and then I do a
boot
> jumpnet - install. This works fine. Problem is that in my finish scripts I
> have to set up my bootdisk alias via the eeprom command by doing a ls -l on
> the /dev/dsk/c?t?t?d? and getting the physical device path which also works
> fine.
>
> However when I set nvramrc to true and then create the bootdisk devalias
and
> reboot my jumpnet devalias I set at the OBP prompt is gone. Is there a way
to
> append to the nvram via eeprom command so my jumpnet alias remains
> intact.

Perlish code follows...

$current = `eeprom nvramrc`;
$future = $current . "\ndevalias bootdisk /path/to/whatever";
`eeprom nvramrc $future`;

> Or is there a way to determine the actual hardware path like I do for
> the bootdisk since I know the interface comes up as ce0?

I think you could parse through /etc/path_to_inst for ce devices of
instance 0, but I'd prefer the first way. It's more general in case
there were anything else already in nvramrc.

--
Darren Dunham                                           ddunham@taos.com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:54 EDT