Header Only - DO NOT REMOVE - Extreme Networks

How can I import variable into an .xsf script ?


hello,

I want to import some variable (.py,.xml,...) into a .xsf script, it is possible ?

Many thanks in advance, alex

5 replies

Userlevel 1
Hi Alex,

'some variable' in .xsf, then when do you want to evaluate 'some variable' ?
or
evaluate 'some variable' then into .xsf script. Do you want to generate .xsf file?
Can you share more details?
Hi tknv,

Thanks for your help.

I finally find a solution, I import my variable which are stored in a .xsf by ftp to the switch, and i use a key to transport it to the principal .xsf.

alex
Userlevel 6
alex wrote:

Hi tknv,

Thanks for your help.

I finally find a solution, I import my variable which are stored in a .xsf by ftp to the switch, and i use a key to transport it to the principal .xsf.

alex

Can you give us a example what you try and how you solve it ?! This is (maybe) interesting for me and all the other guys. Thanks Regards, Matthias
alex wrote:

Hi tknv,

Thanks for your help.

I finally find a solution, I import my variable which are stored in a .xsf by ftp to the switch, and i use a key to transport it to the principal .xsf.

alex

I have a project to create a script that must detect if the
port of a switch is on or off, then find the MAC address of
the computer equipment that has just connected to the switch.
To finish, check if this address mac is part of the authorized
address and then put it in the vlan adapt.

Then, I created a file (.xsf) that informs all authorized macs that I import via FTP, and i use a key(load car key...) to transport
it to the principal .xsf.

I hope I was understandable, and I apologize for my bad english.
If you have some question don't hesitate to ask me.

Alex
[/code]
Userlevel 6
alex wrote:

Hi tknv,

Thanks for your help.

I finally find a solution, I import my variable which are stored in a .xsf by ftp to the switch, and i use a key to transport it to the principal .xsf.

alex

Can you share an example ?

Reply