MPSVPX 配置

设置主机名,IP地址,掩码,网关,DNS服务器,时区(使用WebGUI界面设置)。

bash-2.05b# cat svm.conf
arp -d -a
route flush
ifconfig 0/1 192.168.195.95 netmask 255.255.255.0
ifconfig 1/1 192.168.1.95 netmask 255.255.255.0
ifconfig 1/2 10.0.100.95 netmask 255.255.255.0
ifconfig 1/3 192.168.185.95 netmask 255.255.255.0
route add default 192.168.195.2
route add -net 192.168.195.0/24 192.168.195.2
route add -net 192.168.1.0/24 192.168.1.1
route add -net 10.0.100.0/24 10.0.100.1
route add -net 192.168.185.0/24 192.168.185.201
route add -net 10.0.0.0/24 10.0.100.1
route add -net 10.0.12.0/24 10.0.100.1
route add -net 10.0.13.0/24 10.0.100.1
route add -net 10.0.14.0/24 10.0.100.1
route add -net 192.168.30.0/24 10.0.100.1
route add -net 192.168.10.0/24 10.0.100.1
route add -net 192.168.20.0/24 10.0.100.1
route add -net 192.168.11.0/24 10.0.100.1
route add -net 192.168.21.0/24 10.0.100.1
/mps/changenameserver.sh 8.8.8.8
/mps/changehostname.sh mpsvpx

查看路由表
# netstat -nr

路由的属性标志和它们的含义的一个简表:
U     Up: 路由处于活动状态。
H     Host: 路由目标是单个主机。
G     Gateway: 所有发到目的地的网络传到这一远程系统上, 并由它决定最后发到哪里。
S     Static: 这个路由是手工配置的,不是由系统自动生成的。
C     Clone: 生成一个新的路由, 通过这个路由我们可以连接上这些机子。 这种类型的路由通常用于本地网络。
W     WasCloned: 指明一个路由——它是基于本地区域网络 (克隆) 路由自动配置的。
L     Link: 路由涉及到了以太网硬件。

如何使用CLI重新启动或关闭NetScaler MAS
https://support.citrix.com/article/CTX220000

在MAS的命令提示符下运行此命令以干净的方式重新启动它:
shutdown -r now

要关闭MAS,请使用以下命令:
shutdown -p now

如何在Netscaler MAS上添加静态路由
https://support.citrix.com/article/CTX223282

要添加静态路由,您需要修改系统路由表。要使更改成为永久更改,需要编辑svm.conf文件。
使用SSH客户端登录NetScaler MAS。
使用以下命令制作文件/mpsconfig/svm.conf的备份副本:
cd / mpsconfig / cp svm.conf svm.conf.bak

使用以下命令将以下行添加到上面的文件"route add -net 10.20.30.0/28 10.0.0.1":
echo "route add -net 10.20.30.0/28 10.0.0.1" >> svm.conf

使用以下命令重新启动设备:
重启命令 shutdown -r now
关机命令 shutdown -p now

验证系统路由表中是否存在静态路由:
netstat -rn

请注意,网关地址(在我们的例子中是10.0.0.1)必须位于其中一个接口子网中。否则路由将不会被添加,您将收到以下消息:
route: writing to routing socket: Network is unreachable
add net 10.20.30.0: gateway 10.0.0.1: Network is unreachable

NetScaler MAS 操作配置参考:
http://www.carlstalhood.com/netscaler-management-and-analytics-system-mas-12/
http://www.jgspiers.com/citrix-netscaler-management-analytics-system/

Allocating VPX Licenses to a NetScaler VPX Instance by using the NetScaler CLI

1. In a SSH client, enter the IP address of the NetScaler instance, and log on by using administrator credentials.

2. To add a licensing server, enter the following command:
add ns licenseserver (\<licenseServerIP\> | \<serverName\>) \[-port \<port number \>\]

3. To show the available licenses on the licensing server, enter the following command:
sh licenseserverpool

4. To assign a license to the NetScaler VPX appliance, enter the following command:
set capacity –platform V\[S/E/P\]\[Bandwidth\]

