vSTREAM Embedded on Linux: Difference between revisions

From wiki.comcert.com
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
In most cases the IP address of the nGeniusONE server is already known.
In most cases the IP address of the nGeniusONE server is already known.


We can put all these modifications in a couple of text files and make the installation silent and ready to be scripted !
We can put all these modifications in a couple of text files and make the installation silent and ready to be scripted !


==== Pre-configuration files ====
==== Pre-configuration files ====
Line 54: Line 54:
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 the target host. It is recommended to keep the original file name for reference.
<pre># cd /tmp
<pre># cd /tmp
# wget https://comcert.box.com/shared/static/something.rpm
# wget https://comcert.box.com/shared/static/something.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
</pre>
</pre>
Line 64: Line 61:
Run the rpm. There are no dependencies to be installed.
Run the rpm. There are no dependencies to be installed.
<pre># yum localinstall is-6110-668-vSTREAM_EMB.x86_64.rpm --nogpgcheck</pre>
<pre># yum localinstall is-6110-668-vSTREAM_EMB.x86_64.rpm --nogpgcheck</pre>
&nbsp;
=== Configuration ===
<pre># cd /usr/lib/NetScout/rtm/config
# vi nsagent_config.cfg
</pre>
Change "export HTTP_PORT=8080" to "export HTTP_PORT=<span style="background-color:#FFA500">7080</span>"
Change "export HTTPS_PORT=8443" to "export HTTPS_PORT=<span style="background-color:#FFA500">7443</span>"
Example:
<pre>export NSCOMM_PORT=395
export NSCONSOLE_PORT=1501
export HTTP_PORT=7080
export HTTPS_PORT=7443
export  MON_INF=eth0
export MGMT_INF=eth0</pre>


&nbsp;
&nbsp;


=== Start/Stop ===
=== Firewall ===
<pre># systemctl restart vstream-emb
</pre>
 
or:
<pre># service vstream-emb stop
# service vstream-emb start</pre>


Note: restarting the system may take a minute.
If there is a firewall on the target host, the installer will try to open those ports specified in /usr/lib/NetScout/rtm/config/nsagent_config.cfg.&nbsp; You may have to configure additional security software to keep these ports from closing again.


&nbsp;
&nbsp;


=== Test ===
=== Service ===


Verify if services procmana and nsprobe are running
Check if the vSCOUT-Emb service is running
<pre>root@ip-10-167-4-92:/usr/lib/NetScout/rtm/bin# ./PS
<pre># systemctl status vscout-emb</pre>
    user,  pid,  rss,  vsz,  pm,  pc, command
root    30027  3152  4604  0.1  0.0 procmana
root    30030 494664 560080 24.1 7.2 nsprobe
</pre>


&nbsp;
Stop/Start/Restart the service with the following commands
 
<pre># systemctl stop vscout-emb
=== Firewall ===
# systemctl start vscout-emb
 
or
From nGeniusONE Server (Standalone or Local Server) to host:
# systemctl restart vscout-emb</pre>
 
*tcp/7080 or tcp/7443 (we recommend to use the latter)
*tcp/1501 (optional feature; Remote Login&nbsp;from&nbsp;nGeniusONE Server to&nbsp;vSTREAM Embedded)
 
From host to nGeniusONE Server (Standalone or Local Server):
 
*tcp/395 (optional feature; automatic registation of the vSTREAM Embedded in&nbsp;nGeniusONE Server)
 
Between host and InfiniStreamNG:
 
*GRE (IP protocol number 47) or udp/50100. Tunneling packets is optional but it is recommeded to have&nbsp;this&nbsp;protocol/port&nbsp;open .


&nbsp;
&nbsp;


=== Localconsole ===
=== Modifying the configuration ===


Run the agent configuration utility to add vSTREAM Embedded to NGS.
If for any reason the configuration needs to be modified, edit this file and restart the agent
<pre># cd /usr/lib/NetScout/rtm/bin
<pre># vi /usr/lib/NetScout/rtm/config/nsagent_config.cfg
# ./localconsole
</pre>


&nbsp;
(save and exit with ":wq")</pre>
 
=== Rename ===
 
Go to NGS > Console > Device Configuration > Devices and change the name of the vSTREAM EMB from UUID to a more meaningfull name (example IS-<hostname>) before continuing to the next installation. If you have added multiple vSTREAM EMB at once and don't know which is which, the UUID is found at (hidden):
<pre>/usr/lib/NetScout/config/.uuid</pre>
 
Example: 31cf3c80-44e8-4efe-8e59-ee368152f18f becomes IS-AWS-FRA-L-WEB-COMC
 
&nbsp;
 
=== Uninstall ===
<pre># cd /usr/lib/NetScout/rtm/bin
# ./vscout_uninstall.sh</pre>

Revision as of 18:33, 4 June 2019

Introduction

 

 

 

This is a simplified installation procedure that has been thoroughly tested by our engineers.  It meets most customer's needs and can be trusted for installation of vSTREAM Embedded on any Linux-based host.  The complete and detailed installation guide can be found on MyNetscout.  We've installed vSTREAM Embedded with success on both physical and virtual servers. 

 

Solution

Before you install

We do not want to use most of the default communication ports because they are too common and may be used by other processes on the target host, now or in the future.

We want to display a name for the vSTREAM Embedded in Device Configuration different from the uuid. We suggest to use the hostname of the target host.

In most cases the IP address of the nGeniusONE server is already known.

We can put all these modifications in a couple of text files and make the installation silent and ready to be scripted !

Pre-configuration files

Create the file /tmp/nsagent_config.cfg with the following content. Replace A.B.C.D with the IP address of the nGeniusONE (Local) Server.

# vi /tmp/nsagent_config.cfg

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")

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

# vi /tmp/nsagent_config.cfg

HOSTNAME

(save and exit with ":wq")

 

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.

# cd /tmp
# wget https://comcert.box.com/shared/static/something.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.

# yum localinstall is-6110-668-vSTREAM_EMB.x86_64.rpm --nogpgcheck

 

Firewall

If there is a firewall on the target host, the installer will try to open those ports specified in /usr/lib/NetScout/rtm/config/nsagent_config.cfg.  You may have to configure additional security software to keep these ports from closing again.

 

Service

Check if the vSCOUT-Emb service is running

# systemctl status vscout-emb

Stop/Start/Restart the service with the following commands

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

 

Modifying the configuration

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

# vi /usr/lib/NetScout/rtm/config/nsagent_config.cfg

(save and exit with ":wq")