Sniffer upgrade: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Upgrade or Downgrade from web GUI =
{{DISPLAYTITLE:Upgrading and Downgrading the Sniffer}}
Go to settings -> sensors and do the upgrade from there.
Only running sniffers can be downgraded or upgraded via GUI. If you need to do downgrade, click on (+) for details, and then click on Blue UPGRADE button, dropbox will appear with versions available for downgrade/upgrade.


'''This guide provides step-by-step instructions for upgrading or downgrading the VoIPmonitor sensor (sniffer). There are two primary methods: using the Web GUI for simplicity, or performing a manual update via the command line for more control.'''


== Method 1: Upgrading via the Web GUI (Recommended) ==
This is the easiest and safest way to manage your sensor versions. This method only works for sensors that are currently running and connected to the GUI.


= Manual upgrade or downgrade =
# Navigate to '''Settings -> Sensors''' in the VoIPmonitor GUI.
# Find the sensor you wish to update. If you need to see more details or older versions, click the '''[+]''' icon to expand the sensor's information.
# Click the blue '''UPGRADE''' button. A dropdown menu will appear.
# Select the desired version from the list. The list will contain the latest stable release as well as several previous versions for downgrading.
# The GUI will automatically handle the download and restart of the remote sensor service.


== Method 2: Manual Upgrade/Downgrade (via Command Line) ==
This method gives you full control and is necessary if the GUI method is not available or if you need to install a specific development build.


== Stop running sniffer service ==
=== Step 1: Stop the Running Sniffer ===
First, log in to the sensor's server via SSH and stop the service. For modern systems using systemd:
<pre>
systemctl stop voipmonitor
</pre>
For older systems using SysV init:
<pre>
/etc/init.d/voipmonitor stop
</pre>
''Tip: If the service fails to stop, you may need to terminate the process manually as a last resort: `killall -9 voipmonitor`''


/etc/init.d/voipmonitor stop
=== Step 2: Download the Sniffer Archive ===
# In case that service won't stop, press CTRL+C and use KILL signal to terminate the process with a force:
Download the latest stable static binary from the official VoIPmonitor website. This package contains all necessary files.
kill -9 `pgrep voipmonitor`
<pre>
# In case that multiple instances of voipmonitor are running there, use last command multiple-times.
# This command downloads the latest stable 64-bit static sniffer
wget https://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O voipmonitor-sniffer.tar.gz
</pre>
If you need a specific older version or a special build (like one with SS7 support), you must get the direct download link from the support team or historical archives and use it with the `wget` command.


== Choose a package version on a sourceforge site ==
=== Step 3: Install the New Binary ===
<pre>
# Extract the downloaded archive
tar xzf voipmonitor-sniffer.tar.gz


Find voipmonitor*.tar.gz file of your choice at site https://sourceforge.net/projects/voipmonitor/files/ and use the link for wget command in step by step [https://wiki.voipmonitor.org/doc/index.php?title=Sniffer_installation&action=submit#Step_by_step_for_64bit_linux_procedure How To Install Sniffer]
# Navigate into the new directory. The wildcard (*) handles any version number.
cd voipmonitor-*-static


=== Example of wget command for version 20.4.4 with ss7(wireshark) module ===
# (Recommended) Back up your old binary
wget https://sourceforge.net/projects/voipmonitor/files/20.4/voipmonitor-wireshark-amd64-20.4.4-static.tar.gz/download -O voipmonitor-wireshark-amd64-20.4.4-static.tar.gz --content-disposition --no-check-certificate
mv /usr/local/sbin/voipmonitor /usr/local/sbin/voipmonitor.backup


# Copy the new binary into place
cp ./voipmonitor /usr/local/sbin/voipmonitor


== Download just a binary file directly from voipmonitor ==
# Ensure the new binary is executable
chmod +x /usr/local/sbin/voipmonitor
</pre>


