>I'm starting to mess around with SNMP for user monitoring, and to check
>for multiple logins.
>
>The monitoring is working fine, but is there an SNMP set/write I can use
>to reset a port? Right now, all I can do is log the multiple logins, or
>call a script to boot the individual user off.
This one works for me (from a perl script):
$snmpset = "/usr/bin/snmpset -v 1 -q";
$pmreset = "$snmpset $NASIPADDRESS private 2.2.1.7.".($NASPORT+2)." i 2 > /dev/null";
system($pmreset);
2.2.1.7 is interfaces.ifTable.ifEntry.ifAdminStatus from livingston.mib
and it's ACCESS is read-write.
Regards,
Mike
[ Michael J. Maravillo Philippines Online ]
[ System Administrator PGP KeyID: 470AED9D InfoDyne, Incorporated ]
[ http://www.philonline.com/~mmj/ (632) 890-0204 ]
-
To unsubscribe, email 'majordomo@livingston.com' with
'unsubscribe portmaster-users' in the body of the message.