FAQ: SNMP on NetScaler Appliance

https://support.citrix.com/article/CTX122436

https://docs.citrix.com/content/dam/docs/en-us/netscaler/10/downloads/ctx132381.htm

https://docs.citrix.com/en-us/netscaler/10-1/ns-reference-con/netscaler-snmp-oid-reference.html

https://docs.citrix.com/content/dam/docs/en-us/netscaler/12/downloads/netscaler-12-snmp-oid-reference.pdf

https://developer-docs.citrix.com/projects/netscaler-snmp-oid-reference/en/12.0/

Question and Answers

This article contains frequently asked questions about the Simple Network Management Protocol (SNMP) in the NetScaler appliance.

Q: Is the SET operation for SNMP supported on the NetScaler appliance?

A: No. By default, the NetScaler appliance does not support the SET operation for SNMP. However, if you want to enable the SET operation for SNMP on the NetScaler appliance, contact the Citrix Support team.

Q: What SNMP operations are supported when a community is GET on the NetScaler appliance?

A: When a community is GET, only the SNMP GET is supported. The SNMP GetNext or bulk operations are not supported on this community.

The following is an example for the operations supported on this community:

test# ./snmpget -c private <Host_Address>  system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: NetScaler NS9.0: Build 69.5, Date: Jun 12 2009, 06:00:53
test# ./snmpgetnext -c private <Host_Address> system.sysDescr.0
Timeout: No Response from <host>

Q: What is the procedure to load a Management Base Information (MIB) file to the SNMP Manager on a NetScaler appliance?

A: The procedure to load an MIB file to the SNMP Manager depends on the type of the SNMP Manager. Use any of the following procedures to load an MIB file to the Net SNMP Manager:

To load the MIB file to a UNIX based server by copying it, complete the following procedure:

  1. Copy the MIB file to the /usr/local/share/snmp/mibs/ directory.
    Note that the mibs directory location might vary between different UNIX distributions.

  2. Open the snmp.conf file in a text editor, such as the vi editor.

  3. Add the following entries to the file:
    mibs +IF-MIB
    mibs +NS-ROOT-MIB

  4. Save and close the file.

  5. Run the following command:
    net-snmp-config --snmpconfpath

To load the MIB file by running the snmp command on a UNIX based server, run the following command:

./snmpget -m ./NS-MIB-smiv2.mib -c public <Host_Address> httpTotResponses.0
NS-ROOT-MIB::httpTotResponses.0 = Counter64: 368

Q: How can you identify the object values from the trap messages on the NetScaler appliance?

A: The SNMP Manager receives the netScalerConfigChange trap message when a virtual server is enabled or disabled. The following is the MIB definition for the trap message:

netScalerConfigChange  NOTIFICATION-TYPE
OBJECTS { nsUserName , configurationCmd , authorizationStatus ,
commandExecutionStatus , sysIpAddress
}
"This trap is sent when the configuration on the NetScaler is changed."
::= { netScalerEventsV2 25 }

The following is the sample output of the trap message:

2009-08-19 22:02:05 10.102.14.230 [UDP: [0.0.0.0]->[10.102.14.230]:3000]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (111347565) 12 days, 21:17:55.65
SNMPv2-MIB::snmpTrapOID.0 = OID: NS-ROOT-MIB::netScalerConfigChange
NS-ROOT-MIB::nsUserName.0 = STRING: "nsroot"
NS-ROOT-MIB::configurationCmd.0 = STRING: "disable lb vserver namivserver"
NS-ROOT-MIB::authorizationStatus.0 = INTEGER: authorized(1)
NS-ROOT-MIB::commandExecutionStatus.0 = INTEGER: successful(2)
NS-ROOT-MIB::sysIpAddress.0 = IpAddress: 10.102.14.230
2009-08-19 22:02:05 10.102.14.230 [UDP: [0.0.0.0]->[10.102.14.230]:3000]:

In the preceding sample, the authorizationStatus.0 object has the authorized(1) value. The entry in the output is highlighted in bold face for your reference.

Q: On a NetScaler appliance, is it possible to receive a trap message on the SNMP Manager by using a different port than the default port?

A: Yes. By default, the trap messages are received on port 162. You can run the following command to set another port to receive the trap messages on the SNMP Manager:

./snmptrapd -c  /root/snmptrapd.conf -P udp:<New_Port_Number>

Q: Does the NetScaler appliance support the inform messages?

A: No. The NetScaler appliance does not support the inform messages.

Q: What are the commands to configure SNMP on a NetScaler appliance?

A: You can run the following commands to configure SNMP on a NetScaler appliance:

add snmp community <Community_Name> <Access>
add snmp trap generic <Manager_Address>
add snmp trap specific <Manager_Address>

You can also run the following command to enable threshold value related alarms:

set snmp alarm <Alarm_Name> -time <Threshold_Value>

Q: What is the location of the NetScaler MIB file?

A: The NetScaler MIB files, NS-MIB-smiv1.mib and NS-MIB-smiv2.mib, are available in the /netscaler/snmp directory of the NetScaler appliance or in the Downloads section in the GUI. All Object IDs (OIDs) are available in the mib.txt and trap.txt files available in the /netscaler/snmp directory.

Additional Resources

SNMP version 3 queries are now supported on the NetScaler SDX appliance. SNMPv3 enhances the basic architecture of SNMPv1 and SNMPv2 to incorporate administration and security capabilities, such as authentication, access control, data integrity check, data origin verification, message timeliness check, and data confidentiality.

NetScaler 12 OID Reference

