Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribution: Synology Nas model #3133

Open
marmack95 opened this issue Apr 23, 2024 · 1 comment
Open

Contribution: Synology Nas model #3133

marmack95 opened this issue Apr 23, 2024 · 1 comment

Comments

@marmack95
Copy link

marmack95 commented Apr 23, 2024

Hello,
i wrote a model for Synology Nas (tested on DSM6.x/7.x).
I think it could be compatible with Synology network device : i don't have this type of device.

I encounter 2 problems:

  1. I don't find how to remove prompt (myuser@mydevice:~#) from the final file (it appears only on few lines)
# 
#  ### Hardware ###
# 
# hostname      : mydevice
# root@mydevice:~# model         : RS2414rp+
# root@mydevice:~# serial number : xxx
# root@mydevice:~# machine-id    : xxx
# root@mydevice:~# root@mydevice:~# model name	: Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
# root@mydevice:~# ram           : 4.0 Go
# root@mydevice:~# disk model 1  : xxx
# disk model 2  : xxx

but i would like to have:

# 
#  ### Hardware ###
# 
# hostname      : mydevice
# model         : RS2414rp+
# serial number : xxx
# machine-id    : xxx
# model name	: Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
# ram           : 4.0 Go
# disk model 1  : xxx
# disk model 2  : xxx
  1. As some device, all parameters could not be retrieve by command line, so i used manufacter command to create a backup. But as I don't understand how to use Oxidized FTP/SCP copy, so i ask to device to do it to a server.

Variables i used in my model (you need it, if 'enable' is set to 'true'), if someone wants to use it:

vars:
  enable: true
  bkppath_local: /volume1/local_backup
  bkpsvr: server_ip
  bkppath_ftp: folder
  bkpusr: username
  bkppwd: password
  oxcopy: false

I use Oxidized 0.30.1-14-g2bfd3f2 (docker version).

synology.txt

@marmack95 marmack95 changed the title Synology Nas model Contribution: Synology Nas model Apr 23, 2024
@marmack95
Copy link
Author

marmack95 commented Apr 24, 2024

This version fix prompt, and uncommented data.

Update: add new var "selfcopy: true" to enable (or not) config copy to ftp from device.
synology.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant