Solved

Snmp walk & snmp write

Posted on 2013-12-17
2
381 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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…

772 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