vSTREAM Agent on Linux: Difference between revisions

From wiki.comcert.com
Jump to navigation Jump to search
No edit summary
No edit summary
Line 36: Line 36:
*udp/395   
*udp/395   


From VSTA to any Next Generation InfiniStream (packet forwarding = <u>recommended</u>)
From VSTA to any Next Generation InfiniStream (NGIS)&nbsp; (packet forwarding = <u>recommended</u>)


*GRE (IP protocol number 47) or&nbsp;udp/50100  
*GRE (IP protocol number 47) or&nbsp;udp/50100  
Line 42: Line 42:
&nbsp;
&nbsp;


=== Pre-configuration files ===
=== Pre-configuration considerations ===


Before we start the installation of the software, we must create a couple of configuration files.
*vSTREAM Agent offers the posibility to store detailed records (XDR) and data packets on the host.&nbsp; The amount of disk space used for this purpose is limited.&nbsp; It must be at least 1GB/10GB respectively.&nbsp; Any value configured below this value will effecitvely&nbsp;disable that functionality.&nbsp; We recommend to start with 1GB and 10GB for the XDR store and packet store respectivily.&nbsp;&nbsp;
*vSTREAM&nbsp;Agent can monitor more than one interface and those interfaces can be different from the interface used to communicate with NGS and NGIS.  


We recommend allowing VSTA to store detailed records and packets on the host.&nbsp; The amount of disk space used for this purpose is limited and must be at least 10GB.&nbsp; Any value configured below this value will disable this function.
In th example below, VSTA will be&nbsp;configured with a 1GB XDR store and a 10GB packet store and is instructed to&nbsp;use&nbsp;eth0 as both management and monitor interface.&nbsp; <u>Please consided adding an additional CPU and 1GB RAM for each additional interface to monitor.</u>


&nbsp;
&nbsp;


Create a file <code>/tmp/nsagent_config.cfg</code>. with the follwing content:
=== Create storage path ===
<pre>export NSCOMM_PORT=395
export NSCONSOLE_PORT=7501
export HTTP_PORT=7080
export HTTPS_PORT=7443
export NSCONFIG_SERVER_IP=A.B.C.D (save and exit with ":wq")</pre>


<span style="background-color:#FFFF00">You MUST specify all four communication ports in this file.&nbsp; Respect the syntax.&nbsp; Failure to do so will make the installation return to its default values.&nbsp;</span>
The path where to store XDR records and packets must be created upfront.&nbsp; In our example, we decided to use /opt/nsagentstrore for that purpose:
<pre># mkdir /opt/nsagentstore</pre>


Create the file /tmp/nsprobeid with the following content. Replace HOSTNAME with the actual hostname or any string value you need to proper identify this vSTREAM Enbedden in nGeniusONE. The name can be up to 127 characters long.&nbsp; It can only contain alphanumerical characters, period (.) and hyphen (-), NO SPACES, NO UNDERSCORE (_), NO SPECIAL CHARACTERS&nbsp;!
&nbsp;
<pre># vi /tmp/nsprobeid


HOSTNAME
=== Create configuration files ===


(save and exit with ":wq")</pre>
Create a file <code>/tmp/nsagent_config.cfg</code>. with the follwing content.&nbsp; Replace <IP_NGS> with the IP address of NGS:
<pre>export NSCOMM_PORT=395
export NSCONSOLE_PORT=7501
export HTTP_PORT=7080
export HTTPS_PORT=7443
export NSCONFIG_SERVER_IP=<IP_NGS>
export MON_INF=eth0
export MGMT_INF=eth0
export NUM_CPUS=1
export MEM_SIZE=2048
export STORAGE_PATH=/opt/nsagentstore
export XDRSTORE_SIZE=1000
export PKTSTORE_SIZE=10000
export NUM_FWD_CPUS=1</pre>


<span style="background-color:#FFFF00">Both files MUST have "0644" rights and be owned by "root:root".&nbsp; This should already be the case.</span>
Create the <code>file /tmp/nsprobeid</code> with the following content. Replace HOSTNAME with the actual hostname or any string value you need to proper identify this vSTREAM Enbedden in nGeniusONE. The name can be up to 127 characters long.&nbsp; It can only contain alphanumerical characters, period (.) and hyphen (-). NO SPACES, NO UNDERSCORE (_), NO SPECIAL CHARACTERS:
<pre><hostname></pre>


&nbsp;
&nbsp;
Line 72: Line 82:
=== Installation ===
=== Installation ===


Copy the most recent version of the rpm to the /tmp directory on the target host. It is recommended to keep the original file name for reference.
Copy the most recent version of the rpm to the /tmp directory on thehost. It is recommended to keep the original file name for future reference.
<pre># cd /tmp
<pre># cd /tmp
# wget https://comcert.box.com/shared/static/something.rpm
# wget https://comcert.box.com/shared/static/is-6210-NNN-vSTREAM_EMB.x86_64.rpm
# mv something.rpm is-6110-668-vSTREAM_EMB.x86_64.rpm
# mv something.rpm is-6110-668-vSTREAM_EMB.x86_64.rpm
# md5sum is-6110-668-vSTREAM_EMB.x86_64.rpm
# md5sum is-6110-668-vSTREAM_EMB.x86_64.rpm
Line 80: Line 90:


