How can I import variable into an .xsf script ?

  • 1
  • 2
  • Question
  • Updated 3 months ago
  • Answered
  • (Edited)
hello,

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

Many thanks in advance, alex
Photo of alex

alex

  • 120 Points 100 badge 2x thumb
  • anxious

Posted 4 months ago

  • 1
  • 2
Photo of tknv

tknv, Employee

  • 136 Points 100 badge 2x thumb
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?
Photo of alex

alex

  • 120 Points 100 badge 2x thumb
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
Photo of M.Nees

M.Nees, Embassador

  • 8,874 Points 5k badge 2x thumb
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
Photo of alex

alex

  • 120 Points 100 badge 2x thumb
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
(Edited)
Photo of M.Nees

M.Nees, Embassador

  • 8,874 Points 5k badge 2x thumb
Can you share an example ?