我有一个问题,当连接服务器到Stratix 5400时,Stratix会失去几秒钟的连接,这会导致线路的安全故障,因为我们有安全PLC的任何帮助。
,Software verison is 15.2 (non crypto)
,STP setting: MSTP
,VTP mode:Transparent
,Vlan Management: Default and all of the used posrts are in
,Port type: I tried both Trunk and Dynamic auto but same issue
在我的开关上我有这样的配置
!
! Last
使用命令行陷阱时,Mib浏览器可以拾取并显示详细信息 ? ? 但是,当我使用SNMP4J进行陷阱时,Mib Brower不显示详细信息。它们是不兼容的吗?还是我的陷阱代码有问题? public void test () throws IOException {
TransportMapping transport = new DefaultUdpTransportMapping();
transport.listen();
CommunityTarget cTarget = new CommunityTarget();
cTarget.setCommunity(new O
我已经下载了SNMP4J并将其添加到我的项目的buildpath中。然后我添加了一些来自和的代码来检查我的代理。但现在在控制台中打印以下字符串:
Exception in thread "main" java.lang.RuntimeException: java.net.BindException: Address already in use: Cannot bind
at org.snmp4j.transport.TransportMappings.createTransportMapping(TransportMappings.java:123)
at
我试图发送一个陷阱作为一个更大的Perl脚本的一部分。我已经将陷阱发送代码复制到另一个文件中,并且正在自行运行它。代码似乎认为陷阱发送成功,但我没有在两台机器上看到运行陷阱侦听器的陷阱。
下面是代码:
#! /usr/local/bin/perl
use strict;
use warnings;
use Net::SNMP;
#messy hardcoding
my $snmp_target = '192.168.129.50';
#my $snmp_target = '10.200.6.105'; # Server running trap listen
我正在编写一个Perl脚本,它应该检索从远程主机发送/接收的字节,长话短说,我想监控网络流量。请注意,主机可能是实际的主机,也可能是路由器/交换机等其他主机。我检索的数据将存储在一个循环数据库中,但这并不重要。
我做的第一件事是检索主机的接口,然后我应该查找流量使用情况。我可以使用OID做到这一点吗?有没有存储这些值的表?
use Net::SNMP;
use Net::SNMP::Interfaces;
main:
{
my $session;
my $hostname = '192.168.x.x';
my $community = 'test';
my
我有一个连接到ip电话的computer1,它连接到一个HP J9625A交换机,如下所示:
开关<-> ip_phone <-> computer1
L一直在不断地接收接近10000个陷阱的snmp陷阱,在computer2上有以下陷阱:
port 4 is now off-line
port 4 is Blocked By STP
我注意到在snmp陷阱事件屏幕中没有“端口4现在在线”条目。用电缆测试器测试从交换机端口4到ip电话的连接,表明连接存在问题。然而,我不明白为什么STP会阻止这个港口。
实际上,我有一个SNMP陷阱接收器示例代码。但这就像建立了一个UDP套接字,它监听陷阱。我在exe的帮助下通过生成陷阱来手动测试代码。但是现在我必须订阅snmp客户端(打印机),我需要从该客户端接收Trap。谁能帮我写一个订阅代码,以便从监听程序代码中订阅打印机。 snmptraplistener代码: class Program {
static void Main(string[] args) {
// Construct a socket and bind it to the trap manager port 162
Socket socket
我的Juniper EX4300交换机ge-0/0/42交换端口配置如下:
admin@1409A# run show interfaces ge-0/0/42
Physical interface: ge-0/0/42, Enabled, Physical link is Up
Interface index: 689, SNMP ifIndex: 590
Link-level type: