> Anyone resetting ports on pm2/pm3's using SNMP? If so, whats the set syntax
> you're using? Seems like it would be a better way than telnetting in and
> resetting the port manually (yes, I use pm_reset, but I want to avoid the
> "telnet" part of whatever I use).
>
snmpset -v 1 pm.yourisp.com communitystring \
interfaces.ifTable.ifEntry.ifAdminStatus.XX i 2
(the above is all on one line and is for UCD SNMP syntax...ymmv).
setting ifAdminStatus to 1 = up, 2=down (hangs up modem if it was
previously up) and 3 = "testing"
You need to figure out the value of XX by getting the username attached to
the port using
snmpwalk -v 1 pm.yourisp.com communitystring .1.3.6.1.4.1.307.3.2.1.1.1.4
The last two digits correspond to the SNMP interface number...
-- John-David Childs (JC612) Enterprise Internet Solutions System Administrator @denver.net/Internet-Coach/@ronan.net & Network Engineer 1039 S. Parker Rd. #I-8 Denver, CO 80231 As of this^H^H^H^H next week, passwords will be entered in Morse code. - To unsubscribe, email 'majordomo@livingston.com' with 'unsubscribe portmaster-users' in the body of the message.