I know three methods (I like the first most):
Option 1:
A common way to approach something like this is to use automatic telnet (or automatic ssh) to send the appropriate commands. IOS is pretty standardized for the most part and works great in that direction.
The TCL Expect package is ideal for this kind of thing ... I assume there is a C # implementation.
This works best if you are already familiar with the IOS syntax.
2:
, , , :
IF-MIB:: ifAdminStatus SNMP
( NET-SNMP):
UP:
snmpset -v1 -c IF-MIB:: ifAdminStatus.interface 1
DOWN:
snmpset -v1 -c IF-MIB:: ifAdminStatus.interface 2
( "" - , , MIB - 1.3.6.1.2.1.2.2.1.2, .)
( , , # snmpset, ...
SNMP .)
3:
SNMP TFTP-.
:
1.
2.
3.
4. ( , )