TCL/Expect Reset Server and Load Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris TCL/Expect Reset Server and Load Solaris
# 1  
Old 03-31-2011
TCL/Expect Reset Server and Load Solaris

Hello!

I'm having issues getting Solaris to install on a T2000 using an expect script. The jumpstart server works fine to manually issue the commands and we have done many installs this way. I'm lazy and want to reset the OBP password, install Solaris, log in after install, and run some other commands - all using Expect. Basically, plug in console, start the expect script, and plug in power, then do something else. After a couple of hours...badda bing.

Problem is, when I test the expect script, it bombs out during boot net - install when the process gets to bootparamd. On the jumpstart server, a "get file failed" error is generated. After the error, I connect using minicom and issue the boot net command and the install goes ok without an issue. I'm not sure what the script is doing to conflict with bootparamd

Regarding the MMU error, I have swapped out memory twice and installed successfully manually using both sets of memory.

portion of the script in question:

Code:
....
set timeout -1

exp_internal 1

# boot system to install
expect {
    "* ok *" { send "boot net - install\r" }
}

# after install is complete, log in
expect {
    "*console login*" {
         send "username\r"
         sleep 1
         send "password\r"
    }
}

exp_internal 0
.....

The error (truncated):

Quote:
{0} ok boot net - install
Boot device: /pci@780/pci@0/pci@1/network@0 File and args: - install
100 Mbps full duplex Link up
Requesting Internet Address for 0:14:4f:48:5:76
100 Mbps full duplex Link up
100 Mbps full duplex Link up

seek failed

Can't mount root

ERROR: /pci@780/pci@0/pci@9/scsi@0: Last Trap: Fast Data Access MMU Miss
---------- Post updated at 06:47 PM ---------- Previous update was at 05:47 PM ----------

After some more digging, it looks like a NFS issue. Not quite sure how, or if, this correlates with the overall issue.

Quote:
18:28:22.451666 IP t2000-3.517 > jumpstart-server.nfs: . ack 213086161 win 18824 <nop,nop,timestamp 172139 669944931>
18:28:22.451915 IP t2000-3.517 > jumpstart-server.nfs: . ack 213087153 win 17832 <nop,nop,timestamp 172139 669944931>
18:28:22.455165 IP t2000-3.81032 > jumpstart-server.nfs: 180 getattr [|nfs]
18:28:22.455231 IP jumpstart-server.nfs > t2000-3.81032: reply ok 2896 getattr [|nfs]
18:28:22.455240 IP jumpstart-server.nfs > t2000-3.461635246: reply Unknown rpc response code=1501982527 4344
18:28:22.455245 IP jumpstart-server.nfs > t2000-3.770446220: reply Unknown rpc response code=1351187947 4344
18:28:22.455249 IP jumpstart-server.nfs > t2000-3.4050618276: reply Unknown rpc response code=1395681842 4344
18:28:22.455257 IP jumpstart-server.nfs > t2000-3.2468478620: reply Unknown rpc response code=3464697705 536
18:28:22.459661 IP t2000-3.517 > jumpstart-server.nfs: . ack 213090049 win 47784 <nop,nop,timestamp 172147 669944935>
18:28:22.460161 IP t2000-3.517 > jumpstart-server.nfs: . ack 213092945 win 44888 <nop,nop,timestamp 172147 669944935>
# 2  
Old 03-31-2011
Try another version of NFS on your jumpstart server, especially if it's server NFSv4. In that case, cap it at v3 in /etc/default/nfs.
# 3  
Old 04-01-2011
Thanks for the reply.

I'm a little confused on setting up nfsv3. The current setup looks to be v4. My NFS knowledge is limited only to what I have read and it's been a while....googled a few pages as well. The jumpstart process seems to be a little picky on the setup of the nfs server - only reads ro mounts - now that my memory is kicking in during the initial setup.


current setup:
Code:
/home/jumpstart/install  *(ro,fsid=0,no_root_squash,sync,no_subtree_check)

tried this:
Code:
/home/jumpstart/install  *(ro,sync,all_squash,anonuid=65534,anongid=65534)

Using the updated config above, I get a boot failed error:
Quote:
boot failed
Enter filename [boot_archive]:
# 4  
Old 04-02-2011
The bootparamd is looking for "rootopts" instead of "install"

Quote:
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: whoami got question for 192.168.200.3
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: This is host t2000-3
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: Returning t2000-3 (none) 192.168.10.112
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: whoami got question for 192.168.200.3
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: This is host t2000-3
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: Returning t2000-3 (none) 192.168.10.112
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: getfile got question for "t2000-3" and file "root"
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: returning server:192.168.200.1 path:/Solaris_10/Tools/Boot address: 192.168.200.1
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: getfile got question for "t2000-3" and file "rootopts"
Apr 2 11:21:40 jumpstart-server rpc.bootparamd: returning server:192.168.200.1 path:/=vers=3:rsize=8192 address: 192.168.200.1
/etc/bootparams:

Code:
t2000-3 root=192.168.200.1:/Solaris_10/Tools/Boot \
   install=192.168.200.1:/ \
   sysid_config=192.168.200.2:/Clients/t2000-3 \
   install_config=192.168.200.1:/ \
   boottype=192.168.200.1:in \
   rootopts=192.168.200.1:/=vers=3:rsize=8192

