snoop command


 
Thread Tools Search this Thread
Operating Systems Solaris snoop command
# 1  
Old 02-04-2004
Question snoop command

Hi.
I'm trying to capture traffic with the snoop command using the net expression but I fail when a I've to specify a subnet
ex: 10.201.64/18
Did you know the correct syntax?
I've tried with
snoop -ta -x0 net 10.201.64.0 255.255.192.0
but doesn't match.

Thnx
# 2  
Old 02-04-2004
RTFM :-)
# 3  
Old 01-21-2008
Sorry for ressurecting the old thread... but it's still pretty high on google
I did read the manual... still can't figure out how to specify a subnet Smilie

the man page says:

Quote:
net net
True if either the IP source or destination
address has a network number of net. The from or
to qualifier may be used to select packets for
which the network number occurs only in the source
or destination address.
snoop -v net 10.0.0.0 255.0.0.0 doesn't seem to capture packets coming from/going to nodes in the 10.X net
snoop -v net 10.0.0.0/8 ---> invalid expression at "".
snoop -v net 10.0.0.0 8 doesn't seem to capture any packets either

Last edited by rb2k; 01-21-2008 at 07:07 AM..
# 4  
Old 01-21-2008
The manual page states the network number should be used. You are adding various ways to specify the network mask which aren't expected by the command.
Try:
Code:
snoop -v net 10.0.0.0

# 5  
Old 01-21-2008
hm, thanks for the fast answer Smilie

So does snoop simply try to guess the network mask? (kinda strange... isn't it?)

Even with the "proper" commadnline, snoop doesn't seem to properly capture anything on my Solaris Box (sun 0S 5.8 on a SPARC cpu)

It could be that bug though I guess: Bug ID: 6407761 Improve how snoop filters on a subnet
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to read the output of snoop command?

Hi! I have run the following command: snoop -q -d e1000g0 -o /var/tmp/optima0.txt & them I am trying to read the output of it with snoop -i /var/tmp/optima0.txt, which is giving me this: # snoop -i /var/tmp/optima0.txt | more 1 0.00000 AIOPTSVR -> 10.100.4.72 TCP D=1393 S=22 Push... (8 Replies)
Discussion started by: fretagi
8 Replies

2. Shell Programming and Scripting

snoop script in background

Hi I want to write a script for snoop which can do snoop for 30 min and then process should be killed automatically I am using below codes #!/usr/bin/ksh snoop -d igb0 -o /opt/temp/abc.pcap sleep 1500 kill -9 `ps -ef|grep -i snoop |grep -v grep|awk '{print $2}'` But process is not... (3 Replies)
Discussion started by: anish19
3 Replies

3. Solaris

Snoop perl script

Hi , I would like to write a perl script with the snoop command to capture packets from a specific IP address to a node (incoming packets) and packets from that node for the same session to another node and save the capture to a file. I would like my script to be able to read my IP all the time... (7 Replies)
Discussion started by: Pouchie1
7 Replies

4. UNIX for Advanced & Expert Users

FTP Snoop

Hi, Can anyone please tell me a ftp site where I can download the solaris snoop package? I need to download the package so I can use the command in a Linux environment instead of using tcpdump. Need practice with snoop. Thanks for your help. (3 Replies)
Discussion started by: Pouchie1
3 Replies

5. Linux

Snoop command package install

Hi, What web site I can download the snoop package from and install it into a linux environment, so I can practice and become familiar with the snoop command and capture packets with it. Thanks , (0 Replies)
Discussion started by: Pouchie1
0 Replies

6. Solaris

Analyze packets with snoop

Is there anywhere we can get details about what we should expect to see and not to see in some packets captured with "snoop" during troubleshooting a problem? I know we can capture packes for a failed transaction and compare them with packets for a successful trasaction.Is that the only way to... (4 Replies)
Discussion started by: Pouchie1
4 Replies

7. Shell Programming and Scripting

Snoop Script

Hi, I want to write a script that checks an interface with the snoop command, if there is no traffic in 10 minutes on port 123 from the ip add 10.*.*.* it should send a e-mail.but i don't know how to start writing this script does anybody have an idea or an sample script that i can modifi. ... (2 Replies)
Discussion started by: tafil
2 Replies

8. IP Networking

snoop command on Sun box

Hi Gang: Need some help with a snoop command. Sun box (solaris 8) has 4 nic cards, I need to snoop one address and output that to a file so wireshark can read it. Can anyone help me out..? Think its something like.... snoop -i 10.10.10.10 -o snoop_output (1 Reply)
Discussion started by: jimmyc
1 Replies

9. Solaris

Snoop Functions

Hello! It is my first post in this forum :). I`m facing a strange issue. I am using a Solaris 8 as OS, and using the ipnat (ipf) to NAT an incoming port to another, as following: Host SUN with Solaris 8/NAT WEB Page (A.B.C.D:80) ---> |A.B.C.D:80 ->... (0 Replies)
Discussion started by: mf_lattanzi
0 Replies

10. UNIX for Dummies Questions & Answers

snoop equivalent

is there a snoop equivalent in other flavors of unix? HPUX, SCO or linux. TIA Peter (2 Replies)
Discussion started by: pbonilla
2 Replies
Login or Register to Ask a Question