restart io-net

Hi,

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?


Respectfully Yours
vasa

“vasa” <vv40in@rambler.ru> wrote in news:a4e49r$da6$1@inn.qnx.com:

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

“Adam Mallory” <amallory@qnx.com> wrote in message
news:Xns91B566CEEA4amalloryqnxcom@209.226.137.4

“vasa” <> vv40in@rambler.ru> > wrote in news:a4e49r$da6$> 1@inn.qnx.com> :

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.

AFAIU You offer to write SPECIAL scripts for EVERY machine?

sorry, i told about i need UNIVERSAL script !
i.e. it should be correctly worked on EVERY machine!

moreover, i need (re)start io-net very offen because i need to debug
some code. and this script also could be executed by crond
to load io-net if it is not in memory or in some another difined cases


Best regards,
vasa mailto:vasilii@cambira.com

“vasa” <vv40in@rambler.ru> wrote in news:a4grms$e5r$1@inn.qnx.com:

AFAIU You offer to write SPECIAL scripts for EVERY machine?

No, only a place where to execute it.

sorry, i told about i need UNIVERSAL script !
i.e. it should be correctly worked on EVERY machine!

Thats a design issue you need to resolve. There are lots of ways to do
this. You could do a :

pidin mem | grep “devn” | cut -c13-31

to figure out what driver to “reload”. Mind you this isn’t the best way,
but illustrative none the less.

moreover, i need (re)start io-net very offen because i need to debug
some code. and this script also could be executed by crond
to load io-net if it is not in memory or in some another difined cases

A good shell scripting book (general sh scripting or ksh) will help you
greatly in this endevour.


\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

Actually I am curious which script default installation runs after a reboot. I suspect
it has something to do with rc.devices and /etc/system/enum, but it gets fairly
cryptic pretty quickly.

What is the default script that starts io-net?
Can I safely “slay io-net” and then run this script?



Adam Mallory wrote:

“vasa” <> vv40in@rambler.ru> > wrote in news:a4e49r$da6$> 1@inn.qnx.com> :

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

It isn’t started from a script, it is started by the enumerators. They are
a set of processes that scan busses and watch for changes to start and stop
drivers in the system. The files in /etc/system/enum are the “database”
of information for the enumerators to use for identifying devices.

chris


Chris Goebel <cgoebel@tridium.com> wrote:

Actually I am curious which script default installation runs after a reboot. I s
uspect
it has something to do with rc.devices and /etc/system/enum, but it gets fairly
cryptic pretty quickly.

What is the default script that starts io-net?
Can I safely “slay io-net” and then run this script?



Adam Mallory wrote:

“vasa” <> vv40in@rambler.ru> > wrote in news:a4e49r$da6$> 1@inn.qnx.com> :

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Chris Goebel <cgoebel@tridium.com> ïèøåò â ñîîáùåíèè:3C6D5E67.6ADCF8AC@tridium.com

Actually I am curious which script default installation runs after a reboot. I suspect
it has something to do with rc.devices and /etc/system/enum, but it gets fairly
cryptic pretty quickly.

What is the default script that starts io-net?
Can I safely “slay io-net” and then run this script?

yes, i need slay then run.
but this script MUST BE UNIVERSAL!!

and see – 1st letter enumerator works incorrectly
if it runs twice…

Best regards,
Vasilii


Adam Mallory wrote:

“vasa” <> vv40in@rambler.ru> > wrote in news:a4e49r$da6$> 1@inn.qnx.com> :

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

Chris McKillop <cdm@qnx.com> ÐÉÛÅÔ × ÓÏÏÂÝÅÎÉÉ:a4l413$d8f$1@nntp.qnx.com

It isn’t started from a script, it is started by the enumerators. They are
a set of processes that scan busses and watch for changes to start and stop
drivers in the system. The files in /etc/system/enum are the “database”
of information for the enumerators to use for identifying devices.

chris

see 1st letter – enumerator works incorrectly
if it runs second time…
and see news: qdn.public.sysadmin – topic io-net restart
(in my (vasa) letter)
there is “universal” script – but it works incorrectly too


Best regards,
Vasilii


Chris Goebel <> cgoebel@tridium.com> > wrote:

Actually I am curious which script default installation runs after a reboot. I s
uspect
it has something to do with rc.devices and /etc/system/enum, but it gets fairly
cryptic pretty quickly.

What is the default script that starts io-net?
Can I safely “slay io-net” and then run this script?



Adam Mallory wrote:

“vasa” <> vv40in@rambler.ru> > wrote in news:a4e49r$da6$> 1@inn.qnx.com> :

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

vasa <vv40in@rambler.ru> wrote:

Chris Goebel <> cgoebel@tridium.com> > ïèøåò â ñîîáùåíèè:> 3C6D5E67.6ADCF8AC@tridium.com> …
Actually I am curious which script default installation runs after a reboot. I suspect
it has something to do with rc.devices and /etc/system/enum, but it gets fairly
cryptic pretty quickly.

What is the default script that starts io-net?
Can I safely “slay io-net” and then run this script?

yes, i need slay then run.
but this script MUST BE UNIVERSAL!!

I am not a Shell Script Expert, but this does not sounds that complicate.
How about:

#!/bin/sh

drivers=pidin mem | grep devn | awk '{print $1}'
slay -f io-net
io-net -p tcpip -p qnet
for d in $drivers; do
mount -Tio-net $d
done

-xtang

and see – 1st letter enumerator works incorrectly
if it runs twice…

Best regards,
Vasilii



Adam Mallory wrote:

“vasa” <> vv40in@rambler.ru> > wrote in news:a4e49r$da6$> 1@inn.qnx.com> :

I want script which executes on EVERY machine and restarts io-net
AFAIK, /sbin/enum-devices always starts some device drivers
(such as io-audio,io-graphics etc) although its were loaded.

which is the best solution to restart io-net?

Create a file called /etc/rc.d/rc.local . In it, slay io-net and then
restart io-net as you need.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

I am not a Shell Script Expert, but this does not sounds that complicate.
How about:

#!/bin/sh

drivers=pidin mem | grep devn | awk '{print $1}'
slay -f io-net
io-net -p tcpip -p qnet
for d in $drivers; do
mount -Tio-net $d
done

-xtang

Thanks, it could help only iff io-net in memory
(although i can do enumeration beforehand
– but it is idea is not nice for me).


Best regards,
Vasilii