Configure 2811 via snmp
Is is possible to configure a 2811 router with
HWIC9ESW module via snmp?
I have snmp enabled and set-up on FE0/0.
Thanks in advance
GD
Gary,
That sounds at least partly doable. For interface up, you could snmpset ifAdminStatus.[ifIndex number of the interface] (1.3.6.1.2.1.2.2.1.7.ifIndex) to 1 (up). As for PoE on the 2800's HWIC, it comes down to if Cisco has included support for pethPsePortAdminEnable or an equivalent OID.
Similar Messages
-
Check running configuration update via SNMP
Is it possible to get the last configuration change of running config via SNMPGET ? I would like to monitor it here...
Last configuration change at 10:37:58 BRASIL Wed Sep 25 2013 by root
Thanks,Hi,
look at that object: CISCO-CONFIG-MAN-MIB::ccmHistoryRunningLastChanged
Note that you have to subtract sysUpTime - the return-value of ccmHistoryRunningLastChanged, because the return-value is a timestamp of sysUpTime.
Example:
enterprises.9.9.43.1.1.1.0 = Timeticks: (242759533) 28 days, 2:19:55.33
system.sysUpTime.0 = Timeticks: (285324883) 33 days, 0:34:08.83
=> Last Change of the Running-Config ~ 5 days ago
HTH
Rolf -
I'd like to configure my AP350 via SNMP. In particular I need to configure on the AP a RADIUS server for athentication.
Does anyone know which are the MIBs to use to enable and disable the use of the RADIUS server?
Thanks in advance for your time.Hi !
in br340v8_80.mib wrote:
cfgRegNvTabBkbnDst OBJECT-TYPE
SYNTAX INTEGER {
off(1),
discard(2),
forward(3)
ACCESS read-write
STATUS mandatory
DESCRIPTION
"If set to off, filtering/forwarding will be determined by
the equivalent setting in the filter defaults. Otherwise
the variable determines whether those packets from the
backbone LAN, whose destination address this entry
will be discarded or forwarded.
On the 610 this is only valid for multicast entries. On a 620
this is valid for all entries."
::= { cfgRegNvTableEntry 4 }
cfgRegNvTabRadDst OBJECT-TYPE
SYNTAX INTEGER {
off(1),
discard(2),
forward(3)
ACCESS read-write
STATUS mandatory
DESCRIPTION
"If set to off, filtering/forwarding will be determined by
the equivalent setting in the filter defaults. Otherwise
the variable determines whether those packets from the
radio, whose destination address matches this entry
will be discarded or forwarded.
On the 610 this is only valid for multicast entries. On a 620
this is valid for all entries."
::= { cfgRegNvTableEntry 5 }
therefore in particular filters can change via SNMP! -
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 *** -
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 -
Is there opportunity to backup WLC6 via SNMP
Hello!
I have NM-AIR-WLC6-K9 in Cisco 2821. Is there opprotunity to retreive configuration via SNMP as from Cisco Catalyst 2960?
Kind regards,
ElladEllad,
WCS and NCS use SNMP to fetch the configuration from WLCs. This happens when you manually go to Configure Controllers --> Refresh Config from Controller from the WCS/NCS dashboard. (You can also use Background Tasks to automatically backup controller configs on a schedule, which is done using a combination of SNMP and T/FTP).
If you look at a packet sniff of the traffic between the controller and WCS/NCS during this process you will see several hundred SNMP Gets and Responses. What appears to be happening is that the configuration is being pulled piece by piece from the controller, and not as one gigantic configuration file in a single SNMP query. Based on what I see in the sniffer capture, I think it would be a significant undertaking to try to do this with a 3rd party tool or a custom script.
As an alternative, you may also find automated backups using SSH scripts and TFTP or FTP, which we recently talked about in another discussion:
https://supportforums.cisco.com/message/3577890#3577890
This is what the Controller Configuration Backup background task edit window looks like in NCS:
Justin -
N5K - monitor vPC status via SNMP
Can I monitor a vPC via SNMP?
I'm interested in "Peer status", "vPC keep-alive status", "Configuration consistency status" and "vPC role".
N5K1(config-if)# show vpc
Legend:
(*) - local vPC is down, forwarding via vPC peer-link
vPC domain id : 1
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status: success
vPC role : primaryGood question, I also want to know how we can do that.
Sent from Cisco Technical Support iPad App -
Polling port-profile max-ports via snmp
Team,
We have been caught out by the default setting of max-ports=32 in our cloud environment. Our processes dictate that we cannot simply go and change this setting across all customers so instead we need to monitor the setting for any customers geting clsoe to 32.
Can someone tell me if there's an oid to query port-profile information via snmp for a Nexus 1000V?
I've done some simple searching and couldn't find it.
Failing that, do we have to execute a script to login and do a show run?
RyanBRIDGE-MIB has the OIDs to monitor RSTP.
topologyChange NOTIFICATION-TYPE
-- OBJECTS { }
STATUS current
DESCRIPTION
"A topologyChange trap is sent by a bridge when any of
its configured ports transitions from the Learning state
to the Forwarding state, or from the Forwarding state to
the Blocking state. The trap is not sent if a newRoot
trap is sent for the same transition. Implementation of
this trap is optional."
::= { dot1dNotifications 2 }
dot1dStpPortState OBJECT-TYPE
SYNTAX INTEGER {
disabled(1),
blocking(2),
listening(3),
learning(4),
forwarding(5),
broken(6)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The port's current state, as defined by application of
the Spanning Tree Protocol. This state controls what
action a port takes on reception of a frame. If the
bridge has detected a port that is malfunctioning, it
will place that port into the broken(6) state. For
ports that are disabled (see dot1dStpPortEnable), this
object will have a value of disabled(1)."
REFERENCE
"IEEE 802.1D-1998: clause 8.5.5.2"
::= { dot1dStpPortEntry 3 } -
Hi
I have a SA520 configured in load balancing. It is possible to monitor the WAN status via SNMP?
Thanks
MarcoI noticed that Staffan gave a good answer over at Stackoverflow. I'm making a copy of it here if somebody else is searching the forum and would like to know.
"The details are on [this webpage|http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html]. In short, what you have to do is:
* Start with -Dcom.sun.management.snmp.port=portNum
* Copy the ACL template file in JRE_HOME/lib/management/snmp.acl.template to JRE_HOME/lib/management/snmp.acl, and make it readable and writeable by only the owner." -
Hi
Has anybody ever tried resetting a vty or the enable secret password via SNMP? I've read that there is something you can do with pullling back the running-config and comparing it to startup-config....via snmp assuming you know the RW Community-string.
But I was sure there was another method available whereby you could (if you knew snmp community-name) reset the passwords remotely using snmp?
Regards
MaryHello Mary,
This is the example I have for you:
We need to make is to create a new ROW in the device within the ccCopyTable Mib, where all the values are going to be stored in order to replace the line we want in the configuration:
The procedure to recover password via snmp only, instead of referencing a file with an entire configuration the contents of the file would be
simply the password information that you want to change to. It won't leave you with a one line config. It will just overwrite the one line
that is in your current running config. The rest should stay the same.
For example, create a .txt file with just these 2 lines in the TFTP boot directory of your TFTP application:
enable password newpass
end
*** Note: the end statement is totally necessary.
Step 1 (Creating the Row).
================================
Please look into MIB ccCopyEntryRowStatus
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.14.222 i 5
NOTE: var_type is "i" for Interger
Value is 5 for createAndWait
In the MIB the last .222 is the entry index in the table. If the row is occupied then please destroy it first and try to create it and wait again.
Step 2 (Setting the protocol).
================================
We are going to use TFTP to transfer the device configuration with the OID ccCopyProtocol.
Please look into MIB ccCopyProtocol
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.2.222 i 1
NOTE: Value is 1 for tftp
Step 3 (Specifying the Source).
================================
We are going to specify that what we want to copy is the file in your PC.
Please look into MIB ccCopySourceFileType
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.3.222 i 1
NOTE: Value is 1 for networkFile
Step 4 (Specifying the Destination).
================================
Once we have specified the Source, we need to tell what would be the destination to where
we are copying the file.
Please look into MIB ccCopyDestFileType
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.4.222 i 4
NOTE: Value is 4 for runningConfig
Step 5 (TFTP Server's Address).
================================
Let's now setup the IP address of the server where the TFTP service is currently running and where the configuration is going to get copied.
Please look into MIB ccCopyServerAddress
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.5.222 a
NOTE: var_type is "a" for IP address
Value is the TFTP server's IP address
Step 6 (Specifying the File name in the TFTP Server).
================================
Now, we need to tell the name of the file where the data is going to be sent to or stored (the one you create with the 2 lines).
Please look into MIB ccCopyFileName
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.6.222 s
NOTE: var_type is "s" for Display String. Sometimes the name could need " "
Value is the file name in the TFTP boot previously created with full privileges
Step 7 (Deploy the settings and run it).
================================
Last thing is deploying the settings so the config archive takes place. Before activating the row 222, we must double-check that the TFTP service is up and running.
Is the service running?
If yes, then activate the row with the following snmpset.
Please look into MIB ccCopyEntryRowStatus
snmpset -v 2c -c private 10.10.10.2 1.3.6.1.4.1.9.9.96.1.1.1.1.14.222 i 1
NOTE: Value is 1 for active.
Step 8 (Check the results).
================================
Check if the transfer was successful.
do a snmpwalk to 1.3.6.1.4.1.9.9.96.1.1.1.1.10.222
Results:
1:waiting
2:running
3:successful
4:failed
Step 9.(Try to access the device).
================================
This should be more than enough to change an specific line in the configuration using SNMP.
I hope this answered your question.
Best Regards,
Angel V. -
I am trying to manage WEP keys via SNMP on my Aironet1200-IOS based AP.
The cd11IfVlanEncryptKeyTable holds the WEP data configured via the WEB interface.
Using SNMP I can delete table rows and modify existing entries, but I cannot create new entries.
Anybody know what I am doing wrong?
Thanks
Ashleyb
(I have attached the script I used to try and update the keys)Hi Ashleyb,
I've just came across your problem and I know
it's been loooong :) time you posted it but perhaps
that might be a kind of hlep for you.
I think what you are doing wrong is trying to create
a row in a table 'partially' whereas it should be
created 'at one go' using just single SNMP command like this one below;
# snmpset -mall -v1 -c Admin 10.0.0.197
.1.3.6.1.4.1.9.9.272.1.1.1.9.1.5.1.5.2 i 4 \
.1.3.6.1.4.1.9.9.272.1.1.1.9.1.3.1.5.2 u 13 \
.1.3.6.1.4.1.9.9.272.1.1.1.9.1.4.1.5.2 x 12345678901234567890123456 \ .1.3.6.1.4.1.9.9.272.1.1.1.9.1.6.1.5.2 i 2
Best Regards
Pawel Szczuka -
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
Maybe you are looking for
-
Step- by- Step on How to Load Excel data into Crystal Reports?
Hi Friends, Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance. Vijay
-
[SOLVED] Trouble Running Ksniffer as root
so i installed ksniffer on my kde desktop... if i run ksniffer it runs fine however when i run sudo ksniffer i get this message and it crashes. kdeinit: Can't connect to the X Server. kdeinit: Might not terminate at end of session. No protocol specif
-
Hi All - hoping someone will be able to help me, after a failed attempt with the new Canon MP960 (it was having severe colour reproduction issues when printing artwork from illustrator and InDesign, and Canon have no solutions at this stage...so the
-
Hi, I used older versions of iMovie, but the newer ones have changed so! I am preparing a slideshow in Imovie "11 (version 9) I have all of the photos in iPhoto and they are displaying on the lower right of my window. As I drag them into the project,
-
Hi, I am trying to merge data into PDF using FDF toolkit and seem to be having trouble viewing the document in IE 6.0. I tried setting the content type on the response to 'application/vnd.fdf' Would appreciate if i can get some input on this. Thanks.