2 Replies Latest reply: May 17, 2012 8:01 AM by sandeep_singh RSS

    About SNMP in weblogic!

    935486
      I am trying to configure SNMP in weblogic
      I mentiond UDP port as 161 and trap destination port addres is 171

      after i run the command java weblogic.diagnostics.snmp.cmdline.Manager SnmpTrapMonitor -p 171


      it shows following exception


      ............................*********************************************.............................................................

      monfox.toolkit.snmp.engine.SnmpTransportException: Cannot bind to port '162'. (java.net.BindException: Permission denied)
      at monfox.toolkit.snmp.engine.UdpTransportProvider.initialize(UdpTransportProvider.java)
      at monfox.toolkit.snmp.engine.TransportProvider.newInstance(TransportProvider.java)
      at monfox.toolkit.snmp.engine.TransportProvider.newInstance(TransportProvider.java)
      at monfox.toolkit.snmp.mgr.n.<init>(n.java)
      at monfox.toolkit.snmp.mgr.SnmpSession.<init>(SnmpSession.java)
      at monfox.toolkit.snmp.appl.SnmpTrapMonitor.g(SnmpTrapMonitor.java)
      at monfox.toolkit.snmp.appl.SnmpTrapMonitor.main(SnmpTrapMonitor.java)
      at monfox.toolkit.snmp.Main.main(Main.java)
      at weblogic.diagnostics.snmp.cmdline.Manager.main(Manager.java:41)
      ERROR: monfox.toolkit.snmp.engine.SnmpTransportException: Cannot bind to port '162'. (java.net.BindException: Permission denied)
      .......................................*************************************............................................


      but again i mentiond

      UDP port as :1026 and Trap destination port is : 1037
      i run the command
      java weblogic.diagnostics.snmp.cmdline.Manager SnmpTrapMonitor -p 171

      ................................................*******************************************................................

      --- Snmp Trap Received ---
      Version : v1
      Source : UdpEntity:127.0.0.1:1027
      Community : public
      Enterprise : enterprises.140.625
      AgentAddr : 192.168.1.152
      TrapOID : enterprises.140.625.0.70
      RawTrapOID : 1.3.6.1.4.1.140.625.0.70
      Trap Objects : {
      { enterprises.140.625.100.5=Wed May 16 12:01:23 IST 2012 }
      { enterprises.140.625.100.10=new_ManagedServer_2 }
      }
      Raw VarBinds : {
      { enterprises.140.625.100.5=Wed May 16 12:01:23 IST 2012 }
      { enterprises.140.625.100.10=new_ManagedServer_2 }
      }
      --- Snmp Trap Received ---
      Version : v1
      Source : UdpEntity:127.0.0.1:1027
      Community : public
      Enterprise : enterprises.140.625
      AgentAddr : 192.168.1.152
      TrapOID : enterprises.140.625.0.70
      RawTrapOID : 1.3.6.1.4.1.140.625.0.70
      Trap Objects : {
      { enterprises.140.625.100.5=Wed May 16 12:01:23 IST 2012 }
      { enterprises.140.625.100.10=new_ManagedServer_2 }
      }
      Raw VarBinds : {
      { enterprises.140.625.100.5=Wed May 16 12:01:23 IST 2012 }
      { enterprises.140.625.100.10=new_ManagedServer_2 }
      }
      ................................

      why it not accepted 171
      plz help me?

      Regards,
      BalaSatish Kamma