WSA SNMP

Has anyone been able to get the HTTP Requests OIDs working? I am currently graphing Total HTTP Requests / Sec (cacheTotalHttpReqs), Total cache Requests Missed (cacheServerRequests) and client cache request Hits (cacheClientHits).
I'm using Cacti for my snmp monitoring tool and I can't seem to graph the Denied URL Requests. One could ascertain that Total Requests - cache Missed + cache Hits = Denied but certainly one of these OIDs in the web MIB has to show Denied Requests.
By the way, I'm using SNMP v2.
Throw your hat in and help me figure this out!

Is there any way to send the alert with snmp trap instead of SMTP message?
Unfortunately today the SNMP support on the S-series is fairly limited - and traps are one of the things which is missing.
The good news is that we're fixing this, and the next version of AsyncOS for the S-series will have much better SNMP support, including traps.
So for the moment you're stuck with using either email messages or Syslog - but you shouldn't have to wait too long for SNMP traps!

Similar Messages

  • Hardware Monitoring other platforms

    Hi all Managers ,
    I want to know if we can monitor HP Unix Boxs , Tru Unix 64 Boxs and Linux systems with sun management center ?
    Are there agents smc created for those platforms?
    Thanks

    You dont by any chance do config readers for fujitsu
    servers ?Ah, good question.
    Responding from my own point of view there's definately demand for it, and integrating Fujitsu's WSA SNMP info into SunMC would be mostly a turn-the-crank type of exercise... but Fujitsu currently won't "support" WSA info merged into SunMC (i.e. if they change a feature that makes it stop working, they're under no financial obligation to fix it), and, a bigger issue, Sun provides no support for SunMC itself on Fujitsu hardware (although 99% of the features work fine).
    So it'd be a very useful product, but if the SunMC or Fujitsu ends go "BOOM!", and the customer is left without support... it'd make the integration software a hard sell.
    Regards,
    [email protected]

  • Snmp-traps alerts on WSA

    Hi
    Is there any way to send the alert with snmp trap instead of SMTP message?
    Regards
    Greg

    Is there any way to send the alert with snmp trap instead of SMTP message?
    Unfortunately today the SNMP support on the S-series is fairly limited - and traps are one of the things which is missing.
    The good news is that we're fixing this, and the next version of AsyncOS for the S-series will have much better SNMP support, including traps.
    So for the moment you're stuck with using either email messages or Syslog - but you shouldn't have to wait too long for SNMP traps!

  • C370 - 7.6.3-019 An application fault occurred: ('snmp/ipmi_handlers.py _handle_fan_result|370'

    I got the following CRITICAL error at C370:
    The Critical message is:
    An application fault occurred: ('snmp/ipmi_handlers.py _handle_fan_result|370', "<type 'exceptions.ValueError'>", "invalid literal for int() with base 10: 'no reading'", '[_coro.pyx coro._coro._wrap1 (coro/_coro.c:8477)|757] [egg/interface_controller.py poll_ipmi|1409] [snmp/hardware.py update_sensors|89] [snmp/ipmi_handlers.py update_sensors|609] [snmp/ipmi_handlers.py _parse_sensor_lines|583] [snmp/ipmi_handlers.py _handle_fan_result|370]')
    Version: 7.6.3-019
    Maybe this bug is related to WSA bug CSCzv78978...
    Need a help to see if this bug is resolved at 8.0.1-023 release.

    This is ESA defect on 7.6 family... see the following:
    https://tools.cisco.com/bugsearch/bug/CSCzv22991
    You'll need to upgrade to 8.0.1-023, or you can open support case, we can provision 8.5.6 FCS, or you can wait for our 8.5.6 GA release shortly...
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • SNMP ifindex in Solaris 10

    Can anyone tell me how I can nail down the SNMP ifmib ifindex table on a Solaris 10 server? Every time the server guys add a subintderface, I have to reconfigure my PRTG and Spectrum models, and it's getting tedious. I cannot believe there is no way to nail down e1000g0=#2, e1000g1=#3, etc.
    Thanks in advance.
    Kevin Dorrell
    Luxembourg

    it should be possible to define the "index" in each /etc/hostname. file
    I have never done this, but when the system boots it reads the content of these files and passes them to "ifconfig" to configure the NICs
    search this page for "index":
    http://docs.oracle.com/cd/E19253-01/816-5166/ifconfig-1m/index.html

  • Can't Ping or access via SNMP Inside interface of 5505

    I have a remote site I'm trying to setup monitoring on and I can't get the inside interface to respond to a ping or SNMP requests.  I have tried everything I can find in the forums and on the web but this location will not cooperate.  I have full access to the ASA and to the inside network behind it.  IPSEC VPN tunnel is working perfectly.  I see the ping requests in the log on the ASA.  I turned on ICMP debugging and only see the echo request.. never an echo reply.  Below is a partial configuration.  If you need any more information, let me know.
    names
    name 192.168.0.0 Domain
    name 1.1.1.2 MCCC_Outside
    name 172.31.10.0 VLAN10
    interface Ethernet0/0
     switchport access vlan 2
    interface Ethernet0/1
    interface Ethernet0/2
    interface Ethernet0/3
    interface Ethernet0/4
    interface Ethernet0/5
    interface Ethernet0/6
    interface Ethernet0/7
    interface Vlan1
     nameif inside
     security-level 100
     ip address 192.168.23.1 255.255.255.0
    interface Vlan2
     nameif outside
     security-level 0
     ip address 1.1.1.1 255.255.255.0
    boot system disk0:/asa847-k8.bin
    ftp mode passive
    clock timezone EST -5
    clock summer-time EDT recurring
    dns server-group DefaultDNS
     domain-name mtcomp.org
    object network obj-192.168.23.0
     subnet 192.168.23.0 255.255.255.0
    object network Domain
     subnet 192.168.0.0 255.255.0.0
    object network 172.31.0.0
     subnet 172.31.0.0 255.255.0.0
    access-list outside_1_cryptomap extended permit ip 192.168.23.0 255.255.255.0 any
    access-list outside_1_cryptomap extended permit ip 192.168.23.0 255.255.255.0 object Domain
    access-list inside_nat0_outbound extended permit ip 192.168.23.0 255.255.255.0 192.168.1.0 255.255.255.0
    access-list inside_nat0_outbound extended permit ip 192.168.23.0 255.255.255.0 object Domain
    access-list Outside_NAT0_inbound extended permit ip object Domain 192.168.23.0 255.255.255.0
    access-list inside_access_in extended permit ip 192.168.23.0 255.255.255.0 any
    access-list inside_access_in extended permit ip any 192.168.23.0 255.255.255.0 inactive
    no pager
    logging enable
    logging timestamp
    logging buffered debugging
    logging trap informational
    logging asdm informational
    logging device-id hostname
    logging host inside 192.168.x.x 17/1514
    mtu inside 1500
    mtu outside 1500
    no failover
    icmp unreachable rate-limit 1 burst-size 1
    icmp permit any inside
    no asdm history enable
    arp timeout 14400
    no arp permit-nonconnected
    nat (inside,any) source static obj-192.168.23.0 obj-192.168.23.0 destination static Domain Domain no-proxy-arp route-lookup
    route outside MCCC_Outside 255.255.255.255 1.1.1.1 1
    route outside 172.31.0.0 255.255.0.0 192.168.1.1 1
    route outside VLAN10 255.255.255.0 MCCC_Outside 1
    route outside Domain 255.255.0.0 192.168.1.1 1
    route outside 192.168.1.0 255.255.255.0 MCCC_Outside 1
    timeout xlate 3:00:00
    timeout pat-xlate 0:00:30
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    timeout tcp-proxy-reassembly 0:01:00
    timeout floating-conn 0:00:00
    dynamic-access-policy-record DfltAccessPolicy
    user-identity default-domain LOCAL
    aaa authentication ssh console LOCAL
    aaa authentication enable console LOCAL
    http server enable
    http 192.168.1.81 255.255.255.255 inside
    http 192.168.1.0 255.255.255.0 inside
    http 192.168.23.0 255.255.255.0 inside
    snmp-server host inside 172.x.x.x community ***** version 2c
    no snmp-server location
    no snmp-server contact
    snmp-server enable traps snmp authentication linkup linkdown coldstart
    crypto map outside_map 1 match address outside_1_cryptomap
    crypto map outside_map 1 set pfs group1
    crypto map outside_map 1 set peer MCCC_Outside
    crypto map outside_map 1 set ikev1 transform-set ESP-3DES-SHA
    crypto map outside_map 1 set ikev2 ipsec-proposal AES256 AES192 AES 3DES DES
    crypto map outside_map interface outside
    management-access inside
    class-map inspection_default
     match default-inspection-traffic
    policy-map type inspect dns preset_dns_map
     parameters
      message-length maximum client auto
      message-length maximum 512
    policy-map global_policy
     class inspection_default
      inspect dns preset_dns_map
      inspect ftp
      inspect h323 h225
      inspect h323 ras
      inspect ip-options
      inspect netbios
      inspect rsh
      inspect rtsp
      inspect skinny 
      inspect esmtp
      inspect sqlnet
      inspect sunrpc
      inspect tftp
      inspect sip 
      inspect xdmcp
      inspect icmp
    policy-map global-policy
    service-policy global_policy global
    prompt hostname context

    Hi,
    First of all let me clarify your trial.
    Where is your monitoring server?
    Is it behind inside or outside interface (please share ip adress)?
    From config it seems, it can be reach via outside interface. Then you have to make snmp check on outside interface, not on inside (cannot make a snmp/ping check on inside interface with request comming through outside inteface - it simply won't work).
    From the first check of routing table, I would suggest:
    delete : route outside MCCC_Outside 255.255.255.255 1.1.1.1 1 - doesn't make a sense route host address, when it's directly connected network (and more, route 1.1.1.2 to 1.1.1.1, when 1.1.1.1 is vlan2 interface)
    change : route outside 172.31.0.0 255.255.0.0 192.168.1.1 1; route outside Domain 255.255.0.0 192.168.1.1 1 - you should consider route it to 1.1.1.2 (if this is your next hop address at WAN).
    route outside VLAN10 255.255.255.0 MCCC_Outside 1 - why?
    I would use default route to somewhere at 1.1.1.0/24 range - next hop (router).
    HTH,
    Pavel

  • I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.

    I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.
    I don't want it to be an EEM Event, I just want to run it from the (tcl)# prompt.
    So I guess I'm asking if you can use cli_exec and other commands in the "namespace import ::cisco::eem::*" in a normal non-EEM script - can I do that?
    This is the error I get:
    OTN.159(tcl)#source flash:TCL_SNMP_Remote_Read.tcl
    invalid command name "::cisco::eem::event_register_none"             ^
    % Invalid input detected at '^' marker.
    What am I missing?
    =================  TCL_SNMP_Remote_Read.tcl  ==============================
    ::cisco::eem::event_register_none
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if [catch {cli_open} RESULT]
        { error $RESULT $errorInfo }
        else { array set cli1 $RESULT }
    if [catch {cli_exec $cli1(fd) "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0" } RESULT]
           { error $RESULT $errorInfo  }
           else { set SnmpSysDesc $RESULT }
    if [catch {cli_close $cli1(fd) $cli1(tty_id)} RESULT] {
                error $RESULT $errorInfo
    puts $SnmpSysDesc
    =========================================================================
    In the sho-run config I have:
    event manager directory user policy "flash:/"
    event manager session cli username "cisco"
    Any help to get me started would be greatly appreciated!
    Tim

    If you don't want an EEM policy, then don't use any of the EEM constructs.  Instead, all you need is this:
    set output [exec "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0"]puts $output

  • Interface errors (crc, in/output, collisions etc.) via snmp

    Hi,
    I'm trying to understand how to get interface errors via SNMP.  I do get stats via SNMP for ifInErrors / ifOutErrors etc, but I'm trying to get output via SNMP for the errors visible via the 'sh int x' command - CRC errors, input / output errors, collisions, runts. giants etc.).
    1) The SNMP ifInError / ifOutError seems to give an overall counter of all errors from the time the device has started - Am I correct about this?
    2) Is there any way I can get the interface-specific errors noted above via SNMP?
    Thanks,
    Mario

    Depends on the device and version of code, but most likely you will get what you want from the CISCO-IF-EXTENSION-MIB.  Look at objects like cieIfInRuntsErrs, cieIfInGiantsErrs, and cieIfInFramingErrs.  You will also get some ethernet-specific errors from the ETHERLIKE-MIB.

  • Bug report: vpn (ipsec) interface number in snmp always change

    Hi,
    this is a bug report for RV082 hardware version 3 and 4, firmware version 1.x, 2.x and 4.x (all latest versions). I hope someone from cisco/belkin reads it.
    Summary:
    The snmp interface number of a VPN Tunnel change when the VPN tunnel disconnect and then re-connects.
    What should happend:
    The VPN Tunnel number 1, should always have the same snmp interface number. In RV082 v4, this number should always be 10. For example, the LAN, WAN1 and WAN2 always have the same snmp interface number.
    What is the problem:
    The VPN Tunnel number 1 change the snmp interface number, from 10, to 11, to 12, etc.
    How to reproduce:
    create a VPN Tunnel using 2 RV082 or 1 RV082 and 1 RV042. Once the VPN Tunnel is connected write down the snmp interface number. A few days later, disconnect the cable of block internet access. Then restore the internet conection and write down the snmp interface number, you should note that the snmp interface number have changed.
    Tools used:
    PRTG Network Monitor
    Please take a look at the attached image, note all the "ppp" interfaces, theres only 1 VPN Tunnel (gateway-to-gateway) defined.

    Hi Tom,
    many thanks for your reply.
    I see that I have to call Tech-support, in order to report a very technical situation, explaining them this is a bug report and I want them to make a better product.
    Since I won't pay a dime for this problem to be fixed, I can only see pain in this path(calling to speak with a tech support representative).
    I also readed that Belkin has bought Linksys, so I don't know if the RV082 will remain with Cisco or will go with Belkin.
    So, my only hope is to document this bug, that is pressent inall firmware version and hardware version of the RV082 as of today.
    many thanks for your help,
    regards,
    Oliver

  • Questions on Receiving SNMP Traps

    Hi:
    - I have more questions on receiving SNMP traps:
    1) the OEM plug-in can receive traps now, but when I click the metric, I see:
    Error getting data for target test20. Exception: ORA-20216: ORA-06512: at "SYSMAN.EMD_MNTR", line 817 ORA-01403: no data found ORA-06512: at line 1
    - the push descriptor looks like:
    <PushDescriptor RECVLET_ID="SNMPTrap">
    <Property NAME="MatchEnterprise" SCOPE="GLOBAL">...</Property>
    <Property NAME="MatchGenericTrap" SCOPE="GLOBAL">6</Property> <Property NAME="MatchSpecificTrap" SCOPE="GLOBAL">31</Property> <Property NAME="MatchAgentAddr" SCOPE="INSTANCE">target_ip</Property>
    <Property NAME="EventsnChasFanIndexOID" SCOPE="GLOBAL">...</Property>
    <Property NAME="ContextsnChasFanDescriptionOID" SCOPE="GLOBAL">...</Property>
    <Property NAME="SeverityCode" SCOPE="GLOBAL">WARNING</Property>
    </PushDescriptor>
    - is the Key Property needed ?
    2) The alerts for some reason do not filter back to the all targets home page.
    - When I click the Home tab and goto to the 'All Targets' pane, I do not see the alert generated by the OEM plug-in.
    - What I am doing wrong ?
    3) Is it okay to receive traps with the metric usage set to either: HIDDEN or HIDDEN_COLLECT ?
    - Does this cause the errors I see in Q 1) ?
    Thanks
    John
    Edited by: user8826739 on Feb 23, 2010 7:05 AM

    Hi John,
    Can you post the full definition of the metric? You would need to use the Key property for each key column in the metric description.
    With the SNMP receivelet you can set up definitons for data points or alerts. I would assume (as I've never tried this ;) that if you set up the definition to be a data point, you would see data from the All Metrics page. To me, it wouldn't make sense for a metric that used the PushDescriptor SNMPTrap to have data to be viewed as the result of the SNMP trap coming is would be an alert. I will have to look into that. My gut reaction is that a metric with PushDescriptor SNMPTrap shouldn't even appear on the All Metrics page ...
    To be clear are you saying that you don't see the Warning number under "All Targets Alerts" increase by 1 when you SNMP trap is caught and alert is generated? When this occurs do you see the alert on the target instance homepage?
    In regards to HIDDEN and HIDDEN_COLLECT, I don't know what effect they would have on a metric defined for an SNMP trap to raise an alert. You definitely wouldn't want to use HIDDEN as this setting is for temporary metrics that are used in the caclulation of other metrics. HIDDEN metrics are not collected (or hence uploaded to the OMS) and don't appear in the UI. HIDDEN_COLLECT are collected, but do not show up in the UI and are not uploaded. I've never used this settings with SNMP trap metrics that are for alerts. If your metrics for the SNMP trap alerts do show up on the All Metrics page (I'd have to get something set up to look at this), then it could make sense to use the HIDDEN_COLLECT as the alert would still be generated, but the metric itself wouldn't be shown in the UI.
    Let me find out the expected behavior from someone on the agent team.
    Dave

  • How to do a SET using SNMP ?

    Hi,
    I already ask in the forum Advanced Language Topics
    http://forum.java.sun.com/thread.jsp?forum=4&thread=320674
    but I din't receive any answer so I try here maybe some one could help me on this ... ;-)
    I find a nice piece of code on Internet to do SNMP request �
    http://membres.lycos.fr/ysoun/index.html
    http://membres.lycos.fr/ysoun/sck.zip
    It works find to do some GET operations like doing a GET sysDescr (oid 1.3.6.1.2.1.1.1.0).
    But I would like to do a SET operation but I could'nt succeed.
    First I do a get on an oid 1.3.6.1.2.1.1.4.0 (sysContact) and I get the value "hello" which is find and I would like to set this value to "good bye".
    Well I have to say that I don�t know very well the SNMP protocol and I couldn�t figure out where to put the value in order to set "Good bye". Off course I have the right community to do that but I just can't figure out how can I do that ...
    Any comment ... help ... ideas ... are more than welcome !!!! Or maybe some better SNMP package to do that???
    thanks,
    Emmanuel
    Here is the code:
    the function to set using SNMP ...
      public static setSnmpRequest(int snmpPort, int snmpTimeout, String community, String host, String strValue){
          String oid = new String("1.3.6.1.2.1.1.4.0");
          D_SNMP.Message request;
          try {
              InetAddress snmpHost = InetAddress.getByName(host);
              DatagramSocket sock = new DatagramSocket();
              sock.setSoTimeout(snmpTimeout);
              // create pdu.
              //somewhere here I should include my variable "good bye" but I don't really know how
              Var var = new Var(oid);
              OctetString c = new OctetString(community);
              D_SNMP.Integer requestId = new D_SNMP.Integer(0);
              D_SNMP.Integer errorIndex = new D_SNMP.Integer(0);
              D_SNMP.Integer errorStatus = new D_SNMP.Integer(0);
              //For the GET:
              //PduCmd pdu = new PduCmd(Pdu.GET,requestId,errorStatus,errorIndex,new VarList(var));
              //What I would like to do:
              PduCmd pdu = new PduCmd(Pdu.SET,requestId,errorStatus,errorIndex,new VarList(var));
              D_SNMP.Message m = new D_SNMP.Message(c,pdu);
              // send
              byte[] b = m.codeBer();
              DatagramPacket packet = new DatagramPacket(b,b.length,snmpHost,snmpPort);
              byte[] b2 = new byte[1024];
              DatagramPacket p2 = new DatagramPacket(b2,b2.length);
              long startTime = System.currentTimeMillis();
              sock.send(packet);
              sock.receive(p2); // block or ... timeout.
              long time = (System.currentTimeMillis() - startTime);
              // display
              ByteArrayInputStream ber = new ByteArrayInputStream(b2,1,p2.getLength()-1); // without tag !
              D_SNMP.Message m2 = new D_SNMP.Message(ber);
              System.out.println("snmpPing " + host + " :");
              System.out.println(m2.getPdu().getVarList().elementAt(0) + " / time = " + time + "ms" );
              if (debug){
                  StringBuffer buf = new StringBuffer();
                  m2.println("",buf);
                  System.out.println(buf);
          } catch (UnknownHostException ex){
              System.out.println(host + ": unknown host." );
          } catch (InterruptedIOException ex){
              System.out.println("snmpPing "+ host + " : Time-out." );
          } catch ( Exception ex) {
              System.out.println("Error in : ");
              System.out.println(ex);
      } the class Var... where somewhere I should be able to set the variable "Good bye" ...
    import java.io.*;
    import java.util.Vector;
    /** ASN.1 grammar for Var:
    * Var ::=
    * SEQUENCE
    *        { name Oid
    *          value CHOICE {Null, Integer, Counter, gauge, Timeticks, IpAddress, OctetString}
    final public class Var extends construct implements Serializable {
      public Var(Oid o, smi s){
        this();
        valeur.addElement(o);
        valeur.addElement(s);
      /** Same as Var(new Oid(oid), new Null()).
      public Var(String oid) throws IOException{
        this(new Oid(oid), new D_SNMP.Null());
      /** Builds a Var from a ByteArrayInputStream holding a Var Ber coding.
       *  <BR>Bytes read are removed from the stream.
       *  <P><B>Note:</B> The ByteArrayInputStream must not contain the Var Tag.
       *  @exception IOException is thrown if a problem occurs while trying to decode the stream.
      public Var(ByteArrayInputStream inBer) throws IOException{
        this();
        decodeBer(inBer);
      /** Used only by VarList.
      Var(){
        super(smi.SEQUENCE_tag);
        valeur = new Vector(2);
      /** Returns the name of this Var.
      public Oid getName(){
        return (Oid) valeur.elementAt(0);
      /** Returns the value of this Var.
      public smi getValue(){
        return (smi) valeur.elementAt(1);
      /** Returns the value of this Var as a String.
      public String toString() {
        try{
        return ((smi)valeur.elementAt(0)).toString() + " = " + ((smi)valeur.elementAt(1)).toString();
        }catch (IndexOutOfBoundsException e) { // ne doit pas se produire.
          System.out.println("Erreur codage interne type Var.");
          System.exit(1);
        return null;
      /** Used smi.decodeBer().
      void decodeValeur(ByteArrayInputStream bufferBer, int lgBerValeur) throws IOException {
        int tag = bufferBer.read();
        if ( tag != smi.OID_tag )
          throw new IOException ("erreur decodage tag Oid de Var: byte " + java.lang.Integer.toHexString(tag) +" recu.");
        Oid name = new Oid(bufferBer);
        this.valeur.addElement(name);
        // lis l'objet suivant.
        tag = bufferBer.read();
        try{
        smi _valeur = smiFactory.create(tag,bufferBer);
        this.valeur.addElement(_valeur);
        } catch (IOException e){
          throw new IOException ("erreur decodage champ Valeur : " + e);
      /** Custom serialization: Ber coding is written in ObjectOutputStream.
      private void writeObject(ObjectOutputStream out) throws IOException{
        byte b[] = this.codeBer();
        out.writeInt(b.length);
        out.write(b);
        out.flush();
      private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
        this._tag = smi.SEQUENCE_tag;
        this.valeur = new Vector();
        int len = in.readInt();
        byte b[] = new byte[len];
        in.readFully(b);
        this.decodeBer(new ByteArrayInputStream(b,1,b.length-1));
    } the class VarList ...
    import java.io.*;
    import java.util.Vector;
    /** ASN.1 grammar for VarList:
    * VarList ::=
    * SEQUENCE OF Var
    final public class VarList extends construct {
      /** Constructs a VarList holding a single Var.
       *  @param Var to be held by Varlist
       public VarList(Var v){
         super(smi.SEQUENCE_tag);
         valeur = new Vector(1);
         valeur.addElement(v);
      /** Constructs a VarList holding Vars.
       *  @param v Vector of Vars.
       public VarList(Vector v){
         super(smi.SEQUENCE_tag);
         valeur = (Vector) v.clone();
       /** Constructs a VarList holding Vars.
       *  @param tab array of Vars.
       public VarList(Var[] tab){
         super(smi.SEQUENCE_tag);
         int taille = tab.length;
         valeur = new Vector(taille);
         for (int i=0; i<taille; i++)
           valeur.addElement(tab);
    /** Builds a VarList from a ByteArrayInputStream holding a VarList Ber coding.
    * <BR>Bytes read are removed from the stream.
    * <P><B>Note:</B> The ByteArrayInputStream must not contain the Var Tag.
    * @exception IOException is thrown if a problem occurs while trying to decode the stream.
    public VarList(ByteArrayInputStream inBer) throws IOException{
    super(smi.SEQUENCE_tag);
    valeur = new Vector();
    decodeBer(inBer);
    /** Returns the Var at the specified index.
    public Var elementAt(int i) throws IndexOutOfBoundsException {
    return (Var)valeur.elementAt(i); // Sans soucis: Var est immutable
    /** Returns the number of Var held this VarList.
    public int getSize(){
    return valeur.size();
    /** Used by smi.decodeBer().
    * A VarList is in fact an array of Vars.
    void decodeValeur(ByteArrayInputStream bufferBer, int lgBerValeur) throws IOException {
    Var v;
    int lg;
    try{
    while (lgBerValeur >0){
    int tag = bufferBer.read();
    lgBerValeur --;
    if ( tag != smi.SEQUENCE_tag )
    throw new IOException ("error decoding tag Var in VarList: byte " +
    java.lang.Integer.toHexString(tag) +" read.");
    v =new Var();
    lg = v.decodeBer(bufferBer);
    this.valeur.addElement(v);
    lgBerValeur -= lg;
    } catch (IOException e){
    throw new IOException ("error decoding Value : " + e);

    I read the documentation it does not help me much, (it's generated by javadoc and there is not enought comment to understand the whole thing ... in fact it just miss a sample of SET request and it would be perfect ...
    thanks,
    emmanuel
    PS: I'm going to try the author again
    PS: Still ... any help or pakage to do SET request using SNMP are more than welcome ...

  • SNMP Alert Destinations

    How does an SNMP alert destination configured within OSB actually submit its traps?
    For instance, I have an SNMP alert destination configured within OSB named "Dev", with SNMP trap enabled, and reporting/email/JMS disabled.
    I have services with SLA rules that are firing, and are generating SLA alerts, and are using this alert destination.
    In the underlying Weblogic domain, I have an SNMP Server Agent name "Dev" which points to the actual IP of the SNMP monitoring tool which receives the alerts, and the WL servers are generating alerts successfully for Weblogic - specific events, such as startup, shutdown, etc.
    But as yet, we don't see any of the OSB traps arriving. Presumably, the name of the Alert destination defined within OSB must match the name of the WL agent ( although the OSB docs are silent on this ).
    So I see SLA alerts in the console, but no sign of any SNMP traps being emitted as a result of the alert.

    But as yet, we don't see any of the OSB traps arriving. Presumably, the name of the Alert destination defined within OSB must match the name of the WL agent ( although the OSB docs are silent on this ).Not required.
    I have configured SNMP traps with OSB in Single Node and Cluster. If you are using unixes, you might want to check the ports being used. Unless we are under root we cannot use ports 0-1023 and this might be the problem.
    Thanks
    Manoj

  • What is the minimum server layer OEM version supports SNMP trap reception ?

    Hi:
    - I have been trying to enable SNMP trap reception on an OEM plug-in.
    - I turned on debug channel for recvlets.snmp and saw:
    2009-10-16 16:07:42,808 Thread-3028552624 ERROR recvlets.snmp: Duplicate threshold : test900, oracle_guide, interfaces, status
    and
    2009-10-16 16:09:08,382 Thread-3021634480 INFO recvlets.snmp: Trap received is to convert Data Point
    2009-10-16 16:09:08,379 Thread-3021634480 INFO recvlets.snmp: Sending Data Point ...
    2009-10-16 16:09:08,379 Thread-3021634480 INFO recvlets.snmp: Listening for TRAP
    So, it looks like the OEM agent can receive traps but no data point or alert appears.
    And, the agent always issues an error about duplicate thresholds.
    - Does the agent have to be patched ?
    My agent is:
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.5.0
    OMS Version : 10.2.0.1.0
    Protocol Version : 10.2.0.0.0
    Agent is Running and Ready
    - on the server layer, the oms is:
    Oracle Enterprise Manager 10g Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    Oracle Management Server is Up.
    Is a patch needed for OMS ?
    Should OMS be version 10.2.0.5.0 ?
    Thanks
    John
    Edited by: user8826739 on Feb 23, 2010 7:17 AM

    10.2.0.5 should be fine ...
    Dave

  • How do I get the Username of an AnyConnect VPN session via SNMP?

    I would like to monitor the usernames of my AnyConnect sessions via SNMP.  This will allow me to monitor, graph, report, and alert using Solarwinds Orion (or any other SNMP software).
    I would like to monitor this on my ASA 5520. I have run the show snmp-server oidlist command and I can see all of the OID's that I can poll. However, the OID I would like to poll crasUsername (1.3.6.1.4.1.9.9.392.1.3.21.1.1) is not working.
    Does anyone know how I can monitor the username of a AnyConnect session via SNMP?
    Below is a link to a great MIB reference for ASA Remote Access Monitor OID list.
    http://www.mibdepot.com/cgi-bin/getmib3.cgi?i=1&n=CISCO-REMOTE-ACCESS-MONITOR-MIB&r=cisco&f=CISCO-REMOTE-ACCESS-MONITOR-MIB.my&v=v2&t=tree

    Hello PDX,
    Welcome to the HP Support Forums!
    To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Commercial Forums.
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Creating SNMP Trap Monitors in 2012 R2

    Hello,
    For the past week or so  I have been attempting to create a MP for my company's UPSs to be monitored in SCOM 2012 R2. I have created a custom MP with custom datasources and objects. All seems to go according to the plan until I attempt to create a SNMP
    Trap monitor for those objects. I am able to verify that the device is discovered and is sending the traps successfully with a view. The problem seems to lie within the setup of the monitor. I have followed the steps as much as I can from this page http://technet.microsoft.com/en-us/library/hh563870.aspx
    to create a monitor that will be triggered by an incoming trap saying the UPS is on Battery Power.
    This is the initial or trigger event information received by SCOM:
    <EventData>
    <DataItem type="System.SnmpData" time="2014-07-03T08:48:07.6990732-07:00" sourceHealthServiceId="26DF02E5-DEA0-BED0-443B-3605A05D4790">
    <Source>10.51.85.40</Source>
    <Destination>127.0.0.1</Destination>
    <ErrorCode>1</ErrorCode>
    <Version>1</Version>
    <SnmpVarBinds>
    <SnmpVarBind>
    <OID>.1.3.6.1.2.1.1.3.0</OID>
    <Syntax>67</Syntax>
    <Value VariantType="19">17567220</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.1.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318.0.5</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.4.1.318.2.3.3.0</OID>
    <Syntax>4</Syntax>
    <Value VariantType="8">UPS: On battery power in response to an input power problem.</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.3.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318</Value>
    </SnmpVarBind>
    </SnmpVarBinds>
    </DataItem>
    </EventData>
    This is the event should signal that everything is operating normally once again.
    <EventData>
    <DataItem type="System.SnmpData" time="2014-07-03T08:48:12.9133769-07:00" sourceHealthServiceId="26DF02E5-DEA0-BED0-443B-3605A05D4790"><Source>10.51.85.40</Source>
    <Destination>127.0.0.1</Destination>
    <ErrorCode>1</ErrorCode>
    <Version>1</Version>
    <SnmpVarBinds>
    <SnmpVarBind>
    <OID>.1.3.6.1.2.1.1.3.0</OID>
    <Syntax>67</Syntax>
    <Value VariantType="19">17567730</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.1.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318.0.9</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.4.1.318.2.3.3.0</OID>
    <Syntax>4</Syntax>
    <Value VariantType="8">UPS: No longer on battery power.</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.3.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318</Value>
    </SnmpVarBind>
    </SnmpVarBinds>
    </DataItem>
    </EventData>
    You may notice that these traps are being sent as SNMP v1. I am unable to change that on the UPS so i have modified the monitors to account for that. Here is the code for the monitor:
    <UnitMonitor ID="UIGeneratedMonitorc2c65f3c85fe42f48ce8d2580c57bbae" Accessibility="Public" Enabled="true" Target="APC.MP.UPS" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="SNL!System.NetworkManagement.SnmpTrapProvider.2SingleEvent2StateMonitorType" ConfirmDelivery="false">
    <Category>Custom</Category>
    <AlertSettings AlertMessage="UIGeneratedMonitorc2c65f3c85fe42f48ce8d2580c57bbae_AlertMessageResourceID">
    <AlertOnState>Warning</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>Error</AlertSeverity>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="UIGeneratedOpStateId2750c1ab2cd14b4a8a8e9f4633eba0b0" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
    <OperationalState ID="UIGeneratedOpStateId5753748399984d08953c1a46895df99c" MonitorTypeStateID="FirstEventRaised" HealthState="Warning" />
    </OperationalStates>
    <Configuration>
    <FirstIP>$Target/Property[Type="SNL!System.NetworkManagement.Node"]/SNMPAddress$</FirstIP>
    <FirstVersion>1</FirstVersion>
    <FirstOIDProps>
    <OIDProp>.1.3.6.1.4.1.318</OIDProp>
    </FirstOIDProps>
    <FirstExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.5</Value>
    </ValueExpression>
    </SimpleExpression>
    </FirstExpression>
    <SecondIP>$Target/Property[Type="SNL!System.NetworkManagement.Node"]/SNMPAddress$</SecondIP>
    <SecondVersion>1</SecondVersion>
    <SecondOIDProps>
    <OIDProp>.1.3.6.1.4.1.318</OIDProp>
    </SecondOIDProps>
    <SecondExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.9</Value>
    </ValueExpression>
    </SimpleExpression>
    </SecondExpression>
    </Configuration>
    </UnitMonitor>
    I tried the following things while attempting to troubleshoot this issue:
    Leaving  First
    SnmpTrapProvider and Second
    SnmpTrapProvider blank while creating the monitor.
    Adding "" and also '' around the value as it is a string and perhaps that was the cause.
    Changing the First and Second SNMPTrapProvider to .1.3.6.1.6.3.1.1.4.1.0 since that is the specific OID I am looking for the value of.
    Reading every page of the internet and bashing my head on the keyboard.
     I am guessing that the issue will reside in the the monitor creation and definition, but I have not found anything that clearly describes how to fill out the SNMP Trap Monitor wizard given the trap info. Especially since the trap I am receiving does
    not seem to contain the usual OID with a common Int or string value.  Hopefully someone can provide assistance as I am nearing my wits end with this problem.

    Firstly, thank you Michael Skov, knowing that the First and Second SnmpTrapProvider or <FirstOIDProps> in the xml, needed to be blank got me pointed in the right direction. I figured I would come back and share my final working code snippet in case
    others run across a similar issue. 
    <UnitMonitor ID="UIGeneratedMonitorf9f671e5456c44fd807d6ec2bd09621d" Accessibility="Public" Enabled="true" Target="Disc!APC.Disc.UPS" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="NetworkManagement!System.NetworkManagement.SnmpTrapProvider.2SingleEvent2StateMonitorType" ConfirmDelivery="false">
    <Category>Custom</Category>
    <AlertSettings AlertMessage="UIGeneratedMonitorf9f671e5456c44fd807d6ec2bd09621d_AlertMessageResourceID">
    <AlertOnState>Warning</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>Warning</AlertSeverity>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="UIGeneratedOpStateId8700c95344254f87a60c92d30d4a3953" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
    <OperationalState ID="UIGeneratedOpStateId7bf68c6cfe3d4faabe83e630781c7327" MonitorTypeStateID="FirstEventRaised" HealthState="Warning" />
    </OperationalStates>
    <Configuration>
    <FirstIP>$Target/Property[Type="NetworkManagement!System.NetworkManagement.Node"]/SNMPAddress$</FirstIP>
    <FirstVersion>1</FirstVersion>
    <FirstOIDProps />
    <FirstExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.5</Value>
    </ValueExpression>
    </SimpleExpression>
    </FirstExpression>
    <SecondIP>$Target/Property[Type="NetworkManagement!System.NetworkManagement.Node"]/SNMPAddress$</SecondIP>
    <SecondVersion>1</SecondVersion>
    <SecondOIDProps />
    <SecondExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.9</Value>
    </ValueExpression>
    </SimpleExpression>
    </SecondExpression>
    </Configuration>
    </UnitMonitor>

Maybe you are looking for