Header Only - DO NOT REMOVE - Extreme Networks

how to learn tcl ?


CAn anyone advise me how to learn tcl ?
there are some manual to use?

10 replies

Userlevel 6
Sorry for not preferred answer, but recommend to switch to Python. It is more powerful and available on EXOS and on Management also...
Userlevel 5
Pala, Zdenek wrote:

Sorry for not preferred answer, but recommend to switch to Python. It is more powerful and available on EXOS and on Management also...

Hello Visconti,

I agree with Pala.

I wrote some scripts with TCL for XMC, but Python is more powerful and you have the ability to use (import) prebuild packages.

You will find more support here for Python as for TCL.

According some surveys the usage of TCL is decreasing, too.

If you start from scratch Python is a better choice than TCL.

Best regards
Stephan
Pala, Zdenek wrote:

Sorry for not preferred answer, but recommend to switch to Python. It is more powerful and available on EXOS and on Management also...

ok so where can I find manuals of Python ?
Userlevel 5
Pala, Zdenek wrote:

Sorry for not preferred answer, but recommend to switch to Python. It is more powerful and available on EXOS and on Management also...

Hello Visconti,

for the first steps it is useful to have look for general courses in the web. There are a lot of different websites.

Here is a good point to start:
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
and here:
https://www.tutorialspoint.com/python/python_sending_email.htm

Best regards
Stephan


Userlevel 5
Pala, Zdenek wrote:

Sorry for not preferred answer, but recommend to switch to Python. It is more powerful and available on EXOS and on Management also...

Hello Visconti,

one further hint. If you have a first overview to Python you can have a look to the example scripts on XMC (see in "Tasks->Scripts). There are some easy and some more complex scripts.

With these scripts you will see how python works with XMC and the switches.

Here is a KB article with more infos especially for XOS:
https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-use-Python-on-EXOS

Best regards
Stephan
Userlevel 7
In addition to the recommendations above, I'd suggest taking a look at the scripts available on our GitHub.
https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS
You can learn a lot by using the scripts there as examples.
Ok I will begin to study Python but at this point I need also to learn how MIB tools work.
Userlevel 6
How is mib tools related to TCL? What do you want to learn on mib tools?
I am a beginner so I'm learning as much as possible..
Is there a to work with Python using a windows interface instead of DOS ?
For what purpose can I use MIB?
Userlevel 5
Visconti wrote:

I am a beginner so I'm learning as much as possible..
Is there a to work with Python using a windows interface instead of DOS ?
For what purpose can I use MIB?

Hello Visconti,

there are a lot of different IDE for python see here:
https://realpython.com/python-ides-code-editors-guide/

But in my opinion it is easier (for beginners, too) to use an editor with Python syntax highlighting (e. g. Notepad++) to write your programs and start it via DOS box.

In addition there is an interactive mode. If you start Python e. g. in the DOS box python prompts for an command and immediately returns the result or request the next input.

One further hint. Python 3 is the future but in the moment XMC (and a lot of other applications) uses Python 2.x. There are some differences between this versions.

In the MIB (Management Information Base) e. g. informations in network devices are saved. For example systemnames, location,ports, counter and much more.
A value is reverenced via an OID. The Netsight MIB-Tools can be used to request these values in an easy way. Other tools are called MIB browser. This tools walk thru the hole MIB an show all values.

Best regards
Stephan

Reply