msriram@giza.cis.ohio-state.edu (M G SriRam) (01/18/91)
In my Sun 4/330 installation of RU-CAP2 GetZones reports three zones, lets call them A, B and C, and in my atalk.local i have an entry for zone A followed by its AppleTalk zone number. atlook yields information on Zone A, ie the CAP file server. However I expected that atlook with no arguments would provide information on all zones. Instead, only when I give it the argument "=:=:B" does it list all the devices in Zone B. Same situation with atlooklws. Is this some kind of bug? Also, I am preparing to upgrade from SunOs 4.1 to SunOs4.1.1. Does RU-CAP2 work under SunOs4.1.1? many thanks in advance! sriram
rapatel@khnphwzhn.njin.net ( Rakesh Patel) (01/18/91)
atlook uses a default of '=:=@*', so you may have assumed that the '*' means all zones. It does not. '*' stands for "my zone", whatever it may be, resulting in the situation you see. As far as I know, there is no supported wildcard notation for "all zones" under CAP. NBP lookups to all zones would be a very bad idea for network traffic, so defaulting atlook to such conditions would be a very unfriendly thing to do. In other words, yes, atlook is working properly in the case you mentioned, so no, it is not considered a bug. Rakesh Patel.
pierre@imag.fr (Pierre LAFORGUE) (01/24/91)
In article <87368@tut.cis.ohio-state.edu>, msriram@giza.cis.ohio-state.edu (M G SriRam) writes: |> However I expected |> that atlook with no arguments would provide information on all zones. |> Instead, only when I give it the argument "=:=:B" does it list all the |> devices in Zone B. Same situation with atlooklws. Is this some |> kind of bug? This is a script to do what you want: #! /bin/sh - # script atlook-all PATH=/usr/ucb:/bin:/usr/bin:/usr/local/bin: for i in `getzones | sed -n -e 's/\*$//' -e '/^ZONE /s///p'` do atlook $i | sed -e "s/@\*/@$i/" done --- Pierre LAFORGUE laforgue@imag.Fr