Comments (10)
Dell advice to script using HTTP API for Dell EMC PowerVault ME4024.
Dell give an example in python here: it's a little bit complicated for me.
from oxidized.
I was able to wrote a model for Dell EMC PowerVault ME4024 which use the HTTP API.
I'm inspired from:
- the panos_api.rb model
- a python-to-ruby online converter to convert Dell sample code documentation.
I choose to use JSON (with indentation) and not XML.
I don't notice stability problem.
from oxidized.
If you think your models can be integrated in Oxidized, please make a PR: https://github.com/ytti/oxidized/blob/master/CONTRIBUTING.md#how-to-contribute-content
Also consider becoming a model maintainer for them:
https://github.com/ytti/oxidized/blob/master/CONTRIBUTING.md#model-maintainers
If you just want your contribution to be posted here for users to see them (no integration in Oxidized), I would close the issue.
from oxidized.
As explain in other issue, I'm sorry I'm not familiar with Git/Github/Ruby: create models for oxidized was my first experience with ruby.
And as I will change of job this year, I will not be able to maintain all my contributions.
If you let this issue open, i will maybe add 2 others models (i'm looking for a way to backup Dell Drac and Canon Printer with Oxidized). And i would like to wrote a FAQ.
from oxidized.
I was not able to create models for Canon Printer/Fiery ...
I'm working now on Dell iDrac (7/8/9) model : i'm using RESTful API.
https://dl.dell.com/manuals/common/dell-emc-restful-server-config-idrac-api.pdf
Dell give sample of code in python (page 10 and next.)
But I don't find how to use payload on http request with oxidized.
from oxidized.
I succeed to wrote a Dell iDrac 7/8/9 model :-)
It's use HTTPS Rest Api: you need to enable Redfish on iDrac if you disable it.
Tested on:
- Dell iDRAC9 / FW 7.00 / Suggested timeout: 30s
- Dell iDRAC8 / FW 2.85 / Suggested timeout: 120s
- Dell iDRAC7 / FW 2.65 / Suggested timeout: 120s
This model don't only export iDrac configuration but also : Bios, LifeCycle, Raid, Nic.
Passwords are not included: you can modified it if you need.
Export format is set on XML.
iDrac 5/6 not support this API.
iDrac 7/8 need FW 2.40.
from oxidized.
I was not able to create models for Canon Printer/Fiery ...
I discovered that Oxidized use/include Mechanize library: which permit to simulate HTML4 Web navigator.
But the Canon printer login page use a javascript button to crypt password and next login...
Mechanize not support Javascript.
Someone have a advice ?
from oxidized.
I discovered that Oxidized use/include Mechanize library: which permit to simulate HTML4 Web navigator. But the Canon printer login page use a javascript button to crypt password and next login... Mechanize not support Javascript. Someone have a advice ?
I succeed to wrote a model for Canon printer iR-ADV in 2 parts:
- part 1: init export (could take 2-5 min).
- part 2: download file.
I execute part1 on all my printers, and next i execute part2.
I was forced to use Watir: there is a lot of javascript on Canon web interface.
Watir is not integrated to oxidized but call by it: so error are not well managed.
But it's works well.
Each part take 20-30s: it's more efficient than wait 2-5 min export per device.
I use oxidized docker version, so i install:
- watir: 'gem install watir webdrivers'
- firefox: install firefox-esr from debian-src (best choice) or firefox-current from mozilla depot
- geckodriver:
- apt install wget
- wget https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz
- tar -xvf geckodriver-v0.34.0-linux64.tar.gz
- mv geckodriver /usr/bin
Tested on 25 devices:
- Canon iRADV C257 / FW 35.44
- Canon iRADV C5550 / FW 75.44
- Canon iRADV C5735 / FW 35.44
- Canon iRADV C5840 / FW 25.49
canonimp_p1.txt
canonimp_p2.txt
from oxidized.
My canonimp models were creating performance issues because they wouldn't close the browser.
They close it now if:
- the device cannot be reached (a message is displayed on logs)
- export is in progress (a message is displayed on logs)
- at the end of processing
Sorry, but it does not close browser in all others cases: you will need to restart oxidized (or killall geckodriver/firefox manually).
Files are now removed at the end from the download folder.
Some comments have been added.
I also create model for Fiery P2 (should work with some others linux base models).
As interface used a lot of javascript, it used watir (+ firefox + geckodriver) and zlib (export use 2 seperates files).
It take beteween 30s to 1min.
It was tested on Canon iR-ADV C5700 with Fiery P2 PSv1.1 (web interface v3.2.94).
canonimp_p1.txt
canonimp_p2.txt
fiery.txt
from oxidized.
Based on Linux model, i wrote a specific model for Quest QoreStor 7.x (installed on CentOS 8.x).
questqorestor.txt
from oxidized.
Related Issues (20)
- docker-compose GPG encryption of router.db HOT 1
- Installing gem package oxidized-script is failing HOT 1
- Ruby Sass has reached end-of-life and should no longer be used. HOT 1
- Help with ArubaOS8 - Prompt HOT 4
- Huawei Model extend to save config HOT 3
- http input log HOT 1
- Monkey patching changes the order of commands. HOT 1
- Rugged::NetworkError: unsupported URL protocol HOT 3
- Raisecom switch fails backup - but full backup is stored in the log file. HOT 2
- Http input: not managed error 404 HOT 2
- Issue with Grandstream GXW4216 HOT 2
- no source http url config HOT 7
- Fortigate config backup failing HOT 8
- Push to repo fails due to unknown remote ssh hostkey HOT 2
- Oxidized v.0.30.1 versions function not working HOT 3
- How to ignore fortigate backup config password difference for versions difference check HOT 3
- How to increase the show versions function performance? HOT 10
- Don't hardcode `~/.config/oxidized/config`
- Can't have Oxidized use different credentials depending on the device/group? HOT 13
- Stats REST endpoint returns invalid values HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxidized.