- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
非常需要您的帮助。我被一个问题困扰了 2 天多了,即使在谷歌中也找不到解决方案!!
无论如何,我将在下面发布我的问题。请尽快帮助我
问题
我一直在尝试使用名为 Friendly SNMP 的 API(它是 Snmp4j 的包装器)开发 SNMP 代理,最初一切顺利,一切都很好。现在,当我试图将陷阱/通知发送到我系统网络中的远程机器时,我遇到了一个非常令人沮丧的绑定(bind)异常,并显示一条消息“无法分配请求的地址”。这是堆栈跟踪。
2011-06-08 14:25:30,180 - org.friendlysnmp.FException - 错误 - 无法初始化 SNMP 代理[1] java.net.BindException: 无法分配请求的地址在 java.net.PlainDatagramSocketImpl.bind0( native 方法)在 java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:85)在 java.net.DatagramSocket.bind(DatagramSocket.java:373)在 java.net.DatagramSocket.(DatagramSocket.java:229)在 java.net.DatagramSocket.(DatagramSocket.java:282)
但是,如果我使用 localhost/127.0.0.1 作为发送陷阱的 IP 地址,则一切正常。令人毛骨悚然!!
尝试解决
1) 我做了一个 netstat 来查看端口是否已经绑定(bind)并且显然端口是空闲的。所以,这是不可能的。
2) 我已经对远程主机执行了 ping 操作,完成了 telnet,一切正常。
3) 有很多讨论提到我们需要在 JVM 中设置一些选项以默认使用 IPv4 地址。我已经做到了,但是没有运气
4) 我已经在 Windows 机器上对此进行了测试,但没有成功。
所以,请大家帮帮我,我被困在这里了。如果我需要对/etc/hosts 文件或其他内容进行一些更改,请告诉我。
我附上了我的属性文件(我在其中指定了 IP 地址)和日志文件以供引用。
PS:哦,请忽略我在属性文件中指定 IP 和端口的方式,这是 API 所期望的方式。
PS2:很遗憾,我无法附加任何文件。所以,请在下面找到日志。
2011-06-08 13:59:20,252 - org.friendlysnmp.FriendlyAgent - DEBUG - Loaded prop: {snmp.plugin.log4j=org.friendlysnmp.plugin.log4j.PluginLog4j, snmp.v3.password.priv=/M3o0zp3Q+0g/BgRRoetGQ==, snmp.v3.protocol.priv=DES, snmp.storage.vacm.viewtree=readOnly, snmp.plugin.jvm=org.friendlysnmp.plugin.jvm.PluginJVM, snmp.v2.community=public, snmp.address.send-notification=10.155.10.228/1162, snmp.persist.filename=DemoFriendly.bin, snmp.plugin.heartbeat=org.friendlysnmp.plugin.heartbeat.PluginHeartbeat, snmp.storage.vacm.group=readOnly, snmp.v3.password.auth=TumNjJ34uUA8XapXe3SYOQ==, snmp.v3.protocol.auth=SHA, snmp.storage.notify=readOnly, snmp.ignore-update-ms=1000, snmp.storage.vacm.access=readOnly, snmp.address.get-set=10.155.10.228/1161}
2011-06-08 13:59:20,253 - org.friendlysnmp.FriendlyAgent - INFO - === STARTED FriendlyAgent ===
2011-06-08 13:59:20,306 - org.friendlysnmp.AgentWorker - INFO - Created agent at 10.155.10.228/1161; Notify to 10.155.10.228/1162; EngineID=80:00:71:a3:01:ac:10:01:76
2011-06-08 13:59:20,308 - org.friendlysnmp.FConfig - INFO - IgnoreUpdate: 1000 ms
2011-06-08 13:59:20,309 - org.friendlysnmp.persist.PersistStorageImpl - DEBUG - Storage filename 'DemoFriendly.bin'
2011-06-08 13:59:20,323 - org.friendlysnmp.persist.PersistStorageImpl - INFO - Loaded persist file: /home/vishwas/NetBeansProjects/SocketProgramming/DemoFriendly.bin
2011-06-08 13:59:20,324 - org.friendlysnmp.persist.PersistStorage - DEBUG - Persistency policy: ON_CHANGE
2011-06-08 13:59:20,324 - org.friendlysnmp.FConfig - INFO - Transport: UDP
2011-06-08 13:59:20,325 - org.friendlysnmp.FConfig - INFO - TransportDomain: IPV4
2011-06-08 13:59:20,329 - org.friendlysnmp.target.TargetBase - DEBUG - Created target 'public' SecModel=0 MsgProcModel=0 SecLevel=0
2011-06-08 13:59:20,331 - org.friendlysnmp.target.TargetBase - DEBUG - Loaded target 'public': storageVacmGroup=readOnly storageVacmAccess=readOnly storageVacmViewTree=readOnly storageNotify=readOnly notifyTimeout=1000 notifyRetryCount=1
2011-06-08 13:59:20,331 - org.friendlysnmp.AgentWorker - INFO - Added Target: TargetV2 TARGET=public
2011-06-08 13:59:20,344 - org.friendlysnmp.plugin.log4j.PluginLog4j - DEBUG - Found log4j props: /home/vishwas/NetBeansProjects/SocketProgramming/src/log4j.properties
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: appConfigEntry
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: appDependenciesEntry
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: appInfoEntry
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: appPropEntry
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: deadlockViewEntry
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: deadlocksListEntry
2011-06-08 13:59:20,401 - org.friendlysnmp.FTable - DEBUG - Created table: exceptionViewEntry
2011-06-08 13:59:20,402 - org.friendlysnmp.FTable - DEBUG - Created table: exceptionsListEntry
2011-06-08 13:59:20,402 - org.friendlysnmp.FTable - DEBUG - Created table: persistCellEntry
2011-06-08 13:59:20,402 - org.friendlysnmp.FTable - DEBUG - Created table: persistScalarEntry
2011-06-08 13:59:20,402 - org.friendlysnmp.FTable - DEBUG - Created table: persistTableEntry
2011-06-08 13:59:20,402 - org.friendlysnmp.FTable - DEBUG - Created table: sysPropEntry
2011-06-08 13:59:20,404 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.3.0 'shutdownApp' Volatile=true
2011-06-08 13:59:20,405 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.3.3.1 'persistScalarEntry' Volatile=true
2011-06-08 13:59:20,406 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.3.4.1 'persistTableEntry' Volatile=true
2011-06-08 13:59:20,411 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.30.0 'deadlockCheckInterval' Volatile=false
2011-06-08 13:59:20,411 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.2.30.0 'deadlockCheckInterval': 1
2011-06-08 13:59:20,412 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.32.0 'deadlockViewPolicy' Volatile=false
2011-06-08 13:59:20,412 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.2.32.0 'deadlockViewPolicy': 1
2011-06-08 13:59:20,413 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.33.0 'deadlockViewFixedIndex' Volatile=true
2011-06-08 13:59:20,415 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.20.0 'exceptionViewPolicy' Volatile=false
2011-06-08 13:59:20,415 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.2.20.0 'exceptionViewPolicy': 1
2011-06-08 13:59:20,416 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.21.0 'exceptionViewFixedIndex' Volatile=true
2011-06-08 13:59:20,417 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.10.1 'exceptionsListEntry' Volatile=true
2011-06-08 13:59:20,423 - org.friendlysnmp.FTable - DEBUG - Created table: log4jLoggerEntry
2011-06-08 13:59:20,423 - org.friendlysnmp.FTable - DEBUG - Created table: log4jPropEntry
2011-06-08 13:59:20,424 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.10.1.0 'log4jPropFile': /home/vishwas/NetBeansProjects/SocketProgramming/src/log4j.properties
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemGCEntry
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemManagerEntry
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemMgrPoolRelEntry
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemPoolEntry
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTBootClassPathEntry
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTClassPathEntry
2011-06-08 13:59:20,451 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTInputArgsEntry
2011-06-08 13:59:20,452 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTLibraryPathEntry
2011-06-08 13:59:20,452 - org.friendlysnmp.FTable - DEBUG - Created table: jvmThreadInstanceEntry
2011-06-08 13:59:20,453 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.1.4.0 'jvmClassesVerboseLevel': 1
2011-06-08 13:59:20,457 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.2.2.0 'jvmMemoryGCVerboseLevel': 1
2011-06-08 13:59:20,458 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.42.2.145.3.163.1.1.2.3.0 'jvmMemoryGCCall' Volatile=true
2011-06-08 13:59:20,465 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.3.5.0 'jvmThreadContentionMonitoring': 4
2011-06-08 13:59:20,467 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.3.6.0 'jvmThreadCpuTimeMonitoring': 4
2011-06-08 13:59:20,468 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.42.2.145.3.163.1.1.3.7.0 'jvmThreadPeakCountReset' Volatile=true
2011-06-08 13:59:20,478 - org.friendlysnmp.AgentWorker - DEBUG - Transport=UDP
2011-06-08 13:59:20,486 - org.friendlysnmp.FException - ERROR - Failure to init SNMP agent
[1] java.net.BindException: Cannot assign requested address
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:85)
at java.net.DatagramSocket.bind(DatagramSocket.java:373)
at java.net.DatagramSocket.<init>(DatagramSocket.java:229)
at java.net.DatagramSocket.<init>(DatagramSocket.java:282)
2011-06-08 14:25:29,901 - org.friendlysnmp.FriendlyAgent - DEBUG - Loaded prop: {snmp.plugin.log4j=org.friendlysnmp.plugin.log4j.PluginLog4j, snmp.v3.password.priv=/M3o0zp3Q+0g/BgRRoetGQ==, snmp.v3.protocol.priv=DES, snmp.storage.vacm.viewtree=readOnly, snmp.plugin.jvm=org.friendlysnmp.plugin.jvm.PluginJVM, snmp.v2.community=public, snmp.address.send-notification=10.155.10.228/162, snmp.persist.filename=DemoFriendly.bin, snmp.plugin.heartbeat=org.friendlysnmp.plugin.heartbeat.PluginHeartbeat, snmp.storage.vacm.group=readOnly, snmp.v3.password.auth=TumNjJ34uUA8XapXe3SYOQ==, snmp.v3.protocol.auth=SHA, snmp.storage.notify=readOnly, snmp.ignore-update-ms=1000, snmp.storage.vacm.access=readOnly, snmp.address.get-set=10.155.10.228/161}
2011-06-08 14:25:29,902 - org.friendlysnmp.FriendlyAgent - INFO - === STARTED FriendlyAgent ===
2011-06-08 14:25:29,968 - org.friendlysnmp.AgentWorker - INFO - Created agent at 10.155.10.228/161; Notify to 10.155.10.228/162; EngineID=80:00:71:a3:01:ac:10:01:76
2011-06-08 14:25:29,972 - org.friendlysnmp.FConfig - INFO - IgnoreUpdate: 1000 ms
2011-06-08 14:25:29,973 - org.friendlysnmp.persist.PersistStorageImpl - DEBUG - Storage filename 'DemoFriendly.bin'
2011-06-08 14:25:29,991 - org.friendlysnmp.persist.PersistStorageImpl - INFO - Loaded persist file: /home/vishwas/NetBeansProjects/SocketProgramming/DemoFriendly.bin
2011-06-08 14:25:29,991 - org.friendlysnmp.persist.PersistStorage - DEBUG - Persistency policy: ON_CHANGE
2011-06-08 14:25:29,992 - org.friendlysnmp.FConfig - INFO - Transport: UDP
2011-06-08 14:25:29,992 - org.friendlysnmp.FConfig - INFO - TransportDomain: IPV4
2011-06-08 14:25:29,997 - org.friendlysnmp.target.TargetBase - DEBUG - Created target 'public' SecModel=0 MsgProcModel=0 SecLevel=0
2011-06-08 14:25:29,999 - org.friendlysnmp.target.TargetBase - DEBUG - Loaded target 'public': storageVacmGroup=readOnly storageVacmAccess=readOnly storageVacmViewTree=readOnly storageNotify=readOnly notifyTimeout=1000 notifyRetryCount=1
2011-06-08 14:25:29,999 - org.friendlysnmp.AgentWorker - INFO - Added Target: TargetV2 TARGET=public
2011-06-08 14:25:30,012 - org.friendlysnmp.plugin.log4j.PluginLog4j - DEBUG - Found log4j props: /home/vishwas/NetBeansProjects/SocketProgramming/build/classes/log4j.properties
2011-06-08 14:25:30,079 - org.friendlysnmp.FTable - DEBUG - Created table: appConfigEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: appDependenciesEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: appInfoEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: appPropEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: deadlockViewEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: deadlocksListEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: exceptionViewEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: exceptionsListEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: persistCellEntry
2011-06-08 14:25:30,080 - org.friendlysnmp.FTable - DEBUG - Created table: persistScalarEntry
2011-06-08 14:25:30,081 - org.friendlysnmp.FTable - DEBUG - Created table: persistTableEntry
2011-06-08 14:25:30,081 - org.friendlysnmp.FTable - DEBUG - Created table: sysPropEntry
2011-06-08 14:25:30,083 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.3.0 'shutdownApp' Volatile=true
2011-06-08 14:25:30,084 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.3.3.1 'persistScalarEntry' Volatile=true
2011-06-08 14:25:30,086 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.3.4.1 'persistTableEntry' Volatile=true
2011-06-08 14:25:30,091 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.30.0 'deadlockCheckInterval' Volatile=false
2011-06-08 14:25:30,091 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.2.30.0 'deadlockCheckInterval': 1
2011-06-08 14:25:30,092 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.32.0 'deadlockViewPolicy' Volatile=false
2011-06-08 14:25:30,092 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.2.32.0 'deadlockViewPolicy': 1
2011-06-08 14:25:30,093 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.33.0 'deadlockViewFixedIndex' Volatile=true
2011-06-08 14:25:30,096 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.20.0 'exceptionViewPolicy' Volatile=false
2011-06-08 14:25:30,096 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.2.20.0 'exceptionViewPolicy': 1
2011-06-08 14:25:30,096 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.21.0 'exceptionViewFixedIndex' Volatile=true
2011-06-08 14:25:30,098 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.29091.1.1.1.2.10.1 'exceptionsListEntry' Volatile=true
2011-06-08 14:25:30,106 - org.friendlysnmp.FTable - DEBUG - Created table: log4jLoggerEntry
2011-06-08 14:25:30,106 - org.friendlysnmp.FTable - DEBUG - Created table: log4jPropEntry
2011-06-08 14:25:30,106 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.29091.1.1.1.10.1.0 'log4jPropFile': /home/vishwas/NetBeansProjects/SocketProgramming/build/classes/log4j.properties
2011-06-08 14:25:30,138 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemGCEntry
2011-06-08 14:25:30,138 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemManagerEntry
2011-06-08 14:25:30,138 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemMgrPoolRelEntry
2011-06-08 14:25:30,138 - org.friendlysnmp.FTable - DEBUG - Created table: jvmMemPoolEntry
2011-06-08 14:25:30,139 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTBootClassPathEntry
2011-06-08 14:25:30,139 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTClassPathEntry
2011-06-08 14:25:30,139 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTInputArgsEntry
2011-06-08 14:25:30,139 - org.friendlysnmp.FTable - DEBUG - Created table: jvmRTLibraryPathEntry
2011-06-08 14:25:30,139 - org.friendlysnmp.FTable - DEBUG - Created table: jvmThreadInstanceEntry
2011-06-08 14:25:30,141 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.1.4.0 'jvmClassesVerboseLevel': 1
2011-06-08 14:25:30,145 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.2.2.0 'jvmMemoryGCVerboseLevel': 1
2011-06-08 14:25:30,147 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.42.2.145.3.163.1.1.2.3.0 'jvmMemoryGCCall' Volatile=true
2011-06-08 14:25:30,156 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.3.5.0 'jvmThreadContentionMonitoring': 4
2011-06-08 14:25:30,157 - org.friendlysnmp.FScalar - DEBUG - Updated 1.3.6.1.4.1.42.2.145.3.163.1.1.3.6.0 'jvmThreadCpuTimeMonitoring': 4
2011-06-08 14:25:30,158 - org.friendlysnmp.FValueNode - DEBUG - 1.3.6.1.4.1.42.2.145.3.163.1.1.3.7.0 'jvmThreadPeakCountReset' Volatile=true
2011-06-08 14:25:30,171 - org.friendlysnmp.AgentWorker - DEBUG - Transport=UDP
2011-06-08 14:25:30,180 - org.friendlysnmp.FException - ERROR - Failure to init SNMP agent
[1] java.net.BindException: Cannot assign requested address
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:85)
at java.net.DatagramSocket.bind(DatagramSocket.java:373)
at java.net.DatagramSocket.<init>(DatagramSocket.java:229)
at java.net.DatagramSocket.<init>(DatagramSocket.java:282)
属性文件如下
# NOTE: Some of the values below are defined as SET nodes and
# might be overwritten by MIB manager and persist between sessions.
#
# See FConstant class for full list of valid entries in the properties.
# Address of THIS application to respond on SET and GET requests
# The address 161 might be already used by Windows SNMP service.
snmp.address.get-set=10.155.10.228/161
# Address to send notifications
snmp.address.send-notification=10.155.10.228/162
# Plugins
snmp.plugin.jvm=org.friendlysnmp.plugin.jvm.PluginJVM
snmp.plugin.log4j=org.friendlysnmp.plugin.log4j.PluginLog4j
snmp.plugin.heartbeat=org.friendlysnmp.plugin.heartbeat.PluginHeartbeat
# Disallow application boots count reset.
# The entry is optional. Default value is true.
#snmp.allow-boots-count-reset=false
# Local engine ID.
# The entry is optional. This value overrides default generated value.
# NOTE: This value for SNMPv3 must match target EngineID in MIB browser
# (if it is set not empty)
#snmp.engine-id=00:00:00:00:00:00:00:00:08
# Heartbeat interval (seconds).
# This is interval in seconds how often heartbeat notifications are sent.
# The entry is optional. Default value is 0 sec.
# This value is ignored if it is set explicitly from MIB browser.
#snmp.heartbeat-interval-sec=60
# FriendlySNMP might receive multiple GET NEXT with subrequests
# for the same SNMP object in a short period of time. Each
# of these requests would fire update event. The application
# might want to coalesce duplicate update events into a single
# one. If identical update events are received in the
# following time frame only a single update event will be fired.
# Allowed values are 0 .. 10,000 ms.
# The entry is optional. Default value is 1000 ms.
snmp.ignore-update-ms=1000
# Root OID for views.
# These entries are optional. Default values are "1.3".
#snmp.oidroot.notify-view=1.3
#snmp.oidroot.read-view=1.3
#snmp.oidroot.write-view=1.3
# Thread pool size.
# The entry is optional. Default value is 4.
#snmp.thread-pool-size=4
# Filename to store serialized default persistence storage.
# The entry is optional. Default filename is generated from main app classname.
snmp.persist.filename=DemoFriendly.bin
# Transport. Valid values are: UDP or TCP.
# The entry is optional. Default value is UDP.
#snmp.transport=UDP
# Transport domain. Valid values are: IPV4, IPV4Z, IPV6, IPV6Z.
# The entry is optional. Default value is IPV4
#snmp.transport.domain=IPV4
# Storage type.
# MIB StorageType TC: Describes the memory realization of a conceptual row.
# A row which is volatile(2) is lost upon reboot. A row which either
# nonVolatile(3), permanent(4) or readOnly(5), is backed up by stable storage.
# A row which is permanent(4) can be changed but not deleted. A row which is
# readOnly(5) cannot be changed nor deleted.
# If the value of an object with this syntax is either permanent(4) or
# readOnly(5), it cannot be written. Conversely, if the value is either
# other(1), volatile(2) or nonVolatile(3), it cannot be modified to be
# permanent(4) or readOnly(5).
# Upper or lower case is ignored.
# These entries are optional. All defaults are "readOnly"
snmp.storage.vacm.group=readOnly
snmp.storage.vacm.access=readOnly
snmp.storage.vacm.viewtree=readOnly
snmp.storage.notify=readOnly
# Notification timeout.
# The entry is optional. Default value is 1000 ms.
#snmp.notify.timeout-ms=1000
# Notification retry count.
# The entry is optional. Default value is 1 time.
#snmp.notify.retry-count=1
# List of v1/v2 communities separated by spaces, e.g. "public snmp"
#snmp.v1.community=public
#snmp.v2.community=public snmp
snmp.v2.community=public
# List of v3 users separated by spaces, e.g. "john craig"
#snmp.v3.user=friend
# Security section for v3.
# These values are not used until "snmp.v3.user=.." entry is specified.
# Authentication and privilege passwords (passphrases) should be encoded
# using the FriendlyPro tool with the specified or default key.
# Valid auth protocols: none, MD5, SHA
# Valid priv protocols: none, DES, AES128, AES192, AES256
# Default protocols are "none" or define empty value for "none".
# Decrypted passwords: "SHAAuthPassword" and "DESPrivPassword"
snmp.v3.protocol.auth=SHA
snmp.v3.protocol.priv=DES
#snmp.v3.password.key=friendly
snmp.v3.password.auth=TumNjJ34uUA8XapXe3SYOQ==
snmp.v3.password.priv=/M3o0zp3Q+0g/BgRRoetGQ==
# Uncaught exceptions are handled by agent and their stack traces are not
# shown by JVM in a console. Set this value to "true" in development
# environment to see stack traces and to "false" in production to keep
# console clean.
# The entry is optional. Default value is "true".
#snmp.console-uncaught=false
# Persistency policy. The entry is optional.
# Valid values are "on_change" and "on_exit". Default value is "on_change"
#snmp.persist.policy=on_change
提前致谢。
问候,维什瓦斯
@all --> 感谢您的帮助...我解决了问题...有一些配置错误。我纠正了同样的。现在一切都很好。再次感谢大家
最佳答案
根据您的描述,您似乎在尝试绑定(bind)到非本地 IP 地址。你不应该像那样使用 bind 。你打算绑定(bind)到运行程序的机器上的 ip 地址。当您使用本地主机地址时,它会起作用,您对此感到“令人毛骨悚然”,这不足为奇,因为这就是起作用的原因。
关于java - 在远程机器上绑定(bind)套接字的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6281619/
我使用下拉菜单提供一些不同的链接,但我希望这些链接在同一选项卡中打开,而不是在新选项卡中打开。这是我找到的代码,但我对 Javascript 非常缺乏知识 var urlmenu = docume
我对 javascript 不太了解。但我需要一个垂直菜单上的下拉菜单,它是纯 JavaScript,所以我从 W3 复制/粘贴脚本:https://www.w3schools.com/howto/t
我已经坐了 4 个小时,试图让我的导航显示下 zipper 接垂直,但它继续水平显示它们。我无法弄清楚为什么会发生这种情况或如何解决它。 如果有人能告诉我我做错了什么,我将不胜感激。我有一个潜移默化的
我正在尝试创建选项卡式 Accordion 样式下拉菜单。我使用 jQuery 有一段时间了,但无法使事件状态达到 100%。 我很确定这是我搞砸的 JS。 $('.service-button').
对于那些从未访问过 Dropbox 的人,这里是链接 https://www.dropbox.com/ 查看“登录”的下拉菜单链接。我如何创建这样的下 zipper 接? 最佳答案 这是 fiddle
我正在制作一个 Liferay 主题,但我在尝试设计导航菜单的样式时遇到了很多麻烦。我已经为那些没有像这样下拉的人改变了导航链接上的经典主题悬停功能: .aui #navigation .nav li
如果您将鼠标悬停在 li 上,则会出现一个下拉菜单。如果您将指针向下移至悬停时出现的 ul,我希望链接仍然带有下划线,直到您将箭头从 ul 或链接移开。这样你就知道当菜单下拉时你悬停在哪个菜单上。 知
我有一个带有多个下拉菜单的导航栏。因此,当我单击第一个链接时,它会打开下拉菜单,但是当我单击第二个链接时,第一个下拉菜单不会关闭。 (所以如果用户点击第二个链接我想关闭下拉菜单) // main.js
我正在尝试制作一个导航下拉菜单(使用 Bootstrap 3),其中链接文本在同一行上有多个不同的对齐方式。 在下面的代码中,下拉列表 A 中的链接在 HTML 中有空格字符来对齐它们,但是空白被忽略
我希望有人能帮我解决这个 Bootstrap 问题,因为我很困惑。 有人要求我在底部垂直对齐图像和其中包含图像的链接。 我面临的问题是他们还希望链接在链接/图像组合上具有 pull-right,这会杀
我正在构建一个 Rails 应用程序,并希望指向我的类的每个实例的“显示”页面的链接显示在“索引”页面的下拉列表中。我目前正在使用带有 options_from_collection_for_sele
我有以下 Bootstrap3 导航菜单 ( fiddle here )。我想设置“突出显示”项及其子链接与下拉列表 1 和 2 链接不同的链接文本(和悬停)的样式。我还希望能够以不同于 Highli
我对导航栏中的下拉菜单有疑问。对于普通的导航链接(无下拉菜单),我将菜单文本放在 H3 中,但是当我尝试对下 zipper 接执行相同操作时,箭头不在标题旁边,而是在标题下方。我决定用 span 替换
我是一名优秀的程序员,十分优秀!