James.Q.L
2003-Oct-24 06:40 UTC
[Samba] can i send win popup msg from any computer in the same subnet ?
Dear all, i want to send windows popup message from a redhat 9.0 box in the same subnet. the receivers are on group of 'ECON'. does this redhat machine have to be the samba server to send win msg ? error i got is "Connection to econ02 failed" econ02 is a XP pro machine and a popup service is running. #nmblookup econ02 can resolve the correct ip. querying econ02 on 130.63.230.255 130.63.230.42 econ02<00> 192.168.0.1 econ02<00> 192.168.61.1 econ02<00> #nmblookup -M -- - querying __MSBROWSE__ on 130.63.230.255 130.63.230.242 __MSBROWSE__<01> 130.63.230.132 __MSBROWSE__<01> 130.63.230.87 __MSBROWSE__<01> 130.63.230.90 __MSBROWSE__<01> #echo 'hello' | /usr/local/samba/bin/smbclient -M econ02 -d 10 shows: [2003/10/24 01:39:21, 5] lib/util.c:init_names(270) Netbios name list:- my_netbios_names[0]="DEV" [2003/10/24 01:39:21, 3] client/client.c:main(2954) Client started (version 3.0.0). [2003/10/24 01:39:21, 10] libsmb/namequery.c:internal_resolve_name(989) internal_resolve_name: looking up econ02#3 [2003/10/24 01:39:21, 5] lib/gencache.c:gencache_init(59) Opening cache file at /var/cache/samba/gencache.tdb [2003/10/24 01:39:21, 10] lib/gencache.c:gencache_get(286) Cache entry with key = NBT/ECON02#03 couldn't be found [2003/10/24 01:39:21, 5] libsmb/namecache.c:namecache_fetch(195) no entry for econ02#03 found. [2003/10/24 01:39:21, 10] lib/gencache.c:gencache_del(214) Deleting cache entry (key = NBT/ECON02#03) [2003/10/24 01:39:21, 3] libsmb/namequery.c:resolve_lmhosts(850) resolve_lmhosts: Attempting lmhosts lookup for name econ02<0x3> [2003/10/24 01:39:21, 4] libsmb/namequery.c:getlmhostsent(598) getlmhostsent: lmhost entry: 127.0.0.1 localhost [2003/10/24 01:39:21, 3] libsmb/namequery.c:resolve_wins(748) resolve_wins: Attempting wins lookup for name econ02<0x3> [2003/10/24 01:39:21, 3] libsmb/namequery.c:resolve_wins(751) resolve_wins: WINS server resolution selected and no WINS servers listed. [2003/10/24 01:39:21, 3] libsmb/namequery.c:name_resolve_bcast(690) name_resolve_bcast: Attempting broadcast lookup for name econ02<0x3> [2003/10/24 01:39:21, 10] lib/util_sock.c:open_socket_in(655) bind succeeded on port 0 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_KEEPALIVE = 0 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_REUSEADDR = 1 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_BROADCAST = 1 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(103) Could not test socket option TCP_NODELAY. [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option IPTOS_LOWDELAY = 0 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option IPTOS_THROUGHPUT = 0 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_SNDBUF = 65535 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_RCVBUF = 65535 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_SNDLOWAT = 1 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_RCVLOWAT = 1 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_SNDTIMEO = 0 [2003/10/24 01:39:21, 5] lib/util_sock.c:print_socket_options(105) socket option SO_RCVTIMEO = 0 [2003/10/24 01:39:21, 5] libsmb/nmblib.c:send_udp(744) Sending a packet of len 50 to (130.63.230.255) on port 137 [2003/10/24 01:39:22, 5] libsmb/nmblib.c:send_udp(744) Sending a packet of len 50 to (130.63.230.255) on port 137 [2003/10/24 01:39:22, 5] libsmb/nmblib.c:send_udp(744) Sending a packet of len 50 to (130.63.230.255) on port 137 [2003/10/24 01:39:22, 10] intl/lang_tdb.c:lang_tdb_init(135) Connection to econ02 failed what should i look into here ? Many Thanks! Qiang __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
Hello, all. I want to send a message to Windwos clients, a la "smbclient -M", from my Samba 3.x box. Is this possible? I seem to recall (and apt-get seems to agree) that smbclient has been deprecated; however, I can't find the winpopup functionality in the "net" command. I suppose I could just compile the source for smbclient, and hope that it works, but if there's a "right way" to do it, that's the way I'd prefer to go. Thanks much, Ken D'Ambrosio Sr. SysAdmin, Xanoptix, Inc.
Hi Ken, Am 9 Jun 2004 um 10:05 hat Ken D'Ambrosio geschrieben:> Hello, all. I want to send a message to Windwos clients, a la > "smbclient -M", from my Samba 3.x box. Is this possible? I seem to > recall (and apt-get seems to agree) that smbclient has been deprecated;On a box with 2.2.8a I used 2 variants: 1. echo "message" | smbclient -M recipient_machine -U name_of_your_choice > /dev/null 2. I created a file 'msg' and sent it with cat /path/msg | smbclient -M recipient_machine -U name_of_your_choice> /dev/nulldidn't try it on Samba2, but I think it will work there, too. Uwe