SNMP OID query

Not sure if this is the right forum for this.....
Doing a bit of work using SNMP for various things - need to know if there is a way to delete the VLAN.DAT file using SNMP - and if so what is the OID I need to use.
Thanks

You can use the CISCO-FLASH-MIB for this.  You would set the following objects:
ciscoFlashMiscOpEntryStatus     : 5ciscoFlashMiscOpDestinationName : "flash:vlan.dat"ciscoFlashMiscOpCommand         : 3ciscoFlashMiscOpEntryStatus     : 1
The file should then be deleted.

Similar Messages

  • 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

  • The cisco snmp oids do not work, I can't get cpu or memory data.

    Hello. I want to monitor the cpu and memory usages on my cisco devices using snmp. I found the snmp oids related to cpu in the following page :
    http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a94.shtml
    I just copy the table here:
    But the oids in the table do not work on my devices. For example, I have a cisco 3550 switch with the ip 192.168.1.211, version 12.2(25)when I want to get the informations about the oids up in the table, I got these results:
    It shows that the oids cisco given up in the table are not existed in my 3550 switch's MIB. More weird is that when i add a number "1" to
    the end of the oid cisco given, I can get some meaningless data for some unkonwn item names like "entreprises.x.x".
    For most mib items, the snmp oids work well on my switch. For example, the following graph shows the interface out rate of the swtich:
    I think the essence is when I executed the following command:
    in all the output results, there's not any item relevant with "cpu" or "memory", but most other items are ok, such as interfaces, as shown below:
    IF-MIB::ifDescr.47 = STRING: FastEthernet0/39
    IF-MIB::ifDescr.48 = STRING: FastEthernet0/40
    IF-MIB::ifDescr.49 = STRING: GigabitEthernet0/1
    IF-MIB::ifDescr.50 = STRING: GigabitEthernet0/2
    IF-MIB::ifDescr.51 = STRING: Null0
    IF-MIB::ifDescr.52 = STRING: Vlan1
    IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
    So why the cisco given oids won't work on my cisco switch, and how can I get the datas I want? Anyone has some advices? Thanks in advance!
    In case the pictures I inserted missing, I attach my problem in the doc.

    Have you looked at this previous discussion:
    Can't Activate FaceTime

  • Snmp oids for the command "show counters interface intx/y delta"

    Hello,
    I have a question about SNMP OIDs for the command "show counters interface intx/y delta" on Catalyst6500. The customer wants to create graphs for the following values:Overruns, qos0Outlost, InErrors, OutErrors, InDiscards, OutDiscards etc..
    Is possible to get these values using SNMP??
    Thank you
    Roman

    Thank you, Dan. These OIDs are for the output from the command "show interface int x/y". But I think, that these OIDs are not for the command "show interface int x/y delta".
    Roman

  • SNMP OIDs for solaris 8

    Hello
    Someone could tell me where to find a list of SNMP OIDs for solaris 8
    thank you for your cooperation

    Thank you, Dan. These OIDs are for the output from the command "show interface int x/y". But I think, that these OIDs are not for the command "show interface int x/y delta".
    Roman

  • Vpdn: searching for snmp oid to log out vpdn session

    Hello colleagues,
    Cisco 7204 works as vpdn server.
    There are two problems:
    1) I'm searching for snmp oid to log out , terminate vpdn session
    2) radius server does not receives snmp statistics of incoming traffic of vpdn users.
    Please is anyone able to assist me?
    aaa new-model
    aaa authentication login default local
    aaa authentication ppp default group radius local
    aaa authentication ppp VPDN local group radius
    aaa authorization network default local group radius
    aaa accounting delay-start
    aaa accounting update periodic 3
    aaa accounting exec default start-stop group radius
    aaa accounting network default start-stop group radius
    aaa session-id common
    vpdn enable
    vpdn-group 1
    ! Default PPTP VPDN group
    description HOMENET
    accept-dialin
    protocol pptp
    virtual-template 3
    interface Virtual-Template3
    ip unnumbered Loopback1
    peer default ip address pool vpdn-pool
    no keepalive
    ppp authentication chap VPDN
    snmp-server community xxxxxxx RW
    snmp-server chassis-id 0x0E
    snmp-server enable traps tty
    radius-server host x.x.x.x auth-port 1812 acct-port 1813
    radius-server timeout 60
    radius-server key 7
    radius-server authorization permit missing Service-Type
    Best regards, Petr Akimov

    Hello –
    I received a reply from the developer of the script, and listed below is the new code that was suggested:
    #!/bin/bash
    value=`snmpwalk $1 -v1 -c $2 .1.3.6.1.2.1.25.1.5.0 | cut -d " " -f4`
    if [[ value -gt  $3 ]]
    then
    echo " $value Users Online, Critical!"
    retval=2;
    else
         if [[ $value -gt $4 ]]
               then
               echo " $value users online, Warning!"
               retval=1;
               else
               echo " $value Users online, fine."
               retval=0;
               fi
    fi
    exit $retval;
    I checked the server in question, and there were two, 2, user logins active on the system. I ran the snmpwalk command, and the output was the following:
    HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 15
    I then modified the script to include the above text, and ran it again. The output was the following:
    15 users on line, Normal.
    For some reason, the value of 12 appears to be that for no users logged into the system. I am not sure why that is the case.
    If nothing else, progress has been made with the modification of the script.  The snmp service that I have installed on the server is that which came bundled as a
    feature with the server. The only thing that was not installed was the SNMP WMI Provider option.

  • SG-500 - SNMP OID for CPU Load?

    Hello,
    i have several SG500 (Standalone and stacked). How can i get the CPU Load via SNMP? Who knows the correct SNMP OID for CPU Load?
    In the MIB which are provided as download a wasn't able to find the correct OID.

    Hello,
    There are three OIDs available for CPU usage:
    CPU utilization for 5 seconds
    .1.3.6.1.4.1.9.6.1.101.1.7.0
    CPU utilization for 1 minutes
    .1.3.6.1.4.1.9.6.1.101.1.8.0
    CPU utilization for 5 minutes
    .1.3.6.1.4.1.9.6.1.101.1.9.0
    This came from a scrap note I had in an e-mail, so I am not exactly sure where this information is originally.
    Let me know if that works for you,
    Christopher Ebert - Network Support Engineer
    Cisco Small Business Support Center
    *please rate helpful posts*

  • EEM detector SNMP OID does not work

    i want to use EEM to detector policy-map class traffic rate, if class traffic is more than a number, trigger syslog message.
    below is my EEm script  on ASR1002 ( asr1000rp1-adventerprisek9.02.04.02.122-33.XND2.bin)
    event manager applet Rate-limit
     event snmp oid ".1.3.6.1.4.1.9.9.166.1.15.1.1.10.50.196608" get-type exact entry-op gt entry-val "100" poll-interval 10
     action 1.0 syslog msg "policy Rate-limit"
    but i did not see anything showing on syslog. from debug, i got below error msg :
    Jun  1 02:21:49.160 GMT: fh_fd_snmp_process_async
    Jun  1 02:21:49.160 GMT: fh_fd_snmp_process_poll_timer: re=0x3D144824, timer_type=POLL
    Jun  1 02:21:49.160 GMT: fh_fd_snmp_process_poll_timer: OID unavailable, value check skipped
    Jun  1 02:21:49.160 GMT: fh_fd_snmp_start_poll_timer: start_t=10000
    but i could get number from snmpwalk command :
    xchen-mac:~ xchen$ snmpwalk -v 2c -c <string> -m ALL stde1002a .1.3.6.1.4.1.9.9.166.1.15.1.1.10.50.196608
    SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.50.196608 = Counter64: 112938
    please help me where is wrong ?

    Duplicate post. 
    Go here:  https://supportforums.cisco.com/discussion/12219976/eem-detect-snmp-event-not-working

  • SNMP OID on Catalyst 3750G & 3650G

    Hallo guys,
    we have a couple of 3750Gs and sveral 3650Gs in my company lan, and I'm looking for the SNMP OIDs supported with which the very basic status of these switches can be retrieved. I mean generic status like the switch is being active, or experiencing technical error etc...
    I was advised to take 1.3.6.1.2.1.4.1.0 (IPForwarding), but I'm not sure if it is the right one. I'd appreciate if someone can give me a hint..
    Thank you!
    Li Lu

    Your request is pretty generic.  There are a lot of OIDs which can provide device health.  You might want to start with ifInOctets, ifOutOctets, ifInErrors, and ifOutErrors.  Those will give you per-port byte and error counts in both the ingress and egress directions.
    As for whole-device help, take a look at the moduleTable from the CISCO-STACK-MIB.  The object moduleStatus will tell you the status of the fixed switch itself.

  • Cisco ASA SNMP OIDs (show name, show vpn-sessiondb l2l)

    Hi all,
    I am trying to figure out the SNMP OIDs that is equivalent to the following ASA commands:
    show name
    show vpn-sessiondb l2l
    Thanks!

    im looking for the solution ? did u ever find out if this was possible?

  • What snmp OID to use to monitor control-plane of router

    Hi there!
    I've applied policy-maps on control-plane, based on cisco recomandation.
    Now i need to know, what snmp OID i've to use to monitor them (i'm using zabbix)
    Let me know.
    Regards!

    If you are using IOS which uses a policy-map to configure Control Plane Policing then you are asking in the wrong place as this forum is for IOS-XR not IOS but you can poll objects in the CISCO-CLASS-BASED-QOS-MIB::cbQosPoliceStatsTable (for example cbQosCMDropByte64, cbQosPoliceExceededByte64, cbQosPoliceConformedByte64).
    If you mean you have changed the LPTS policers to help protect the control-plane in IOS-XR then I believe there is currently no support for polling the counters via SNMP. See the section on monitoring in Xander's document https://supportforums.cisco.com/document/93456/asr9000xr-local-packet-transport-services-lpts-copp

  • ASA 5512 - monitor power supply status via snmp oid

    Device – ASA 5512 running 9.1(1).
    Show version:
    ASA-1# sh ver
    Cisco Adaptive Security Appliance Software Version 9.1(1)
    Device Manager Version 6.6(1)
    Compiled on Wed 28-Nov-12 11:15 PST by builders
    System image file is "disk0:/asa911-smp-k8.bin"
    Config file at boot was "startup-config"
    ASA-1 up 8 hours 38 mins
    Hardware:   ASA5512-K7, 4096 MB RAM, CPU Clarkdale 2792 MHz, 1 CPU (2 cores)
                ASA: 2048 MB RAM, 1 CPU (1 core)
    Internal ATA Compact Flash, 4096MB
    BIOS Flash MX25L6445E @ 0xffbb0000, 8192KB
    Issue: looking for a snmp OID to poll power supply status (Inbuilt Power Supply -  no redundant power supply in this scenario). Possibly what we see in show environment.
    CSE analysis:
    I tried using the OIDs belonging to CISCO-ENTITY-FRU-CONTROL-MIB , like cefcFRUPowerOperStatus and cefcFRUPowerAdminStatus but it didn’t return anything.
    NOTE: I have done all the snmp walks from the Linux server. Do I doubt it’s something to do from the snmp manager side.
    Couple of observations. The  CISCO-ENTITY-FRU-CONTROL-MIB talks about the field replaceable power supplies, so I doubt if it’s going to return the value for inbuilt power supply.
    Second, I noticed that there are snmp traps supported for power supply and threshold setting. See configuration below. Is it that only traps works for power supply and environment related details?
    Snmpwalk on cefcFRUPowerStatusEntry returns nothing:
    [root@tonbenso-eagle bin]# ./snmpwalk -v2c -c public 172.16.169.29 1.3.6.1.4.1.9.9.117.1.1.2.1
    SNMPv2-SMI::enterprises.9.9.117.1.1.2.1 = No Such Object available on this agent at this OID
    Snmpwalk on cefcFRUPowerOperStatus returns nothing:
    [root@tonbenso-eagle bin]# ./snmpwalk -v2c -c public 172.16.169.29 1.3.6.1.4.1.9.9.117.1.1.2.1.2
    SNMPv2-SMI::enterprises.9.9.117.1.1.2.1.2 = No Such Instance currently exists at this OID
    Snmpwalk on cefcFRUPowerAdminStatus returns nothing:
    [root@tonbenso-eagle bin]# ./snmpwalk -v2c -c public 172.16.169.29 1.3.6.1.4.1.9.9.117.1.1.2.1.1
    SNMPv2-SMI::enterprises.9.9.117.1.1.2.1.1 = No Such Instance currently exists at this OID
    [root@tonbenso-eagle bin]#
    login as: root
    I tried polling the ciscoEntityFRUControlMIB to see what all values it return. It just returned enterprises.9.9.117.1.3.1.0 = INTEGER: 2. Meaning cefcMIBEnableStatusNotification is FALSE (value 2). Meaning cefcModuleStatusChange, cefcPowerStatusChange, cefcFRUInserted, cefcFRURemoved, cefcUnrecognizedFRU and cefcFanTrayStatusChange are prevented from being sent.
    Snmpwalk on ciscoEntityFRUControlMIB
    [1]+  Stopped                 ./snmpwalk -v2c -c public 172.16.169.29
    [root@tonbenso-eagle bin]# ./snmpwalk -v2c -c public 172.16.169.29 1.3.6.1.4.1.9.9.117
    SNMPv2-SMI::enterprises.9.9.117.1.3.1.0 = INTEGER: 2
    Object
    cefcMIBEnableStatusNotification
    OID
    1.3.6.1.4.1.9.9.117.1.3.1
    Type
    TruthValue
    Permission
    read-write
    Status
    current
    MIB
    CISCO-ENTITY-FRU-CONTROL-MIB ;   -   View Supporting Images
    Description
    "This variable indicates whether the system
    produces the following notifications:
    cefcModuleStatusChange, cefcPowerStatusChange,
    cefcFRUInserted, cefcFRURemoved,
    cefcUnrecognizedFRU and cefcFanTrayStatusChange.
    A false value will prevent these notifications
    from being generated."
    Found couple of bugs:
    CSCty32558 – but then this is for 5585 and I see it is fixed in 8.4
    CSCul90037 – New state
    Show snmp-server oidlist:
    http://www-tac.cisco.com/Teams/ks/c3/getLargeFile.php?srId=632222409&fileName=20141030-013905_ASA-show-snmp-server-oidlist.txt
    Show tech:
    Sh run | in snmp:
    ASA-1# sh run | in snmp
    snmp-server host asa 172.18.123.228 community *****
    no snmp-server location
    no snmp-server contact
    snmp-server community *****
    snmp-server enable traps entity power-supply-presence power-supply-temperature  -----à I was talking about this trap above
    any help will be appreciated.

    Hi
    I've got an ASA with redundant power supplies. An ASA5585. So I have the need to monitor them. :-) So how can we do it?
    Also I've made a SNMP-Walk through the ASA v8.4(2)8 and it doesn't show up any ENV-MIB values. The
    1.3.6.1.4.1.9.9.13 tree is not available. Are you shure it's available on the ASA?
    Funny is also that the command "show snmp-server oidlist" from the 8.4 configuration guide is not available on the real CLI. I think the documentation guys were faster than the coders. ;-)
    Kind regards
    Roberto

  • Problem using the SNMP OID to query the in use and available ds0 channels?

    When using the MIB CISCO-POP-MGMT-MIB, particularly the OID .1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.0 or .1.3.6.1.4.1.9.10.19.1.1.4
    I have a pair of  2811 voice Gateways, both running IOS c2800nm-spservicesk9-mz.124-24.T4.bin
    The value for active calls from 1 of the gateways is correct.
    The value fromthe second is 4294967278
    Has anyone seen this issue before, could it be a problem with firmware on the E1 card?
    Can you check the firmware from the command line on the router.
    Thanks
    Colin

    Unfortunately, the POPM MIB is not fully supported on ISR platforms due to the triple numbering scheme of interfaces.  See this thread for an alternative: https://supportforums.cisco.com/message/662852#662852 .

  • SNMP OID for DHCP on Server 2012

    We recently installed Server 2012 standard on one of our servers and were trying to keep a graph of DHCP lease use. Anyway the OIDs for DHCP in Server 2008 R2 started with "1.3.6.1.4.1.311.1.3.2.1.1". If I try to snmpwalk these same OIDs on the new Server
    2012 (We the DHCP server configured and active), I get:
    Error in packet.
    Reason: (genError) A general failure occured
    Failed object: SNMPv2-SMI::enterprises.311.1.3.2.1.1
    I'm using SNMPwalk and I've never had a problem with this before. Any idea what would cause this? Thanks!
    Thanks!

    I'm having the same issue. OIDs just don't work against a 2012 DHCP server. I can snmpwalk other OIDs, just not DHCP :(
    Firewall has been disabled (and there were already adequate snmp rules allowing the traffic). Since I can query other OIDs, I'm ruling out firewall.
    Has this info been removed in 2012?

  • Is there a single snmp oid for flash and dram ?

    Does a single univeral oid (or 1 for flash and one for dram) exist that will provide total amount of flash and total amount of dram across all chassis families ?
    Thanks

    This link is your best bet:
    http://www.cisco.com/warp/public/477/SNMP/contiguous_memory.html

Maybe you are looking for