how to learn tcl ?

  • 0
  • 2
  • Question
  • Updated 3 weeks ago
CAn anyone advise me how to learn tcl ?
there are some manual to use?

Photo of Visconti

Visconti

  • 764 Points 500 badge 2x thumb

Posted 3 weeks ago

  • 0
  • 2
Photo of Pala, Zdenek

Pala, Zdenek, Employee

  • 9,834 Points 5k badge 2x thumb
Sorry for not preferred answer, but recommend to switch to Python. It is more powerful and available on EXOS and on Management also...
Photo of SH

SH

  • 4,802 Points 4k badge 2x thumb
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
Photo of Visconti

Visconti

  • 764 Points 500 badge 2x thumb
ok so where can I find manuals of Python ?
Photo of SH

SH

  • 4,802 Points 4k badge 2x thumb
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


Photo of SH

SH

  • 4,802 Points 4k badge 2x thumb
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
Photo of Drew C.

Drew C., Community Manager

  • 40,206 Points 20k badge 2x thumb
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.
(Edited)
Photo of Visconti

Visconti

  • 764 Points 500 badge 2x thumb
Ok I will begin to study Python but at this point I need also to learn how MIB tools work.
Photo of Pala, Zdenek

Pala, Zdenek, Employee

  • 9,834 Points 5k badge 2x thumb
How is mib tools related to TCL?

What do you want to learn on mib tools?
Photo of Visconti

Visconti

  • 764 Points 500 badge 2x thumb
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?


Photo of SH

SH

  • 4,802 Points 4k badge 2x thumb
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