Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
11 user(s) are online (8 user(s) are browsing Forum)

Members: 0
Guests: 11

more...


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: ConfigIP - michal & other I need your help
#12
Home away from home
Home away from home


See User information
Quote:

mazze wrote:
Quote:

mazze wrote:

I don't know yet why it fails.


Wait. When I call stopnet without prior running startnet then I get the rexx error. This means you can only call stopnet when the TCP stack is running.


On VMwAROS the TCP/IP stack is launched at boot, so it is surely running when stopnet is called.

Posted on: 2007/11/30 9:27
p.bes
Icaros Desktop AROS distribution mantainer
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#11
Home away from home
Home away from home


See User information
Quote:

e-latour wrote:
...
BTW: Does AROSTCP not support DHCP at the moment?


No! :nul:

It would be alot easier to setup a network if you only had to tick the box!!

Posted on: 2007/11/30 4:18
It's Brutal! -
AROS, "genetically engineering horses into a race of sunshine-farting unicorns."
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#10
Not too shy to talk
Not too shy to talk


See User information
Quote:
Paolone Wrote:
Tried also this. But nothing. RX says "RX: # object not found" and still doesn't kill the network. In the end I've decided to give up this minor issue, and just say people "reboot after you're don with config".


Like I mentionned in a previous post, I pretty much came to the same conclusion after playing with this the other night. The RX command contained in the stopnet script does not cause AROSTCP to stop, unload or restart...it just does nothing, not even output an error message. So basically, I just ended up modifying the script to edit the relevant files in ENVARC:. If I make a change, I just make sure to reboot for the changes to take effect.

BTW: Does AROSTCP not support DHCP at the moment?

Posted on: 2007/11/30 0:13
When swimming with sharks, make sure to bring band-aids...
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#9
Home away from home
Home away from home


See User information
Quote:

mazze wrote:

I don't know yet why it fails.


Wait. When I call stopnet without prior running startnet then I get the rexx error. This means you can only call stopnet when the TCP stack is running.

Posted on: 2007/11/29 19:57
AROS - Make code, not war :knuddel:
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#8
Home away from home
Home away from home


See User information
Tried also this. But nothing. RX says "RX: # object not found" and still doesn't kill the network. In the end I've decided to give up this minor issue, and just say people "reboot after you're don with config".

Posted on: 2007/11/29 19:54
p.bes
Icaros Desktop AROS distribution mantainer
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#7
Home away from home
Home away from home


See User information
Quote:

paolone wrote:

and.. big surprise: couldn't launch arostcp 'cos another stack was already running. In practice, stopnet isn't doing its job as expected.

I'd really like to know why.


If you open stopnet in an editor you'll see that it calls the rexx interpreter:

RX "address AROSTCP; KILL" Send "KILL" to the TCP/IP stack


I don't know yet why it fails.

But you could write the line above directly in your script.

Posted on: 2007/11/29 19:49
AROS - Make code, not war :knuddel:
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#6
Home away from home
Home away from home


See User information
Quote:

mihcaels wrote:
as Ball000 has said, sys:c/edit doesn't exist, i noticed that it was the same in beta0.1, but still worked OK, so this does not refer to the problem you are having!!

I wonder whether it copies the stuff from envarc: to env: before the user has modified and then saved their config. (im totally unknown to the procedure here, if it waits for previous command to finish before proceeding)


I don't think so. If I look into ENV: files, they are correctly updated.

Quote:

maybe chuck a wait [x seconds] in there before the startnet??


I've already tried wiating 3 and 5 secs before restarting the net, however without result. So I cut away the 'wait' command.

The problem I furterly investigated, is that ConfigIP actually DOESN'T STOP THE NETWORK invoking stopnet. It's something I have already seen somewhere else: as you can see in VmwAROS S:, I had to create a script that changes the local directory to YAFS one and then launches it, 'cos if I tried launching YAFS directly from user-startup... well, it didn't start, complaining it couldn't find something I don't remember.

I created a quick 'testnet' script in prefs and executed it:

Quote:
execute sys:Extras/Networking/Stacks/AROSTCP/S/stopnet
echo here I killed the net
ifconfig -a
wait 5
execute sys:Extras/Networking/Stacks/AROSTCP/S/startnet
echo here I restored the net
ifconfig -a


and.. big surprise: couldn't launch arostcp 'cos another stack was already running. In practice, stopnet isn't doing its job as expected.

I'd really like to know why.

Posted on: 2007/11/29 11:48
p.bes
Icaros Desktop AROS distribution mantainer
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#5
Home away from home
Home away from home


See User information
Quote:

mihcaels wrote:
I wonder whether it copies the stuff from envarc: to env: before the user has modified and then saved their config. (im totally unknown to the procedure here, if it waits for previous command to finish before proceeding)

The SYS:Tools/Editor doesn't detach itself from CLI so the script isn't running until Editor quits. So imho the copy doesn't occur before saving.

Quote:
maybe chuck a wait [x seconds] in there before the startnet??

Indeed (to prevent possible problems if dos is still writing to the file when startnet is called)

Posted on: 2007/11/29 11:37
Everyone knew it was impossible. Along came a fool who did not know and he did it.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#4
Home away from home
Home away from home


See User information
Quote:

Ball000 wrote:
Quote:

paolone wrote:

sys:tools/editor sys:C/edit envarc:AROSTCP/db/interfaces
copy envarc:AROSTCP/db/interfaces env:AROSTCP/db/interfaces


As far as I know we don't have SYS:C/Edit on AROS ;)
I guess you forgot it there, but then your script seems to edit (using SYS:Tools/Editor) a "edit" file in SYS:C (three times).



I cant' believe the problem was so silly. And in fact the problem is not this one. Once I had corrected the files, the issue still occurs. Same behavior, launching startnet and stopnet from ConfigIP doesn't work, starting them from the shell works. Why?

Posted on: 2007/11/29 11:28
p.bes
Icaros Desktop AROS distribution mantainer
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: ConfigIP - michal & other I need your help
#3
Home away from home
Home away from home


See User information
as Ball000 has said, sys:c/edit doesn't exist, i noticed that it was the same in beta0.1, but still worked OK, so this does not refer to the problem you are having!!

I wonder whether it copies the stuff from envarc: to env: before the user has modified and then saved their config. (im totally unknown to the procedure here, if it waits for previous command to finish before proceeding)

maybe chuck a wait [x seconds] in there before the startnet??

Posted on: 2007/11/29 11:26
It's Brutal! -
AROS, "genetically engineering horses into a race of sunshine-farting unicorns."
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project