DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring the Simple Network Management Protocol (SNMP)

Marking an interface down

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     0
Next, the interface can be marked as being ``down'' using setany.
   # setany paris public ifAdminStatus.3 -i 2
   Name: ifAdminStatus.3
   Value: 2
When the line is repaired, the interface can be reactivated in a similar fashion.

See also:



Next topic: Removing an incorrect ARP entry
Previous topic: Obtaining remote system contacts

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003