Beware that only few latest versions are available
=== Step 4: Start the Service ===
Finally, start the sniffer service again.
<pre>
systemctl start voipmonitor
</pre>
Or for older systems:
<pre>
/etc/init.d/voipmonitor start
</pre>


=== Example link for 32bit version of 20.4.4 sniffer binary ===
== Verifying the Version ==
After an upgrade or downgrade, it's important to verify that the correct version is running.


http://download.voipmonitor.org/senzor/download/20.4.4/voipmonitor.gz.32
=== Local Check ===
You can check the version directly from the binary on the sensor's server:
<pre>
/usr/local/sbin/voipmonitor --version
</pre>
Or, for more detail:
<pre>
/usr/local/sbin/voipmonitor | head
</pre>


=== Example link for 64bit version of 20.4.4 sniffer binary ===
=== Remote Check (via Manager API) ===
If the sniffer is running, you can query its version remotely using its manager API (default port 5029):
<pre>
echo 'sniffer_version' | nc 127.0.0.1 5029
</pre>


http://download.voipmonitor.org/senzor/download/20.4.4/voipmonitor.gz.64
== AI Summary for RAG ==
 
'''Summary:''' This guide details the procedures for upgrading or downgrading the VoIPmonitor sensor. It presents two primary methods. The first and recommended method is using the Web GUI, by navigating to "Settings -> Sensors" and selecting a new version from the upgrade dropdown menu. The second method is a manual update via the command line, which involves four steps: 1) Stopping the voipmonitor service (`systemctl stop voipmonitor`). 2) Downloading the desired static binary `tar.gz` package using `wget`. 3) Backing up the old binary, copying the new one to `/usr/local/sbin/`, and setting execute permissions with `chmod`. 4) Starting the service again. The article concludes by showing how to verify the currently installed version, both locally (`voipmonitor --version`) and remotely via the manager API.
=== Example link for ArmV6(RPI) and SS7(wireshark) sniffer bianaries ===
'''Keywords:''' upgrade, downgrade, update, sniffer, sensor, install, new version, old version, GUI upgrade, manual upgrade, command line, CLI, wget, tar.gz, systemctl, service, check version, verify, voipmonitor.org/download
 
