|
|
Suppose that a PPP interface attached to a router is reporting many errors. The administrator can mark the link as being ``down'' while the phone company checks the line. SNMP can be used to do this remotely.
First, the error count can be obtained with snmpstat.
# snmpstat -i paris public Interface statistics Type InOctet InPckts InErrs IfMtu Name Address Speed OutOctet OutPckts OutErrs OutQlen net1 paris enetv2 18952186 18239 7036 1500 02000000ec6c 10000000 4392148 4183 147 0 lo0 localhost loop 5832 64 0 2048 0 5832 64 0 0 ppp0 paris ppp 3682304 14384 4800 296 9600 2122240 8290 2138 0Next, the interface can be marked as being ``down'' using setany.
# setany paris public ifAdminStatus.3 -i 2 Name: ifAdminStatus.3 Value: 2When the line is repaired, the interface can be reactivated in a similar fashion.
See also: