Solved

Snmp walk & snmp write

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

Join & Write a Comment

Suggested Solutions

Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
Let’s list some of the technologies that enable smooth teleworking. 
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now