Question:
Can we Disable SNMP v1 because Set "add snmp community citrix All" from NetScaler Device will enable both SNMP v1 and v2.

Answer: Deactivation of the a specific snmp version is not supported.

Question:

Does SNMP Monitoring work for Admin Partitions ?

Answer:

Yes, SNMP Monitoring is supported in NetScaler firmware 12.0-56.x and above.
The SNMP Get and Walk functionalities are now supported on a partitioned NetScaler appliance for monitoring resource utilization details such as bandwidth, memory, or connection resources.

This was worked under the enhancement request - ENH0676597

Question:
Can we Disable SNMP v1 because Set "add snmp community citrix All" from NetScaler Device will enable both SNMP v1 and v2.

Answer: Deactivation of the a specific snmp version is not supported.

Question : Customer needs to monitor the individual interface statics via SNMP. Does NetScaler have OIDs to gather information on per interface basis?

Answer : Currently NetScaler doesn’t have SNMP OIDs to monitor the traffic per interface level. Netscaler has option for cumulative values only.
 
 An Enhancement 0695767 is raised to add this functionality to NetScaler 

FAQ: SNMP on NetScaler Appliance的更多相关文章

  1. Spanning Tree Protocol (STP) in NetScaler Appliance

    Spanning Tree Protocol (STP) in NetScaler Appliance 来源 https://support.citrix.com/article/CTX112341 ...

  2. SNMP OID Reference - NetScaler 10

    SNMP OID Reference - NetScaler 10 https://docs.citrix.com/content/dam/docs/en-us/netscaler/10/downlo ...

  3. NetScaler ‘Counters’ Grab-Bag!

    NetScaler ‘Counters’ Grab-Bag! https://www.citrix.com/blogs/author/andrewre/ https://www.citrix.com/ ...

  4. NetScaler Best Practice With VMAC In A High Availability Configuration

    NetScaler Best Practice With VMAC In A High Availability Configuration https://www.citrix.com/blogs/ ...

  5. How to Create a Perl Based Custom Monitor on NetScaler

    How to Create a Perl Based Custom Monitor on NetScaler https://support.citrix.com/article/CTX227727 ...

  6. NetScaler 10.1的配置以及结合StoreFront的部署

    工作需要,所以英文+中文,绝壁不是装逼...(关于这点勿喷) This post will cover only the basics for getting NetScaler up and run ...

  7. NetScaler + Wireshark = A Perfect Combination!

    NetScaler + Wireshark = A Perfect Combination! https://www.citrix.com/blogs/2014/05/03/netscaler-wir ...

  8. Give NetScaler a “Tune-Up”

    Give NetScaler a “Tune-Up” https://www.citrix.com/blogs/2014/10/21/give-netscaler-a-tune-up/ To Opti ...

  9. NetScaler VLAN’s Demystified

    NetScaler VLAN’s Demystified https://www.citrix.com/blogs/2014/12/29/netscaler-vlans-demystified/ Th ...

随机推荐

  1. Linux下安装google拼音输入法

    首先安装fcitx,前几天看了很多在ubuntu上能够使用的输入法,有人推荐是搜狗输入法,毕竟是国产嘛,但是会有意外发生,比如说安装之后会产生输入的字符乱码,是一堆看不懂的东西,我就是因为遇到了,然后 ...

  2. HTML中的【块】与【内嵌】

    块元素与内嵌元素 块的特征 默认独占一行 没有宽度时默认撑满一行 支持所有的css命令 内嵌的特征 同行可以连续跟同类的标签 内容撑开宽度 不支持宽高 不支持上下的内外边距 代码换行被解析 块与内嵌的 ...

  3. iOS 开发中保留小数问题

    保留两位小数(四舍五入) - (void)viewDidLoad { [super viewDidLoad]; // 有时候我们需要对数据保留两位小数,而且需要四舍五入,并且需要把末尾多余的0给去掉\ ...

  4. Java : 多态表现:静态绑定与动态绑定(向上转型的运行机制)

    本来想自己写写的,但是看到有人分析的可以说是很清晰了,故转过来. 原文地址:http://www.cnblogs.com/ygj0930/p/6554103.html 一:绑定 把一个方法与其所在的类 ...

  5. C#中给WebClient添加代理Proxy

    效果图: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; ...

  6. Hadoop(19)-MapReduce框架原理-Combiner合并

    1. Combiner概述 2. 自定义Combiner实现步骤 1). 定义一个Combiner继承Reducer,重写reduce方法 public class WordcountCombiner ...

  7. aioysql(异步操作MySQL)-python

    python异步IO初探 探索异步IO执之前,先说说IO的种类 阻塞IO最简单,即读写数据时,需要等待操作完成,才能继续执行.进阶的做法就是用多线程来处理需要IO的部分,缺点是开销会有些大. 非阻塞I ...

  8. Python学习 :六个标准数据类型

    一.Numbers(数字类型) 数字类型主要分为两种—— 整数(Integer)与 浮点数(Float) 整数分为整型和长整型(在Python3中已经不再区分为整型与长整型,统一称为整型) 注意:数字 ...

  9. 安装java 和 eclipse

    昨天安装eclipse出现个问题, 安装完了创建第一个项目目录的时候弹窗报错an ......什么什么, 百度一堆没有用,后来发现是jdk12不支持,换了jdk8就可以了, 然后eclipse安装py ...

  10. DHT11温湿度传感器编程思路以及代码的实现(转载)

    源自:https://blog.csdn.net/qq_34952376/article/details/81193938 在我们刚开始进入单片机的学习中,练习写传感器的时序是必不可少的,其实我比较推 ...