'''Key Questions:'''
Curently those binaries are not available directly - use steps for installing voipmonitor package from a [https://wiki.voipmonitor.org/doc/index.php?title=Sniffer_upgrade&action=submit#Choose_package_version_on_a_sourceforge_site sourceforge] above to download whole package and steps to install sniffer.
* How do I upgrade the VoIPmonitor sniffer?
 
* How can I downgrade the sensor to a previous version?
=== step by step for upgrade using downloaded binary file for 64bit ===
* What is the easiest way to update my remote sensors?
#You can backup previous version of a sniffer
* How do I perform a manual upgrade of the sniffer using the command line?
mv /usr/local/sbin/voipmonitor /usr/local/sbin/voipmonitor-backup
* How can I check which version of the sniffer I am currently running?
#Download gziped binary, rename it and unpack.
* Where can I download the latest stable sniffer binary?
wget http://download.voipmonitor.org/senzor/download/20.4.4/voipmonitor.gz.64 --content-disposition --no-check-certificate
mv voipmonitor.gz.64 voipmonitor.gz
gunzip -c voipmonitor.gz > /usr/local/sbin/voipmonitor
 
#Ensure file is executable
chmod +x /usr/local/sbin/voipmonitor
 
 
= Manual upgrade =
[[Sniffer_installation#Newest_static_versions_from_develop_branch]]
 
 
= Check installed version =
== Locally using binary ==
voipmonitor|head
== Remotely using manager API of a running sniffer ==
echo 'sniffer_version'|nc 127.0.0.1 5029
where 127.0.0.1 is IP of a 'managerip' and 5029 is 'managerport' defined in this sniffer's config
 
= Start installed version =
/etc/init.d/voipmonitor start
#or
service voipmonitor start

Latest revision as of 16:35, 30 June 2025


This guide provides step-by-step instructions for upgrading or downgrading the VoIPmonitor sensor (sniffer). There are two primary methods: using the Web GUI for simplicity, or performing a manual update via the command line for more control.

Method 1: Upgrading via the Web GUI (Recommended)

This is the easiest and safest way to manage your sensor versions. This method only works for sensors that are currently running and connected to the GUI.

  1. Navigate to Settings -> Sensors in the VoIPmonitor GUI.
  2. Find the sensor you wish to update. If you need to see more details or older versions, click the [+] icon to expand the sensor's information.
  3. Click the blue UPGRADE button. A dropdown menu will appear.
  4. Select the desired version from the list. The list will contain the latest stable release as well as several previous versions for downgrading.
  5. The GUI will automatically handle the download and restart of the remote sensor service.

Method 2: Manual Upgrade/Downgrade (via Command Line)

This method gives you full control and is necessary if the GUI method is not available or if you need to install a specific development build.

Step 1: Stop the Running Sniffer

First, log in to the sensor's server via SSH and stop the service. For modern systems using systemd:

systemctl stop voipmonitor

For older systems using SysV init:

/etc/init.d/voipmonitor stop

Tip: If the service fails to stop, you may need to terminate the process manually as a last resort: `killall -9 voipmonitor`

Step 2: Download the Sniffer Archive

Download the latest stable static binary from the official VoIPmonitor website. This package contains all necessary files.

# This command downloads the latest stable 64-bit static sniffer
wget https://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O voipmonitor-sniffer.tar.gz

If you need a specific older version or a special build (like one with SS7 support), you must get the direct download link from the support team or historical archives and use it with the `wget` command.

Step 3: Install the New Binary

# Extract the downloaded archive
tar xzf voipmonitor-sniffer.tar.gz

# Navigate into the new directory. The wildcard (*) handles any version number.
cd voipmonitor-*-static

# (Recommended) Back up your old binary
mv /usr/local/sbin/voipmonitor /usr/local/sbin/voipmonitor.backup

# Copy the new binary into place
cp ./voipmonitor /usr/local/sbin/voipmonitor

# Ensure the new binary is executable
chmod +x /usr/local/sbin/voipmonitor

Step 4: Start the Service

Finally, start the sniffer service again.

systemctl start voipmonitor

Or for older systems:

/etc/init.d/voipmonitor start

Verifying the Version

After an upgrade or downgrade, it's important to verify that the correct version is running.

Local Check

You can check the version directly from the binary on the sensor's server:

/usr/local/sbin/voipmonitor --version

Or, for more detail:

/usr/local/sbin/voipmonitor | head

Remote Check (via Manager API)

If the sniffer is running, you can query its version remotely using its manager API (default port 5029):

echo 'sniffer_version' | nc 127.0.0.1 5029

AI Summary for RAG

Summary: This guide details the procedures for upgrading or downgrading the VoIPmonitor sensor. It presents two primary methods. The first and recommended method is using the Web GUI, by navigating to "Settings -> Sensors" and selecting a new version from the upgrade dropdown menu. The second method is a manual update via the command line, which involves four steps: 1) Stopping the voipmonitor service (`systemctl stop voipmonitor`). 2) Downloading the desired static binary `tar.gz` package using `wget`. 3) Backing up the old binary, copying the new one to `/usr/local/sbin/`, and setting execute permissions with `chmod`. 4) Starting the service again. The article concludes by showing how to verify the currently installed version, both locally (`voipmonitor --version`) and remotely via the manager API. Keywords: upgrade, downgrade, update, sniffer, sensor, install, new version, old version, GUI upgrade, manual upgrade, command line, CLI, wget, tar.gz, systemctl, service, check version, verify, voipmonitor.org/download Key Questions:

  • How do I upgrade the VoIPmonitor sniffer?
  • How can I downgrade the sensor to a previous version?
  • What is the easiest way to update my remote sensors?
  • How do I perform a manual upgrade of the sniffer using the command line?
  • How can I check which version of the sniffer I am currently running?
  • Where can I download the latest stable sniffer binary?