Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Snmp walk & snmp write

Posted on 2013-12-17
2
Medium Priority
?
403 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 2000 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Make the most of your online learning experience.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

886 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