- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 08:10 AM - edited 03-01-2019 06:37 PM
Hi
I am trying to capture output of certain command & Parse & than write the output into the file . I also want to repeate this process & appened the output .
Below works fine where I am capturing the output & appending to the file but i want to parse the output(show cell 0 all | inc SNR|RSSI|RSRP) & than wanted to write the file .
I looked into the action file but there is no append
Solved! Go to Solution.
- Labels:
-
Network Management
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 07:02 AM
They resemble the Tcl functionality. So remove "file" and look at the Tcl docs for the next command (e.g., "open", "puts", etc.).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2018 06:42 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2018 03:22 PM
The file action is a series of actions. The first being "file open". This takes an argument of the access type of the file. If you open the file with "a" then it is opened for appending:
file open fd flash:SIGNAL-STRENGTH.txt a
file puts fd "Hello,"
file close fd
file open fd flash:SIGNAL-STRENGTH.txt a
file puts fd "World!"
file close fd
At this point, the file's contents will be:
Hello,
World!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 06:59 AM
Thanks Joe, that worked.
where can I find mor information on file command.
Sincerely
Viral Patel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 07:02 AM
They resemble the Tcl functionality. So remove "file" and look at the Tcl docs for the next command (e.g., "open", "puts", etc.).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2018 06:42 AM
thank you joe.
Sincerely
Viral Patel