> show version
NetScaler NS12.0: Build 56.20.nc, Date: Dec 19 2017, 06:00:47
Done
>
> show hardware
Platform: Netscaler Remote Licensed Virtual Appliance 450010
Manufactured on: 9/30/2009
CPU: 3192MHZ
Host Id: 000c294ffa77
Serial no: HE2H81UJ47
Encoded serial no: 891e0000cb254307ee9a
Done
>
> shell
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved. root@ns-vpx#
root@ns-vpx# ls /flash/nsconfig/license/
.absconfdb.HKLM.db Trial.lic xml
.pooledLicense_nslped_ns-vpx.ini ssl
root@ns-vpx#
root@ns-vpx# cat /flash/nsconfig/license/Trial.lic
#DO NOT EDIT THIS LINE - This File is in UTF-8 format.
#
root@ns-vpx#
root@ns-vpx#

Clear MAS Configuration

If you ever need to wipe the configuration on a MAS appliance run the following commands on the appliance via CLI:

  1. shell
  2. masd stop
  3. killall postgres
  4. sh /mps/scripts/pgsql/deleteuser.sh
  5. sh /mps/scripts/pgsql/createuser.sh
  6. chown -R mpspostgres /var/mps/db_pgsql/
  7. rm -rf /var/mps/db_pgsql/data
  8. su -l mpspostgres -c “sh /mps/scripts/pgsql/initpgsql.sh”
  9. cp -f /mps/postgresql.conf /var/mps/db_pgsql/data/
  10. su -l mpspostgres -c “sh /mps/scripts/pgsql/startpgsql.sh”
  11. su -l mpspostgres -c “sh /mps/scripts/pgsql/drop_pgsql_db.sh”
  12. su -l mpspostgres -c “sh /mps/scripts/pgsql/create_pgsql_db.sh”
  13. su -l mpspostgres -c “sh /mps/scripts/pgsql/drop_pgsql_user_sh”
  14. su -l mpspostgres -c “sh /mps/scripts/pgsql/create_pgsql_user_sh”
  15. su -l mpspostgres -c “sh /mps/scripts/pgsql/stoppgsql.sh”
  16. touch /mpsconfig/.recover
  17. masd start

If you want to run the deployment selection/change the deployment, run shell -> deployment_type.py

Troubleshooting Netscaler MAS

NetScaler MAS Troubleshooting Guide – https://support.citrix.com/article/CTX224502

This document should still apply largely to MAS http://docs.citrix.com/en-us/netscaler-insight/11-0/ni-troubleshoot-tips-ref.html

Also read the HDX Insight Diagnostics and Troubleshooting Guide – https://support.citrix.com/article/CTX215130

Your NMAS version must be the same or higher than your NetScaler firmware version.

When you have enabled AppFlow against your NetScaler Gateway or Load Balanced vServer etc. and you can not see any Insight traffic, make sure firewall rules are in place to allow UDP 4739 from NetScaler NSIP to NMAS IP. You can check if MAS is receiving any appflow traffic by performing the following steps:

Launch PuTTY, and connect to your NetScaler Insight Center IP.

Type shell. Press enter.

Type command tcpdump -i 1 src NSIP and dst port 4739 where NSIP = your NetScaler IP.

If you still do not see NetScaler AppFlow data, connect to your NetScaler appliance with PuTTy.

Run command disable feature appflow followed by enable feature appflow.

Review the MAS putty screen to see if traffic is appearing. If not, review firewall configuration.

Example output showing AppFlow traffic between NetScaler MAS and NetScaler VPX.

================== End

