Thursday, December 11, 2008

SecureCRT script for running MultiCast patch in Olive with VMware

1. Create file named command. txt and auto.js. Put this files under C: \ temp directory
2. Open command.txt with your favorite editor and copy this text
"blank row"
boot -s

/bin/sh
cd /modules
kldload ./syscall11.ko
root
root123
sysctl dev.em.0.fix_em_multicast=1
sysctl dev.em.1.fix_em_multicast=1
sysctl dev.em.2.fix_em_multicast=1
sysctl dev.em.3.fix_em_multicast=1
cli

3. Open auto.js with your favorite editor and copy this text
# $Language = "JScript"
# $interface = "1.0"

function main()
{
var fso, f, r;
var ForReading = 1, ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("c:\\temp\\file.txt", ForReading);
crt.Screen.Synchronous = true;
var str; var str;


crt.Screen.WaitForString( "prompt." );
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "OK" );
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "/bin/sh: " );
str = f.Readline();str += "\015";crt.Screen.Send( str );
str = f.Readline();str += "\015";crt.Screen.Send( str );
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.screen.Send("\004");
crt.Screen.WaitForString( "login:" );
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "Password:" );
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
str = f.Readline();str += "\015";crt.Screen.Send( str );
crt.Screen.WaitForString( "%"); // Note: % is the promt
}
4.
To use start VM right away, open SecureCRT-> Script->Run->auto.js
5. Enjoy



5 comments:

adeel said...

Dear Asad Arafat Aslamualikum,

How are you hope you are great dear i need your help could you please provide me multicast patch for olive basically i have been finding since many days but i did not get it i am very worry about it because i have to prepare for JNCIA-ER and i have found syscall.ko patch on internet but i did not get it yes please me in this regard i would be very thankful to .

Jazakallah

Asad said...

hi adeel,
i have syscall.ko patch with me.
pls contact me via email.

mike said...

1As'ad,

Just read you web page and the other person request and having the smae problem, I need the patch in order to run in olive. pls email me the patch thx

Unknown said...

Please email me the patch.
thx.

Unknown said...

Please email me the patch.
thx.