Vytah z originalu http://www.cisco.com/en/US/docs/ios/12_3t/12_3t2/feature/guide/gt_tcl.html

Cisco IOS tcl

IOS podporuje od verze 12.2(33)SXH skriptovaci jazyk tcl v8.3.4

Nektere prikazy se ovsem chovaji odlisne.

PrikazKlicove slovoArgumentPodporovanoKomentar
aftermsscriptCastecneWhen the CLI tclsh command is used, there is no event loop implemented unless Embedded Syslog Manager (ESM) is active on the same router. Commands entered using the after Tcl command will not run unless forced using the update command. Sleep mode (the after command) works only with the ms keyword.
file-timeatimeNeThe optional -time keyword to set the file access time is not supported in Cisco IOS software.
file-timemtimeNeThe optional -time keyword to set the file modification time is not supported in Cisco IOS software.
fileevent CastecneWhen the CLI tclsh command is used, there is no event loop implemented unless Embedded Syslog Manager (ESM) is active on the same router. Commands entered using the fileevent Tcl command will not run unless forced using the update command.
history!n CastecneThe !n shortcut does not work in Cisco IOS software. Use the history Tcl command with the redo n keyword.
load NeWhen the CLI load command is used, an error message stating „dynamic loading not available on this system“ is displayed.

Cisco IOS Tcl Rozsireni

PrikazPopis
ios_configSpusti IOS CLI konfiguracni mod
log_userToggles Tcl command output under Tcl configuration mode
typeaheadVypise text na standartni vystup zarizeni

Cisco IOS Tcl rozsireni pro pristup k SNMP MIB

snmp_getbulk

snmp_getbulk community-string non-repeaters max-repetitions oid [oid2 oid3…]

Podobne jak SNMP prikaz getbulk ziska velkou sadu OID

  • community-string komunita
  • non-repeaters argument pocet objektu ktere mohou byt ziskany pomoci get-next
  • max-repetitions maximalni pocet get-next operaci pro ziskani objektu
  • oid object ID(cka) ktera chcete ziskat

snmp_getid

snmp_getid community-string

Retrieves the following variables from the SNMP entity on the router:

  • sysDescr.0
  • sysObjectID.0
  • sysUpTime.0
  • sysContact.0
  • sysName.0
  • sysLocation.0

snmp_getnext

snmp_getnext community-string oid [oid2 oid3…]

Retrieves a set of individual variables from the SNMP entity on the router. This command is similar to the SNMP getnext command. The syntax is in the following format:

snmp_getone

snmp_getone community-string oid [oid2 oid3…]

Retrieves a set of individual variables from the SNMP entity on the router. This command is similar to the SNMP getone command. The syntax is in the following format:

snmp_setany

snmp_setany community-string oid type val [oid2 type2 val2…]

Retrieves the current values of the specified variables and then performs a set request on the variables. This command is similar to the SNMP setany command. The syntax is in the following format:

Use the type argument to specify the type of object to retrieve. The type can be one of the following:

–-i—Integer. A 32-bit number used to specify a numbered type within the context of a managed object. For example, to set the operational status of a router interface, 1 represents up and 2 represents down.

–-u—Unsigned32. A 32-bit number used to represent decimal values in the range from 0 to 232 - 1 inclusive.

–-c—Counter32. A 32-bit number with a minimum value of 0 and a maximum value of 232 - 1. When the maximum value is reached, the counter resets to 0 and starts again.

–-g—Gauge. A 32-bit number with a minimum value of 0 and a maximum value of 232 - 1. The number can increase or decrease at will. For example, the interface speed on a router is measured using a gauge object type.

–-o—Octet string. An octet string—in hex notation—used to represent physical addresses.

–-d—Display string. An octet string—in text notation—used to represent text strings.

–-ipv4—IP version 4 address.

–-oid—Object ID. Use the val argument to specify the value of object ID(s) to retrieve.


Personal Tools