MPSVPX 配置的更多相关文章

  1. 配置android sdk 环境

    1:下载adnroid sdk安装包 官方下载地址无法打开,没有vpn,使用下面这个地址下载,地址:http://www.android-studio.org/

  2. Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记

    以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...

  3. react-router 组件式配置与对象式配置小区别

    1. react-router 对象式配置 和 组件式配置    组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子) IndexRedirect -----对应-- ...

  4. 总结:Mac前端开发环境的搭建(配置)

    新年新气象,在2016年的第一天,我入手了人生中第一台自己的电脑(大一时好友赠送的电脑在一次无意中烧坏了主板,此后便不断借用别人的或者网站的).macbook air,身上已无分文...接下来半年的房 ...

  5. Android Studio 多个编译环境配置 多渠道打包 APK输出配置

    看完这篇你学到什么: 熟悉gradle的构建配置 熟悉代码构建环境的目录结构,你知道的不仅仅是只有src/main 开发.生成环境等等环境可以任意切换打包 多渠道打包 APK输出文件配置 需求 一般我 ...

  6. Virtual Box配置CentOS7网络(图文教程)

    之前很多次安装CentOS7虚拟机,每次配置网络在网上找教程,今天总结一下,全图文配置,方便以后查看. Virtual Box可选的网络接入方式包括: NAT 网络地址转换模式(NAT,Network ...

  7. [linux]阿里云主机的免登陆安全SSH配置与思考

    公司服务器使用的第三方云端服务,即阿里云,而本地需要经常去登录到服务器做相应的配置工作,鉴于此,每次登录都要使用密码是比较烦躁的,本着极速思想,我们需要配置我们的免登陆. 一 理论概述 SSH介绍 S ...

  8. nginx配置反向代理或跳转出现400问题处理记录

    午休完上班后,同事说测试站点访问接口出现400 Bad Request  Request Header Or Cookie Too Large提示,心想还好是测试服务器出现问题,影响不大,不过也赶紧上 ...

  9. Swift3.0服务端开发(一) 完整示例概述及Perfect环境搭建与配置(服务端+iOS端)

    本篇博客算是一个开头,接下来会持续更新使用Swift3.0开发服务端相关的博客.当然,我们使用目前使用Swift开发服务端较为成熟的框架Perfect来实现.Perfect框架是加拿大一个创业团队开发 ...

随机推荐

  1. java多线程同步以及线程间通信详解&消费者生产者模式&死锁&Thread.join()(多线程编程之二)

    本篇我们将讨论以下知识点: 1.线程同步问题的产生 什么是线程同步问题,我们先来看一段卖票系统的代码,然后再分析这个问题: package com.zejian.test; /** * @author ...

  2. 牛客小白月赛2 G 文 【模拟】

    链接:https://www.nowcoder.com/acm/contest/86/G来源:牛客网 题目描述 Sεlιнα(Selina) 开始了新一轮的男友海选.她要求她的男友要德智体美劳样样都全 ...

  3. OCCI结果集(ResultSet)性能优化

    对于ResultSet类中的next()方法,默认是一次检索一行数据,及一次检索执行一次网络往返,当结果集数量大时,效率低:对此OCCI提供了几种改善方法,即:在一次网络往返返回多行数据. 1. 通过 ...

  4. 【赛时总结】 ◇赛时·II◇ AtCoder ABC-100

    ◆赛时·II◆ ABC-100 ■唠叨■ ABC终于超过百场比赛啦(毫不犹豫地参加).然后莫名其妙的好像是人很多,评测慢得不可理喻.然后我就--交了一大发--错误程序--然后B题就没了.最后的D题居然 ...

  5. docker swarm使用keepalived+haproxy搭建基于percona-xtradb-cluster方案的高可用mysql集群

    一.部署环境 序号 hostname ip 备注 1 manager107 10.0.3.107 centos7;3.10.0-957.1.3.el7.x86_64 2 worker68 10.0.3 ...

  6. give me something new 无用但有趣

    屏保系列 http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz  //数码雨 libaa-bin //燃烧 海洋馆 http://search.cp ...

  7. php-5.6.26源代码 - PHP文件汇编成opcode(require、include的差异)

    文件 php-5.6.26/Zend/zend_language_scanner.c ZEND_API zend_op_array *compile_file(zend_file_handle *fi ...

  8. 使用命令行设置MySql编码格式

    使用命令行设置MySql编码格式 1.登录mysql 2.输入 SHOW VARIABLES LIKE 'character_set_%'; 3.查看 value值是否为utf8,如果不是,则使用SE ...

  9. flask-login原理详解

    最近发现项目中使用的flask-login中有些bug,直接使用官网的方式确实可以用,但仅仅是可以用,对于原理或解决问题没有什么帮助,最近通过查看网上资料.分析源码.通过demo.从零开始总结了fla ...

  10. C语言函数篇(一)函数的组成

    函数的组成: 函数名 输入参数 返回值 返回值 函数名 (输入参数){ 执行体 } 用指针保存函数: int func(int a, int b, char c){ } --> int (*fu ...