Snoop - saving the file

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Snoop - saving the file
# 1  
Old 12-19-2013
Snoop - saving the file

Hi Guy's,
I want to run a snoop on an interface and then save it to the local jumpbox that I am connected to the end device via. Can anyone help with the syntax please.

# 2  
Old 12-19-2013
Specify the output file to save it to whatever location that you want:
snoop -d <interface name> -o <absolute path of output file>

Read manual for further reference.
# 3  
Old 12-19-2013
when you say absolute path what exactly would i put

on the jump box the directory i want to save in is below


but at the time I am logged into the node via ssh from the jumpbox

# 4  
Old 12-19-2013
If password-less login is setup using ssh-keys, then you could try (untested):
snoop -d <interface name> | ssh hostname 'cat >> /home/user1/output.pcap'

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

[Solved] Removing duplicates from the file and saving as new file

Dear All I have 200 data files and each files has many duplicates. I am looking for the automated awk script such that it checks and removes the duplicates from the each file and saving them as new files for all 200 files in the respective folder. For example my data looks like this.. ... (12 Replies)
Discussion started by: bala06
12 Replies

2. Solaris

Modifying the contents of a file and saving it

I have a file with the following content: -------------------- SQL> @DBmonitor_WMHA_SQL_script.sql; Tablespace Size (GB) Free (GB) % Free % Used ------------------------------ ---------- ---------- ---------- ---------- WMHAIT_IS ... (8 Replies)
Discussion started by: Avik Datta
8 Replies

3. Shell Programming and Scripting

Editing a file and saving it

HI I have a file samp1.xml which has the following content <ErrorMessage><ExceptionNumber>5117</ExceptionNumber><OriginalMessage><!<?xml version="1.0" encoding="UTF-8"?> <EMAILS xmlns:xsi="" xsi:noNameSpaceSchemaLocation=".\SMTPSchema.xsd"> <EMAIL... (7 Replies)
Discussion started by: harimhkr
7 Replies

4. UNIX for Dummies Questions & Answers

Help with saving file in desired format

Hi I have the following file in the unix named emp. ID,NAME,SAL,DEPT 101,aaa,2000,10 102,bbb,3000,20 103,ccc,4000,30 104,ddd,5000,40 105,aaa,2000,50 106,bbb,3000,60 107,ccc,4000,70 108,ddd,5000,10 109,aaa,2000,80 I need to save first 3 columns(ID, NAME, SAL) in another file with... (2 Replies)
Discussion started by: alok3141
2 Replies

5. Shell Programming and Scripting

saving output from bash into a file

I am ssh to many servers to get some information... however sometimes the server is unreacheable and i am getting an error. I want to save that output to a file but I am not able to do so... I want to be able to save output of bash into a file.. so when I run this command on a script ssh... (5 Replies)
Discussion started by: eponcedeleonc
5 Replies

6. Solaris

Export snoop file from an ftp server to a windows pc

Hi, I have a snoop file that I captured on a solaris machine. I ftp'd it to ftp server. How can I export this snoop file from the solaris machine or the ftp server to a windows PC so I can load it to wireshark and analyze it? Thanks, (6 Replies)
Discussion started by: Pouchie1
6 Replies

7. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

8. UNIX for Dummies Questions & Answers

Saving stuff to a text file

If I do a "history" and get a list of commands that I've done before, can I save them to a text file? If not, then would there be any other ways around this? Also, what's a snapshot? Thanks in advance. (6 Replies)
Discussion started by: DrManhattan
6 Replies

9. Programming

Saving a vector to a file

Another C++ question, please do notify me if this forum is C-only! :) I'm having a vector... vector<Person> x; ... with a class I've defined (Person). I have several elements in this vector and I would like to save it to a file (binary (?)). And later on open up this file to retrieve... (1 Reply)
Discussion started by: J.P
1 Replies

10. UNIX for Dummies Questions & Answers

Saving a redirected file

What command do I use in order to save a file in directory A/B/C to directory A/D/E. (1 Reply)
Discussion started by: JSP
1 Replies
Login or Register to Ask a Question