Displaying 2 results from an estimated 2 matches for "snmpv2c".
Did you mean:
snmpv2
2008 Sep 13
3
Problem to run 4 virtual machines at a time.
Hi all
I have installed vyatta system, (vyatta-livecd-vc4-alpha2.iso ) on top of
Centos5.
Our system requirement is,
* Centos 5.1 (2.6.18-92.1.10.el5xen )
* 2 Gb RAM,
* x86_64
And cpu information is as follow,
[root at turtle4 ~]# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core
2008 Jan 04
5
win32-api callback causes ruby to application error (crash).
...pRegister: 1
SnmpGetLastError: 1
------------------------------------------------
The following code is to send a SNMP trap.
-----------start trapv2.rb-------------------
require ''rubygems''
require ''snmp''
SNMP::Manager.open(:TrapPort => 162, :Version => :SNMPv2c) do |snmp|
1.times { |i|
p i
snmp.trap_v2(12345, "1.3.6.1", ["1.3.6.1.2", "1.3.6.1.3"])
}
end
-----------end trapv2.rb-------------------
Thanks.
-nao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pip...