summaryrefslogtreecommitdiff
path: root/lib/oxidized
AgeCommit message (Collapse)Author
2015-02-21Increase rolling average viewSaku Ytti
Previously view was 2 nodes, so if average was 7s then some node took 1000s your average would be 503.5s. Now we're looking rolling average of each node, which might not be wise either, perhaps I should limit it to last 100 or 1000 nodes. Since we really don't want another place where we have potentially unbounded amount of state...
2015-02-21allow setting IP from sourceSaku Ytti
sql/csv can now set IP as well as name, useful if you don't have FQDN. If IP is given, then we don't try to resolve name. closes #78
2015-02-19Logout behaviour fixed.fhibler
2015-02-19Password detection fixedfhibler
2015-02-07Added model for Comware based devicesJasper
Added support for Comware based devices from HP (A-series), H3C and 3Com.
2015-01-20stop Aruba changing the diff each 'show inventory'Charlie Allom
Also fix the boilerplate comment to reflect the OEM relationship
2014-12-13Skip commentsSaku Ytti
closes #64
2014-12-03Merge branch 'master' into cfg_as_objectSaku Ytti
2014-10-27model/asa: ASA prompt contains HA Failover state separated by slashesStefan Schlesinger
2014-10-23model/asa: removing >show clock and ignoring uptime in >show versionStefan Schlesinger
2014-10-23model/asa: fixing prompt - hostname regex taken from ios modelStefan Schlesinger
2014-10-02Fixed more ever changing output in powerconnect model, only shows up on some ↵Eric
firmware versions
2014-09-26Removed ever-changing output from powerconnect model, thanks @artmannEric
2014-09-22Added model for cisco NXOSEric
2014-09-22Fixed small bug in powerconnect enable codeEric
2014-08-30Remove ntp clock-period completelySaku Ytti
emj complained that it sometimes pops in, sometimes pops out. I guess really no point having it there.
2014-08-25Return true if node_want is nilJari Salo
- Otherwise all nodes can not be loaded.
2014-08-25Match IP address explicitlyJari Salo
- New method node_want? - Don't match node to node[:name] if node[:name] is an ip address. Otherwise we might match to wrong ip address.
2014-08-24Add Brocade NOSSaku Ytti
2014-08-24Add ExtremeXOSSaku Ytti
2014-08-19Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-18Add model for Cisco small business switchesMatthew Boehlig
Supports 200, 300, 500, and ESW2 series switches
2014-08-16Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-16Closes #32Saku Ytti
2014-08-16Closes #37Saku Ytti
2014-08-16Closes #35Saku Ytti
2014-08-16Closes #35Saku Ytti
2014-08-16Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-15Added enable magic for powerconnect model, fixed pagination issuesEric
2014-08-15Add Ubiquiti AirOS modelWill Glynn
2014-08-14Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-14fix ios-xr promptSaku Ytti
2014-08-14never accept empty config in commitSaku Ytti
2014-08-14don't commit empty type configsSaku Ytti
2014-08-13don't commit empty config in git outputSaku Ytti
2014-08-13Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-13fix pre/post blocksSaku Ytti
2014-08-13Remove changing lines from procurve.rbJari Salo
2014-08-12Support type_as_directory for git outputSaku Ytti
If set to true, repo will have directory matching model type, instead of new repo.
2014-08-12Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-11specify rugged versionSaku Ytti
with 0.19.0 (in rubygem-rugged-0.19.0-4.fc20.x86_64) you'll get this: /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/output/git.rb:69:in `create': wrong argument type nil (expected Hash) (TypeError) from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/output/git.rb:69:in `update_repo' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/output/git.rb:33:in `store' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/worker.rb:37:in `process' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/worker.rb:13:in `block in work' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/worker.rb:13:in `each' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/worker.rb:13:in `work' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/core.rb:36:in `run' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/core.rb:29:in `initialize' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/core.rb:11:in `new' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/core.rb:11:in `new' from /usr/local/share/gems/gems/oxidized-0.2.2/lib/oxidized/cli.rb:9:in `run' from /usr/local/share/gems/gems/oxidized-0.2.2/bin/oxidized:9:in `<top (required)>' from /usr/local/bin/oxidized:23:in `load' from /usr/local/bin/oxidized:23:in `<main>'
2014-08-08Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-08Support creating session log of telnet/sshSaku Ytti
If you have input: debug: session_log Then session_log-telnet and session_log-ssh will be created showing what the telnet/ssh saw. Helpful in model development.
2014-08-08refactor cfg as objectSaku Ytti
- now default type is 'nil', which is collapsed to flat config via Outputs#to_cfg - if type is not 'nil' then name is automatically set if not set by model - if name and type is set, separate file is created - if name is not set, but type is set, outputs from type are collapsed as with 'nil' types This model: cmd 'show ip cef' do |out| out.type = 'poop' out.name = false out end cmd 'show process cpu' do |out| out.type = 'poop' out.name = 'my_cpu' out end cmd 'show memory statistics' do |out| out.type = 'poop' out.name = false out end cmd 'show ip bgp summary' do |out| out.type = 'poop' end Would produce git output: [ytti@ytti.fi ~/.config/oxidized]% ls poop bu.ip.fi bu.ip.fi--cpu bu.ip.fi--show_ip_bgp_summary [ytti@ytti.fi ~/.config/oxidized]% bu.ip.fi contains the collapsed stuff bu.ip.fi--cpu is manually named bu.ip.fi--show_ip_bgp_summary is automatically named
2014-08-07Use a more compatible Foundry/Brocade syntax for turning off pagingMatthew Walster
Unfortunately, older Foundry/Brocade hardware doesn't support "terminal length 0" and you have to use the much clunkier "skip-page-display" instead. This especially affects older FastIron era devices.
2014-08-07Keep config as Oxidized::Config instead of hashSaku Ytti
The model will look like this: cmd 'show ip cef' do |out| out.type = 'poop' out end cmd 'show process cpu' do |out| out.type = 'poop' out end cmd 'show memory statistics' do |out| out.type = 'poop' out end I think it's cleaner.
2014-08-07Pass model config as Outputs object instead of strSaku Ytti
These objects have some keys, such as 'type' and 'name', which allows our output model to discriminate on them. If ios.rb contains this: cmd 'show ip cef' do |out| { output: out, type: 'poop' } end cmd 'show process cpu' do |out| { output: out, type: 'poop' } end cmd 'show memory statistics' do |out| { output: out, type: 'poop' } end Our git output looks like this: [ytti@ytti.fi ~/.config/oxidized]% git clone oxidized.git Cloning into 'oxidized'... done. [ytti@ytti.fi ~/.config/oxidized]% git clone poop.git Cloning into 'poop'... done. [ytti@ytti.fi ~/.config/oxidized]% ls poop bu.ip.fi--show_ip_cef bu.ip.fi--show_memory_statistics bu.ip.fi--show_process_cpu [ytti@ytti.fi ~/.config/oxidized]% ls oxidized bu.ip.fi [ytti@ytti.fi ~/.config/oxidized]% Where oxidized repo contains standard config for all unspecified types (type is then 'cfg'), for all specified types instead of collapsing it into single string, we store them in 'type' repo with filename including 'name' of the command.
2014-08-06Added Huawei VRP model support.Jari Salo
2014-08-06Merge branch 'master' of https://github.com/ytti/oxidizedSaku Ytti
2014-08-06small model changesSaku Ytti
- ios show first line of 'show version' - junos display omitted config