eeprom security-mode

  • Follow


Hi,
    My objective is to set the security-mode in OBP to command. But the
issue here is, i have to automate it. It is not very convinient to type
the password everytime it is set.

    Can i let eeprom command to take the password from some
configuration file ?

I found two possiblities as of now

1. rsh $host '(/bin/echo '$password'; /bin/echo '$password') | eeprom
security-mode=command'

(Security issue of using rsh).

and

2. using expect (complex as i cant use shell scripts to do it.)

Are there any other means to achieve it ?

Cheers
Manik

Merry Christmas

0
Reply rsmanik (4) 12/26/2006 10:19:12 AM

Hi,

    I tried using popen too.. but it doesnt seem to work.

    Any help would be appreciated.

- Manik
rsmanik@gmail.com wrote:
> Hi,
>     My objective is to set the security-mode in OBP to command. But the
> issue here is, i have to automate it. It is not very convinient to type
> the password everytime it is set.
>
>     Can i let eeprom command to take the password from some
> configuration file ?
>
> I found two possiblities as of now
>
> 1. rsh $host '(/bin/echo '$password'; /bin/echo '$password') | eeprom
> security-mode=command'
>
> (Security issue of using rsh).
>
> and
>
> 2. using expect (complex as i cant use shell scripts to do it.)
>
> Are there any other means to achieve it ?
> 
> Cheers
> Manik
> 
> Merry Christmas

0
Reply rsmanik 1/2/2007 10:39:54 AM


rsmanik@gmail.com wrote:
> Hi,
> 
>     I tried using popen too.. but it doesnt seem to work.
> 
>     Any help would be appreciated.
> 
> - Manik
> rsmanik@gmail.com wrote:
>> Hi,
>>     My objective is to set the security-mode in OBP to command. But the
>> issue here is, i have to automate it. It is not very convinient to type
>> the password everytime it is set.
>>
>>     Can i let eeprom command to take the password from some
>> configuration file ?
>>
>> I found two possiblities as of now
>>
>> 1. rsh $host '(/bin/echo '$password'; /bin/echo '$password') | eeprom
>> security-mode=command'

echo "$password
$password" |
rsh $host eeprom security-mode=command

should do the same thing.
But rsh and ssh do not transfer a tty, so eeprom will
fail to read from tty.

>>
>> (Security issue of using rsh).
>>
>> and
>>
>> 2. using expect (complex as i cant use shell scripts to do it.)
>>

You need to do it and you can do it.
The expect creates a tty that is fed by stdin, which in turn can be
fed by a (remote-)shell.

man expect

is your friend.

-- 
Michael Tosch @ hp : com
0
Reply Michael 1/3/2007 6:09:13 PM

2 Replies
319 Views

(page loaded in 0.566 seconds)

Similiar Articles:






7/26/2012 8:59:56 AM


Reply: