10-29-2023 10:35 PM
Can I use SNMP to reload a switch port?
Solved! Go to Solution.
10-30-2023 12:50 AM
- Reloading a switchport is a concept that doesn't exist ; but you can do shutdown no-shutdown with SNMP :
Interface DOWN: snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 2
Interface UP : snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 1 (e.g.)
M.
10-30-2023 12:47 AM
Hello!
I don't belive there is an OID for "reseting" single ports.
BR
10-30-2023 12:50 AM
- Reloading a switchport is a concept that doesn't exist ; but you can do shutdown no-shutdown with SNMP :
Interface DOWN: snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 2
Interface UP : snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 1 (e.g.)
M.
10-30-2023 12:57 AM
snmpset -v 2c -c MyCommunityString 1.2.3.4 1.3.6.1.2.1.105.1.1.1.3.1.7 i 2
snmpset -v 2c -c MyCommunityString 1.2.3.4 1.3.6.1.2.1.105.1.1.1.3.1.7 i 1
I found such an example while doing research. Actually, I think it is exactly what I want, but when I use it, I encounter an error.
10-30-2023 01:05 AM
- You are not specifying the target hostname in that command ,
M.
10-30-2023 01:14 AM
The IP address 1.2.3.4 is an example written address. My own switch address is 192.168.1.50 and I use it by typing it.
10-30-2023 01:32 AM
- What a bit confusing because of the numeric lookalike with the following snmp oid in the commmand , what error do you get ?
M.
10-30-2023 01:57 AM
I solved the problem. Thank you very much for your reply
10-30-2023 02:46 AM
- That is a good , but if you solve a problem then share the knowledge on the community , then others can learn too
M.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide