Solved

Snmp walk & snmp write

Posted on 2013-12-17
2
389 Views
Last Modified: 2016-11-23
how should i let a dell powerconnect 2848 port down with snmpwalk command ?
0
Comment
Question by:3XLcom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
aarie earned 500 total points
ID: 39725146
You can't do it by using snmpwalk. The snmpwalk command is used for retrieving information from the switch in bulk (so multiple OIDs are queried for their values). You will need to use the snmpset command in order to tell the switch to change the value for a particular OID. Unfortunately I do not know which OID you will need to change the value of in order to change the interface status to 'enabled' or 'shutdown'. In a Cisco environment, it would be this variable:
.1.3.6.1.2.1.2.2.1.7.<interface_index_nr_goes_here>

The way to use this is something like this:
snmpset -v<snmp_version_to_use> -c<community_string> <switch_ip_or_name> .1.3.6.1.2.1.2.2.1.7.<if_index> i 2

So, if I want to use snmp version 2c, my community string is MyCommunityString, the switch on which I want to disable a port is MySwitch (provided that name can be resolved into it's corresponding ip address) and the interface index number is 123, the command would look like this:
snmpset -v2c -cMyCommunityString MySwitch .1.3.6.1.2.1.2.2.1.7.123 i 2

The 'i 2' at the end of the command line tells the snmpset command that the OID to change is of type integer and the value to set it to is 2 (which in Cisco terms is used to disable the interface).

Hope this puts you on the right track.

Kind regards,

Arjan.
0
 

Author Closing Comment

by:3XLcom
ID: 39733842
wonderfull answer thanks
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question