This is precisely the function that JUNOS accounting files provide...With this approach, a single JUNOS accounting file can contain multiple data layouts
Writing rtt Details into an Accounting Profile File For SLAX version 1.0 and higher, the op script runs every 5 minutes, pinging the remote host and writing the rtt details into an accounting profile file
Overview You want to load locally stored XML files into Table widgets for post-processing. Solution The Table widget provides a path constructor parameter that loads the XML from a locally stored data file, rather from a remote Device
You can find overviews, pros and cons, and "gotchas" for each approach by reading: Best Practices Series: Considerations for On-Box Data Storage and Access On Box Storage: Option 1 - Flat Files as a Data Store On-Box Storage: Option 2 - JUNOS Device Configuration as a Data Store On-Box Storage: Option 3 - Utility MIB as a Data Store On-Box Storage: Option 4 - JUNOS Accounting Files as a Data Store On-Box Storage: Choosing a Solution #JUNOS #Slax #ExpertAdvice #How-To
2 Comments - no search term matches found in comments.
See matching posts in thread - Problem with file copy for JunO...
See matching posts in thread - information needed about erp-default log ......RE: ...
P art 6 of 6 of On-Box Storage Previous Article: On-Box Storage: Option 4 - JUNOS Accounting Files as a Data Store NOTE: This applies to SLAX version 1.0 and higher
Answer As far as whether or not you can update a virus definition file, I am not familiar with the process to do that in devices running Junos OS, but if it is something that can be accomplished through CLI commands, rather than through shell, then it should be possible to do it from a script as well
You have to exercise a little extra caution on file creation...In multi-Routing Engine configurations, each Routing Engine maintains its own file system
Ensure Proper Ownership and Permissions on File Creation in SLAX From time to time you might find a situation where your SLAX script needs to write data to a file for some later processing or review