Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know three methods (I am most fond of the first):</p> <p><strong>Option 1:</strong><br> A common way to approach something like this is automated telnet (or automated ssh) to send the appropriate commands. IOS is pretty standardized for the most part and works quite well this way- <br>TCL's <a href="http://en.wikipedia.org/wiki/Expect" rel="noreferrer">Expect</a> package is perfect for this kind of thing... I imagine there is a C# implementation.</p> <p>This works best if you are already familiar with IOS syntax.</p> <p><strong>Option 2:</strong><br> This is probably what you want:<br> IF-MIB::<a href="http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.2.1.2.2.1.7" rel="noreferrer">ifAdminStatus</a> is writable via SNMP (Here is an example using NET-SNMP):</p> <p>Interface UP:<br> snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 1</p> <p>Interface DOWN:<br> snmpset -v1 -c community hostname IF-MIB::ifAdminStatus.interface i 2</p> <p>(Where 'interface' is a digit that represents a interface, the value is available in the same MIB- do a walk on <a href="http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.2.1.2.2.1.2#oidContent" rel="noreferrer">1.3.6.1.2.1.2.2.1.2</a> to find the interface values and descriptions.)</p> <p>(Again there will likely be a C# implementation of snmpset you can leverage... and you must configure the SNMP communities on the device beforehand.)</p> <p><strong>Option 3:</strong><br> It is possible to use SNMP to <a href="http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml" rel="noreferrer">trigger</a> an upload or download of config via a TFTP server.<br> This is sometimes used in this sequence:<br> 1. download running config<br> 2. alter that config<br> 3. upload config<br> 4. copy the uploaded config to the running config (overwrites what's active on the device)<br></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload