Shutdown via SNMP
Hi,
I wanted to shutdown my Sun Solaris server by sending a SNMP-Set request to one of the Sun MIB variable. But there is not such variable. Therefore I was told that I have to write my own MIB and develop an agent supporting SNMPV2USEC.
But I have no more information and I'm a beginner in Unix. Could anybody give me more information about this and about how I could do that ?
Thanx
Omid
Hi
Just found my own answer...the value to shutdown the interface is not 0, it's 2. durrr
Thanks
J
Similar Messages
-
Shutdown wireless interface via SNMP Write?
Hi
We're working on writing a very simple web app to control a couple of access points via SNMP. I'm trying to shutdown the Wireless interface via SNMP WRITE with the following oid;
.1.3.6.1.2.1.2.2.1.7.1
and
.1.3.6.1.2.1.2.2.1.7.2
But its saying the integer of '0' is invalid (badValue, wrong type or length). I'm able to set other values like hostname, etc, so I know my string is correct...can anyone help? THanks
JasonHi
Just found my own answer...the value to shutdown the interface is not 0, it's 2. durrr
Thanks
J -
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,
MarioDepends 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.
-
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=treeHello 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! -
How to check current input/output rate on router subintenterface via SNMP?
How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
I cant find OID to make this with snmpwalk.
Or there is no way to check current load by this way? Only polling?
P.S. Ethernet subinterface, of course.
With great respect, S.A.Hi,
Try to use:
1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription -
Monitor OSPFv3 via SNMP not working - Is OSPFv3 MIB supported?
I need to be able to query the OSPFv3-MIB via SNMP to track the status of OSPFv3.
I have setup a 3945 router in a test lab network and I have configured it in an Ipv6 network with OSPFv3. The router has an active OSPFv3 neighbor and I can use that neighbor to send/receive data (the routing is working fine). However, when I walk the SNMP MIBs I don't get a response for the OSPFv3-MIB. According to the Cisco SNMP Object Navigator this MIB should be located at 1.3.6.1.3.102.*. Below is an example trying to query a particular OID from the OSPFv3 MIB.
C:\>snmpwalk -v 2c -c public 197.16.18.1 1.3.6.1.3.102.1.5.1.8
SNMPv2-SMI::experimental.102.1.5.1.8 = No Such Object available on this agent at this OID
I can walk other parts of the MIB (For example the OSPFv2 MIB) and get responses, so I know the router has SNMP turned on.
Looking at the Cisco IOS Mib Locator tool (http://tools.cisco.com/ITDIT/MIBS/MainServlet?IMAGE_NAME=c3900-universalk9-mz.SPA.152-4.M3.bin) for the current software version I am running (c3900-universalk9-mz.SPA.152-4.M3.bin) on a 3945 router it claims that the OSPFv3 MIB is supported in this image.
Maybe I need to configure something else? Maybe my SW doesn't really support this MIB? Could it be that I have to query the router over Ipv6 to get the OSPFv3-MIB (I have only been trying Ipv4)?Hi ,
As Vinod suggested , you need to configure the "SNMP CONTEXT"
Configure:
==========
Basic configuration consists of 4 steps:
Configure mapping between VRF name and SNMP context :
snmp-server vrf <vrf_1> context <context_1>
Create community string corresponding to the VRF :
snmp-server community <vrf_1> RW
Define context string
snmp-server context <context_1>
Configure mapping between context and community:
snmp-server community-map <vrf_1> context <context_1>
(optional) Configure snmp server traps for this VRF community
snmp-server host <IP> traps version 2c <vrf_1>
For e.g:
snmp-server vrf miki
context miki_bgp
snmp-server community miki RW
snmp-server context miki_bgp
snmp-server community-map miki context miki_bgp
Hope it will help
Thanks-
Afroz
***Ratings Encourages Contributors *** -
How to restart base station via SNMP ?
How to restart airport extreme via SNMP, with snmpwalk for example ? I can get a lot of information from base station with snmpwalk and airport-mib but still mystery what to poke when I want reboot base station over network.
You are likely forgetting a step.
Open AirPort Utility
Click on the Time Capsule icon
Click Edit in the small window that appears
Now click the Base Station menu.....top of the screen....not the Base Station "tab" in the center of the screen
Click Restart -
No ifIndex table when querying via SNMP
Hello, looking for suggestions before opening up a TAC case.
Just received a Nexus 3000 with NX-OS 6.0(2)U2(1) and when I attempt to walk the ifTable via SNMP the ifIndex table is not present. Walking the ifIndex table itself results in "IF-MIB::ifIndex = No Such Instance currently exists at this OID". show interface snmp-ifindex is fine and the rest of the ifTable displays properly.
My switch config is just a basic RO community with no ACL's or anything yet. A pair of the same switches with NX-OS 5.0(3)U5(1a) display the table no problem.
Any suggestions, or has anyone else seen this?Did you navigate the FireFox plugin to the DB file that is in the Simulator app bundle:
/Users/YOURUSERID/Library/Application Support/iPhone Simulator/User/Applications/SYSTEMGENERATED_NAME/YOURAPP.app
or
/Users/YOURUSERID/Library/Application Support/iPhone Simulator/User/Applications/SYSTEMGENERATEDNAME/Documents
Message was edited by: xnav -
Incorrect bandwidth values via snmp?
I have two cat 2900 16 port switches, for some reason when i read the bandwidth utiliz. values via snmp (PRTG, and MRTG give same results) i only show a steady 1-1.5 kbps up and down flow with occasianal spikes of the upstream to 2 or 3kbps..this is the same across all ports, now if i send something across the switch, nothing changes, nor is any other traffic i throw at the switch reflected... the peculiar thing is if i access the switch's web interface while conducting a 10.5 mbit transfer across the switch, i will see a spike of correct values (as i read on the hosts machines) reported by the snmp agents but only for 2 or 3 reads across 5 second periods..then its back to what i described again.. I've done factory resets on both and both of these snmp agents correctly read the bandwidht values from my dell and intel switches so i've ruled the agents out..
any ideas?
thanks, joeThanks for the quick reply but thats not the problem. its not a units issue as i see somekind of traffic but when i'm maxing out the 100mbps port i see no change in the snmp reported graphs..but like i said i will see the actual values if i'm reloading or access the switches web interface.
this is such a weird issue..and its affecting two swithces that are the same model but from different places.
any ideas? -
TCL or EEM scripts to do TDR testing via SNMP?
Does anyone know of any EEM or TCL scripts to do TDR testing via SNMP? Is it even possible?
I do not, and I didn't see anything obvious on Cisco Beyond. There is a CISCO-CABLE-DIAG-MIB which could be used to start tests, and get their results. This MIB is supported on a few different device types, and could be used in conjunction with EEM to start and monitor TDR tests.
-
How to reset Dot11Radio interface via SNMP
Hi guys,
Please tell me how i RESET my AP's radio interface via SNMP? It's mean down and up right behind sb.
I'm using several SNMP commands for manage to our Cisco's. But I'm unsuccessful at this.. Please help me. Thakns.Isn't there any response? isn't there any Cisco Specialist at there???
-
Monitor the # of registered AP's on a 2504 via SNMP?
Does anyone know the OID to determine the number of registered AP's on a WLC (specifically the AIR-CT2504).
I've got both of the Airespace MIBs and have browsed through them but I can't seem to find the correct location. I can find a list of all of the AP's registered but our monitoring software doesn't have the ability to 'count' that index. As such, I'm looking for a count/summation of the total number of registered AP's via SNMP.
Thanks!
BrianIt's an old post, but I had the same question. After some research I found a simple answer...
Use this OID: .1.3.6.1.4.1.9.9.618.1.8.4.0
If you want to also get the total number of Clients, use: .1.3.6.1.4.1.9.9.618.1.8.12.0
It does not work on 7.0 - it does on 7.6 and 8.0.
Best regards
Christoph -
Port counters via snmp on WRVS4400N
Hi.
I'm using SNMP to read the packet and byte counters on each port on my WRVS4400N. However, I just can't figure out what interface is what port. Also, can I see the total traffic on all ports together as well as the wireless traffic via snmp, which I can see in the web admin interface?
An snmpwalk gives me the following interfaces:
IF-MIB::ifDescr.1 lo
IF-MIB::ifDescr.2 eth0
IF-MIB::ifDescr.3 eth1
IF-MIB::ifDescr.4 eth2
IF-MIB::ifDescr.5 teql0
IF-MIB::ifDescr.6 sit0
IF-MIB::ifDescr.7 tunl0
IF-MIB::ifDescr.8 gre0
IF-MIB::ifDescr.9 ipsec0
IF-MIB::ifDescr.10 ipsec1
IF-MIB::ifDescr.11 ipsec2
IF-MIB::ifDescr.12 ipsec3
IF-MIB::ifDescr.13 br0
I have equipment connected to LAN port 1, 2 and 4 as well as wifi clients. And on the WAN port of course. This is what I get in terms of traffic via snmp (only listing ifInOctets here)
IF-MIB::ifInOctets.1 13454252
IF-MIB::ifInOctets.2 1112133396
IF-MIB::ifInOctets.3 1436498580
IF-MIB::ifInOctets.4 11981231
IF-MIB::ifInOctets.5 0
IF-MIB::ifInOctets.6 0
IF-MIB::ifInOctets.7 0
IF-MIB::ifInOctets.8 0
IF-MIB::ifInOctets.9 0
IF-MIB::ifInOctets.10 0
IF-MIB::ifInOctets.11 0
IF-MIB::ifInOctets.12 0
IF-MIB::ifInOctets.13 1080353959
Any ideas here is appreciated. Thanks.
/ThomasThe RFC1213 Management Information Base for Network Management of TCP/IP-based internets: MIB-II describe the ifDescr value as:
ifDescr OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
ACCESS read-only
STATUS mandatory
DESCRIPTION
"A textual string containing information about the interface. This string should include the name of the manufacturer, the product name and the version of the hardware interface."
There is no standard values for the interface description and you will have to guess from the given name and device caractheristic.
You can also check the OID .1.3.6.1.2.1.2.2.1.3 ifType that can give you a better idea about what it is.
From what you sent we can guess that:
eth0-2 are three Ethernet Interface. But where is the 4th Ethernet interface? Probably it has another name
telq0 should be a load balancing or agregating virtual interface, I guess used for the QoS supported by the router
ipsec0-3 maybe the virtual interface for the ipsec traffic
tunl0 probably the VPN virtual interface
For the reste... you will have to dig a little
I hope this help
Minds are like parachutes, they only function when they are open -
Config copy via snmp - value out of range
Hi,
I have problem with configuration file copy via snmp on cisco AP 1121. I use this mib CISCO-CONFIG-COPY-MIB.
I use this oid's and i get error ".1.3.6.1.4.1.9.9.96.1.1.1.1.16.333: Value out of range (<tftp_server_ip>)""
snmpset -v1 -c <rwcommunity> <ap_ip> .1.3.6.1.4.1.9.9.96.1.1.1.1.2.333 i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.333 i 4
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.333 i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.16.333 inetaddress "<tftp_server_ip>"
.1.3.6.1.4.1.9.9.96.1.1.1.1.16.333: Value out of range (<tftp_server_ip>)
Any Ideas? Thanks for help.Hi,
I have problem with configuration file copy via snmp on cisco AP 1121. I use this mib CISCO-CONFIG-COPY-MIB.
I use this oid's and i get error ".1.3.6.1.4.1.9.9.96.1.1.1.1.16.333: Value out of range (<tftp_server_ip>)""
snmpset -v1 -c <rwcommunity> <ap_ip> .1.3.6.1.4.1.9.9.96.1.1.1.1.2.333 i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.333 i 4
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.333 i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.16.333 inetaddress "<tftp_server_ip>"
.1.3.6.1.4.1.9.9.96.1.1.1.1.16.333: Value out of range (<tftp_server_ip>)
Any Ideas? Thanks for help. -
MIBS to Monitor Etherchannel and trunks via SNMP
I would like to monitor the status of etherchannel and trunk configurations in 6500 Catalyst switches running both CATOS and IOS. I would like to understand the specific mibs/OIDS that should be monitored for etherchannels and trunks. I am trying to get a better handle on tracking the etherchannels and trunk dynamically and then understanding when the ports are having issues (up/down and errors). I need to understand how to differentiate these type of ports from regular access ports.
Thanks,
TimHi Tim,
what exactly do you want to query via SNMP?
For an (PAgP) Etherchannel, the member-interfaces might be interesting:
https://supportforums.cisco.com/message/3957914#3957914
For a trunk, you could start with the operational mode, depending on the platform you can use:
vlanTrunkPortDynamicStatus (CISCO-VTP-MIB):
vlanTrunkPortDynamicStatus.49 = notTrunking
vlanTrunkPortDynamicStatus.50 = trunking
vlanPortIslOperStatus (CISCO-STACK-MIB):
vlanPortIslOperStatus.13.43 = notTrunking
vlanPortIslOperStatus.13.44 = trunking
Hope that helps
Rolf
Maybe you are looking for
-
Hi, In my environment, I am installing OIM 9.0.3, on Oracle as database and JBoss as the application server. My installation went successful and I did able to login to the Oracle Identity Manager Online tool by using the admin account "xelsysadm". Bu
-
i have problem with my iphone, it;s never lock and not read sim card, before reinstaling 6.01, thnx juliany
-
Creating an Array based on values in an ArrayList
How can I create an Array object which its values need to be obtained by iterating through an ArrayList and getting them one by one. In Detail: - I have an ArrayList of a StudentInfo object - Each StudentInfo contains an 'age' attribute. - I want to
-
Hi, I wanted to display my company logo in the front screen in sAP,where we enter the user name and password I know that we can add text in the front screen, but dont know of how to add image in the front screen Please help
-
Is it possible to make a movie with QuickTime Pro?
I post this here cuz i posted it in the "QuickTime" Section and like...no one answered so maybe somone here will answer me... is it possible tom make image slideshows with music then put this on a CD or a DVD and watch it on you DVD player? PLease...