Run the rpm. There are no dependencies to be installed. If you omit the --prefix argument, the installation directory will be /usr/lib/NetScout/.&nbsp; If you specify for example "--prefix=/opt" vSTREAM Embedded will be installed in /opt/NetScout/
Run the rpm. There are no dependencies to be installed. If you omit the --prefix argument, the installation directory will be /usr/lib/NetScout/.&nbsp; If you specify for example "--prefix=/opt" vSTREAM Embedded will be installed in /opt/NetScout/
<pre># yum localinstall is-6110-668-vSTREAM_EMB.x86_64.rpm --nogpgcheck --prefix=<target directory></pre>
<pre># yum localinstall is-6210-NNN-vSTREAM_EMB.x86_64.rpm --nogpgcheck --prefix=<target directory></pre>


&nbsp;
&nbsp;

Revision as of 11:06, 19 November 2019

Introduction

This is a simplified installation procedure that has been thoroughly tested by our engineers on virtual as well as physical host.

A complete and detailed installation guide is available on MyNetscout.

 

Solution

Before you install

Some considerations before we start:

  • We don't want to use NetScout's default communication ports as they are reltively common and could be in use on the host, now or in the future.
  • We prefer using the hostname to identify the vSTREAM Agent (VSTA) in Device Configuration.
  • We know the IP address of the nGeniusONE Server (NGS).
  • You are familiar with nGeniusONE
  • You are familiar with Linux CLI

 

Firewall

These communication are required.  Make sure they are allowed by every firewall in the path between the host running VSTA and NGS:

From NGS to VSTA (basic communication = required):

  • tcp/7080
  • tcp/7443
  • tcp/7501

From VSTA to NGS (NetScout Discovery Protocol = recommended):

  • udp/395 

From VSTA to any Next Generation InfiniStream (NGIS)  (packet forwarding = recommended)

  • GRE (IP protocol number 47) or udp/50100

 

Pre-configuration considerations

  • vSTREAM Agent offers the posibility to store detailed records (XDR) and data packets on the host.  The amount of disk space used for this purpose is limited.  It must be at least 1GB/10GB respectively.  Any value configured below this value will effecitvely disable that functionality.  We recommend to start with 1GB and 10GB for the XDR store and packet store respectivily.  
  • vSTREAM Agent can monitor more than one interface and those interfaces can be different from the interface used to communicate with NGS and NGIS.

In th example below, VSTA will be configured with a 1GB XDR store and a 10GB packet store and is instructed to use eth0 as both management and monitor interface.  Please consided adding an additional CPU and 1GB RAM for each additional interface to monitor.

 

Create storage path

The path where to store XDR records and packets must be created upfront.  In our example, we decided to use /opt/nsagentstrore for that purpose:

# mkdir /opt/nsagentstore

 

Create configuration files

Create a file /tmp/nsagent_config.cfg. with the follwing content.  Replace <IP_NGS> with the IP address of NGS:

export NSCOMM_PORT=395
export NSCONSOLE_PORT=7501
export HTTP_PORT=7080
export HTTPS_PORT=7443
export NSCONFIG_SERVER_IP=<IP_NGS>
export MON_INF=eth0
export MGMT_INF=eth0
export NUM_CPUS=1
export MEM_SIZE=2048
export STORAGE_PATH=/opt/nsagentstore
export XDRSTORE_SIZE=1000
export PKTSTORE_SIZE=10000
export NUM_FWD_CPUS=1

Create the file /tmp/nsprobeid with the following content. Replace HOSTNAME with the actual hostname or any string value you need to proper identify this vSTREAM Enbedden in nGeniusONE. The name can be up to 127 characters long.  It can only contain alphanumerical characters, period (.) and hyphen (-). NO SPACES, NO UNDERSCORE (_), NO SPECIAL CHARACTERS:

<hostname>

 

Installation

Copy the most recent version of the rpm to the /tmp directory on thehost. It is recommended to keep the original file name for future reference.

# cd /tmp
# wget https://comcert.box.com/shared/static/is-6210-NNN-vSTREAM_EMB.x86_64.rpm
# mv something.rpm is-6110-668-vSTREAM_EMB.x86_64.rpm
# md5sum is-6110-668-vSTREAM_EMB.x86_64.rpm

Run the rpm. There are no dependencies to be installed. If you omit the --prefix argument, the installation directory will be /usr/lib/NetScout/.  If you specify for example "--prefix=/opt" vSTREAM Embedded will be installed in /opt/NetScout/

# yum localinstall is-6210-NNN-vSTREAM_EMB.x86_64.rpm --nogpgcheck --prefix=<target directory>

 

Clean-up

Remove all installation and configuration files from the /tmp directory immediately after verifying if the vSTREAM Embedded is working properly.

 

Service

Check if the vSCOUT-Emb service is running:

# systemctl status vstream-emb

Stop/Start/Restart the service with the following commands:

# systemctl stop vstream-emb
# systemctl start vstream-emb
or
# systemctl restart vstream-emb

 

Clean-up

We recommend removing all the files from the /tmp direcotory immediately after verification.

 

Modifying the configuration

If for any reason the configuration needs to be modified, edit this file and restart the agent.

# vi <target directory>/NetScout/rtm/config/nsagent_config.cfg

(save and exit with ":wq")