Solved

Snmp walk & snmp write

Posted on 2013-12-17
2
383 Views
Last Modified: 2016-11-23
how should i let a dell powerconnect 2848 port down with snmpwalk command ?
0
Comment
Question by:3XLcom
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

830 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