> 
> From the output locally:
> 
> tracepath.py 192.168.3.6
> Getting path from billion.dyndns.org to 192.168.3.6...
> zenoss ->  -> 192.168.3.6
> 
> What's the mean by the missing link between zenoss & 192.168.3.6 ? Maybe the 
> missing link can be replaced by some readable error message.
> 


Actually the blank doesn't represent an error.  It actually means there's a 
direct connection between the two devices.  The script doesn't handle the 
special case where there's no intermediate devices well.  This can be fixed by 
changing the last couple of lines in the file from:

Code:

print "zenoss -> " \
    + " -> ".join([ dmd.Networks.findIp(ip).device().id for ip in path[:-1] ]) \
    + " -> " + arg




to


Code:

if len(path) > 2:
    print "zenoss -> " \
    + " -> ".join([ dmd.Networks.findIp(ip).device().id for ip in path[:-1] ]) \
    + " -> " + arg
else:
    print "zenoss -> " + arg




It also doesn't handle no device specified either.  Running "tracepath.py" 
outputs:


Code:

  File "/usr/local/zenoss/zenoss/bin/tracepath.py", line 12, in ?
    arg = sys.argv[1]
IndexError: list index out of range




But that requires writing a usage function and doing the argument handling 
properly, which is beyond what I'm prepared to write today.




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=24465#24465

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to