I have fiddled with rootopts and still no luck. Removed rootopts all together, didn't matter. What other options are available? Haven't found anything of use from google.
# 5  
Old 04-03-2011
Quote:
Originally Posted by skitch
Thanks for the reply.

I'm a little confused on setting up nfsv3. The current setup looks to be v4. My NFS knowledge is limited only to what I have read and it's been a while....googled a few pages as well. The jumpstart process seems to be a little picky on the setup of the nfs server - only reads ro mounts - now that my memory is kicking in during the initial setup.


current setup:
Code:
/home/jumpstart/install  *(ro,fsid=0,no_root_squash,sync,no_subtree_check)

tried this:
Code:
/home/jumpstart/install  *(ro,sync,all_squash,anonuid=65534,anongid=65534)

Using the updated config above, I get a boot failed error:
Assuming you're running a Solaris 10 NFS server, go to your NFS server, check /etc/default/nfs for the "NFS_SERVER_VERSMAX" and "NFS_SERVER_VERSMIN" parameters. Set them both to 3, and make sure they're both uncommented. Then "svcadm restart nfs/server" should do it.

You can check after by using "nfsstat". If you run "nfsstat -z" after restarting the NFS server service, you should see nothing but zeros in all but NFSv3 stats.

NFSv4 has some real strict and IMO downright quirky security rules, and I'd bet an older server like your T2000 has problems with it.

And if you're running a Linux NFS server, Linux NFSv4 implementations are even quirkier. IMO Sun (now Oracle) has pretty much been the gold-standard of NFS implemenations. Not surprising, since they invented it....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Issue in installing expect and Tcl

Hi I need to install expect in redhat. through net I came to know that I must install tcl too in order to make expect work. I have downloaded both packages but not able to install # ls -lrt total 3720 18:33 tcl8.4.20-src.tar.gz 18:33 expect5.45.3.tar.gz 18:40 expect5.45.3... (7 Replies)
Discussion started by: scriptor
7 Replies

2. Shell Programming and Scripting

expect TCL script

Hello, I write a TCL script for Expect/ Telnet. I want to send command to the telnet server. But I want to close after the command is sent. Anybody know which command can flush the expect so I can sure the command is sent to the telnet server??? EX: send "./command1\r" close... (0 Replies)
Discussion started by: linboco
0 Replies

3. UNIX for Dummies Questions & Answers

Expect/Tcl help

hi, I am new in Expect. I have a question about expect timeout. suppose I have a structure of expect { ".."{ send"............"} timeout{ ............... } } The silly question is if I reach timeout, how can I store the error message showing on the screen to... (2 Replies)
Discussion started by: allenxiao7
2 Replies

4. Shell Programming and Scripting

TCL/Expect not working as expected

I am having an issue with TCL\Expect; I am passing arguments via the commandline that are read in via "lrange $argv". One of those var's is a password with characters that need to be escapaed, after escaping them an hitting enter expect is placing curly braces around my password... why?! ... (4 Replies)
Discussion started by: RiSk
4 Replies

5. Shell Programming and Scripting

Help with TCL/Expect in Solaris 5.3

I'm having this problem with a very simple tcl expect script that is running on Solaris 5.3 with TCL version 8.4.7 and expect version 5.0. below is the simplified version of the code snippet, which I think has everything to illustrate the problem, the full version is at the very bottom in... (0 Replies)
Discussion started by: pinchharmonic
0 Replies

6. Shell Programming and Scripting

tcl/expect

Can someone identify what is the problem here?. no children while executing "exp_wait -nowait -i -1" (procedure "logOptions" line 45) invoked from within "logOptions" (procedure "doExecute" line 98) invoked from within "doExecute" (procedure "main" line 32) ... (7 Replies)
Discussion started by: calsum
7 Replies

7. Shell Programming and Scripting

Tcl expect HELP

In the following "for" loop I assume the the script will expect "anyway", "first" NOT in any paticular order and send "yes" when there found, breaking out of the loop when "$prompt" is found. The way it is working is like 3 individual expect lines, and they MUST be in cronological order. ANY help... (0 Replies)
Discussion started by: dave_m
0 Replies

8. UNIX for Dummies Questions & Answers

Expect/Tcl help?

Does anyone know of an expect/tcl forum that is as helpful as this one is for shell scripting? Or if anyone has any expect knowledge, can you please provide some guidance on how to write to a local error log based on output from a ssh session? I have something like this: foreach host... (2 Replies)
Discussion started by: earnstaf
2 Replies

9. Shell Programming and Scripting

Expect with tcl/tk

hai all, i have an tcl script in which i have been reading the DUT Command prompt of an cisco switch as DUT Command Prompt : cisco* and running the test case of stp now the problem is if i have given any blank space in between the cisco or at the startup then the Expect is not identifying the... (0 Replies)
Discussion started by: sanjustudy
0 Replies

10. Shell Programming and Scripting

TCL/Expect project questions

I am rewriting the first big script project I ever coded to clean up some issues, mainly my really clumsy bash code, and to migrate to TCL/Expect. I have a couple of questions that I could use some help with. 1.) The script needs to know where it is located. I realize that I could use "find /... (1 Reply)
Discussion started by: thumper
1 Replies
Login or Register to Ask a Question