Forum Discussion
Network map to excel
Hi Daniel,
Tried the script as suggested, its giving the error - command not found. The below was found when tried on common partition -
01020036:3: The requested shell script (/Common/virtual-details) was not found.
when tried in bash, found the below error-
bash: cli: command not found
virtual-details: script failed to complete:
script "virtual-details" does not contain a "script::run" procedure
script did not successfully complete, status:1
Need to know what am i doing wrong here?
Apologies, maybe I was not 100% clear. With this snippet you create the script.
tmsh create cli script virtual-details
Next switch to tmsh and run:
root@(awaf)(cfg-sync Standalone)(Active)(/Common)(tmos)# edit cli script virtual-details
Here is a screenshot:
Now a vi-style editor will open you must paste from line 52 to line 88 the end of the code snippet. Verify that copy&paste worked. In my test, the proc from line 52 was not pasted, I had to type it manually.
Also exit this editor in vi-style with :wq. You will additionally be prompted whether you want to save the script.
Now run this command to verify your changes were saved.
tmsh list cli script virtual-details
If everything looks good, run the script. Here is a screenshot from a successful run:
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com