06-07-2024 12:14 PM
I am trying to get used to scripting but have not found anything that does what i want.
I want to send CLI commands to groups but have the %deviceIP built in to the script so it make changes as i need.
For example i was to enable SFLOW so i need to have the local IP in this config.
config terminal
sflow agent-ip %deviceIP
sflow collector 1 address x.x.x.x owner DEV-SiteEngine port 6343 timeout 497
sflow collector 2 address x.x.x.x owner PRD-SiteEngine port 6343 timeout 497
app-telemetry enable
I was also trying to see if there is anyway to do pip install commands to get more features in the scripts.
Solved! Go to Solution.
06-09-2024 11:56 PM
first, in your CLI command bulk is missing the enable command on the leading position.
second, why do you send sFlow data to Site Engine? It should go to the Analytics Engine. And if you add the switch to the Analytics Engine he gets automatically configured with App Telemetry and not only sFlow, which is more advanced.
06-09-2024 11:56 PM
first, in your CLI command bulk is missing the enable command on the leading position.
second, why do you send sFlow data to Site Engine? It should go to the Analytics Engine. And if you add the switch to the Analytics Engine he gets automatically configured with App Telemetry and not only sFlow, which is more advanced.
06-10-2024 05:46 AM
Thanks for the help it sounds like what I wanted to get added was redundant it Analytics already does these steps. It seems I was told some bad information regarding switches needed sflow to be configured before adding to the Analytics side.
Regarding the script you sent below. I was trying stuff similar to what you did below but i always get the same failures
javax.script.ScriptException:
*** Script Error ***
null
-> from xmcbase import cli as emc_cli
Is it possible my install is bad and my libraries are gone for some reason?
06-11-2024 05:46 AM
this is only useful for offline coding using an IDE. XIQ-SE don't need it.
just remove this line => from xmcbase import cli as emc_cli
06-11-2024 06:33 AM
Thanks for your help on this!