Re: [nox-dev] Component: hosttracker
>(for example - what do *you* mean when you say "when I remove the host? :). In a physical environment, this can mean turning the machine off, or unplugging its network cable, both of which events aren't easily >detectable from the network's perspective) "remove" means unplugging its network cable. Frist, pls see the file "src/nox/netapps/lavi/lavi_hosts.cc", and it wraps the jsonmsg with "add/delete", so I think that it should be sent a msg when the host's removed. But I just get the msg as "{type: lavi, node type: host, node id: XXX, command: add}" when the host's pinging the switch, and after unplugging the host's network cable, I can't find a msg including "command: delete". Is it my misunderstanding, or component's imperfection? Date: Mon, 5 Dec 2011 23:25:47 -0800 Subject: Re: [nox-dev] Component: hosttracker From: kyr.zari...@gmail.com To: switch@hotmail.com CC: nox-dev@noxrepo.org Ah, ok. So I'm not sure exactly how the logic that detects if a host has been removed is implemented, as I didn't write this component. So I don't know when the "delete" message is sent for hosts. I could take a look and get back to you. The logic should be somewhere inside LAVI/hosttracker, and it might be something along the lines of "if you haven't heard any traffic from host, remove it, or 'if you hear traffic from host X on port B, but X is registered on port A, remove it from A". (for example - what do *you* mean when you say "when I remove the host? :). In a physical environment, this can mean turning the machine off, or unplugging its network cable, both of which events aren't easily detectable from the network's perspective) On Mon, Dec 5, 2011 at 10:25 PM, ztom wrote: > when you say the front-end, do you mean noxconsole? the GUI? GUI, nox-gui.py > (you can take a look at the GUI to see how the message exchange happens and what they messages look like.. the code should be in topology.py) I know the process of msg exchange, back-end(jsonmsg)->view_interface(signal/slot)->GUI. But when I remove the host, nox(with LAVI component) will send a jsonmsg including "node_type: host, command: delete". Actually, it doesn't, so I'm confused. Date: Mon, 5 Dec 2011 22:14:47 -0800 Subject: Re: [nox-dev] Component: hosttracker From: kyr.zari...@gmail.com To: switch@hotmail.com CC: nox-dev@noxrepo.org when you say the front-end, do you mean noxconsole? the GUI? (you can take a look at the GUI to see how the message exchange happens and what they messages look like.. the code should be in topology.py) On Mon, Dec 5, 2011 at 9:28 PM, ztom wrote: Hi~ alls, I found a component named "hosttracker" with source code, and it can handle adding or removing of hosts. But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring hosttracker), the front-end still can't receive the jsonmsg as "{'node_type': 'host', 'command':'add/remove'}". What should i do??? --- thanks tom ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] Component: hosttracker
Ah, ok. So I'm not sure exactly how the logic that detects if a host has been removed is implemented, as I didn't write this component. So I don't know when the "delete" message is sent for hosts. I could take a look and get back to you. The logic should be somewhere inside LAVI/hosttracker, and it might be something along the lines of "if you haven't heard any traffic from host, remove it, or 'if you hear traffic from host X on port B, but X is registered on port A, remove it from A". (for example - what do *you* mean when you say "when I remove the host? :). In a physical environment, this can mean turning the machine off, or unplugging its network cable, both of which events aren't easily detectable from the network's perspective) On Mon, Dec 5, 2011 at 10:25 PM, ztom wrote: > > when you say the front-end, do you mean noxconsole? the GUI? > GUI, nox-gui.py > > > > (you can take a look at the GUI to see how the message exchange happens > and what they messages look like.. the code should be in topology.py) > I know the process of msg exchange, > back-end(jsonmsg)->view_interface(signal/slot)->GUI. But when I remove the > host, nox(with LAVI component) will send a jsonmsg including "node_type: > host, command: delete". Actually, it doesn't, so I'm confused. > > -- > Date: Mon, 5 Dec 2011 22:14:47 -0800 > Subject: Re: [nox-dev] Component: hosttracker > From: kyr.zari...@gmail.com > To: switch@hotmail.com > CC: nox-dev@noxrepo.org > > > when you say the front-end, do you mean noxconsole? the GUI? > (you can take a look at the GUI to see how the message exchange happens > and what they messages look like.. the code should be in topology.py) > > On Mon, Dec 5, 2011 at 9:28 PM, ztom wrote: > > Hi~ alls, > > I found a component named "hosttracker" with source code, and it can > handle adding or removing of hosts. > But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring > hosttracker), the front-end still can't receive the jsonmsg > as "{'node_type': 'host', 'command':'add/remove'}". What should i do??? > > --- > thanks > tom > > ___ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > > > ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] Component: hosttracker
> when you say the front-end, do you mean noxconsole? the GUI? GUI, nox-gui.py > (you can take a look at the GUI to see how the message exchange happens and what they messages look like.. the code should be in topology.py) I know the process of msg exchange, back-end(jsonmsg)->view_interface(signal/slot)->GUI. But when I remove the host, nox(with LAVI component) will send a jsonmsg including "node_type: host, command: delete". Actually, it doesn't, so I'm confused. Date: Mon, 5 Dec 2011 22:14:47 -0800 Subject: Re: [nox-dev] Component: hosttracker From: kyr.zari...@gmail.com To: switch@hotmail.com CC: nox-dev@noxrepo.org when you say the front-end, do you mean noxconsole? the GUI?(you can take a look at the GUI to see how the message exchange happens and what they messages look like.. the code should be in topology.py) On Mon, Dec 5, 2011 at 9:28 PM, ztom wrote: Hi~ alls, I found a component named "hosttracker" with source code, and it can handle adding or removing of hosts. But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring hosttracker), the front-end still can't receive the jsonmsg as "{'node_type': 'host', 'command':'add/remove'}". What should i do??? --- thanks tom ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] Component: hosttracker
when you say the front-end, do you mean noxconsole? the GUI? (you can take a look at the GUI to see how the message exchange happens and what they messages look like.. the code should be in topology.py) On Mon, Dec 5, 2011 at 9:28 PM, ztom wrote: > Hi~ alls, > > I found a component named "hosttracker" with source code, and it can > handle adding or removing of hosts. > But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring > hosttracker), the front-end still can't receive the jsonmsg > as "{'node_type': 'host', 'command':'add/remove'}". What should i do??? > > --- > thanks > tom > > ___ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > > ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev