Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Hello, I'm using the guest shell in on a 9300 and trying to save a run config txt file and then print out the run config txt file in the python interpreter. But it's not working, see below: >>> cli_output = cli("sh run")>>> type(cli_output)<type 'str...
I see the issue when I just try reading the file, it only outputting "cli_output" , it's not storing the value of the variable in the file: >>> f = open("run_config.txt" , "r")>>> contents = f.read()>>> print contentscli_output how can I pass the con...
Thanks for the reply, so I tried the for loop and getting the below: >>> f = open("run_config1.txt" , "w+")>>> f.write("run_config")>>> for lines in f:... print (lines)...>>> >>>>>> f = open("run_config1.txt" , "w+")>>> f.write("run_config")>>> f1 =...