403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.15.4.251
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/puppetlabs/puppet/share/augeas/lenses/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/puppetlabs/puppet/share/augeas/lenses/dist/rancid.aug
(*
Module: Rancid
  Parses RANCiD router database

Author: Matt Dainty <[email protected]>

About: Reference
       - man 5 router.db

Each line represents a record consisting of a number of ';'-separated fields
the first of which is the IP/Hostname of the device, followed by the type, its
state and optionally a comment.

*)

module Rancid =
  autoload xfm

  let sep     = Util.del_str ";"
  let field   = /[^;#\n]+/
  let comment = [ label "comment" . store /[^;#\n]*/ ]
  let eol     = Util.del_str "\n"
  let record  = [ label "device" . store field . sep . [ label "type" . store field ] . sep . [ label "state" . store field ] . ( sep . comment )? . eol ]

  let lns = ( Util.empty | Util.comment_generic /#[ \t]*/ "# " | record )*

  let filter = incl "/var/rancid/*/router.db"
             . Util.stdexcl

  let xfm = transform lns filter

(* Local Variables: *)
(* mode: caml       *)
(* End:             *)

Youez - 2016 - github.com/yon3zu
LinuXploit