• February 24, 2025, 10:28:38 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: dns-320 command-line interface  (Read 10105 times)

zakis_

  • Level 1 Member
  • *
  • Posts: 4
dns-320 command-line interface
« on: March 13, 2012, 12:08:14 PM »

Hi

I am a happy user of nas d-link sharecenter dns-320 (pulse)

Usually I use this through its web interface, but since I'm
also a happy linux user that always prefers to use
software in command-line so I created a simple script
management p2p and other basic functionality(for now).
I created a Mercurial repository on Bitbucket to this address:

https://bitbucket.org/zakis_/dns-320-command-line

You can download it and use it freely, hopefully useful, for example via
to check your NAS remotely through a linux server.

I hope to use it than you think to help me to add new
useful features, in a short time to cover all aspects of the NAS.

Happy Hacking
zakis_
Logged

shabuboy

  • Level 2 Member
  • **
  • Posts: 78
Re: dns-320 command-line interface
« Reply #1 on: March 15, 2012, 10:32:47 AM »

Hello,

Just wondering how different would it be to Fun_Plug. Or what it can do as oppose to Fun_Plug.

Fun_Plug advantages I can think of, add any package which can be better than Dlink's options. Such as UPnP and P2P packages and many others.
Logged

albert

  • Level 5 Member
  • *****
  • Posts: 510
    • SoHo NAS Forum
Re: dns-320 command-line interface
« Reply #2 on: March 16, 2012, 02:02:49 AM »

TS, thanks for sharing. A short write-up on how to setup your CLI tool would be much appreciated.
Logged
D-Link DNS-320 rev A1 (FW: 2.05) [FFP-0.7]
PCI NAS-01G (FW: Encore ENNHD-1000 4.10)
PCI NAS-01G (FW: OpenNAS 1.9]

zakis_

  • Level 1 Member
  • *
  • Posts: 4
Re: dns-320 command-line interface
« Reply #3 on: March 17, 2012, 07:26:58 AM »

Hello,

Just wondering how different would it be to Fun_Plug. Or what it can do as oppose to Fun_Plug.

Fun_Plug advantages I can think of, add any package which can be better than Dlink's options. Such as UPnP and P2P packages and many others.

this software is different to fun_plug, it does not require the presence of fun_plug. It's 'only a command line interface for almost all of the NAS options. and then the main advantage is that 'you can' control the NAS from a computer that is not 'installed any browser
Logged

zakis_

  • Level 1 Member
  • *
  • Posts: 4
Re: dns-320 command-line interface
« Reply #4 on: March 17, 2012, 07:34:59 AM »

TS, thanks for sharing. A short write-up on how to setup your CLI tool would be much appreciated.

this cli tool is self-explanatory.. you should just have the module curl of php and php5 CLI installed on your system, and run the script for the explanation of features:
$./pulse.php

Usage: pulse.php OPTIONS [host[:port]]
       host                       hostname or ip target, default: pulse
       port                       port number for host, default: 80
       -p,--p2p[=on|off]          get or set p2p client state
       -c,--p2p-clear             clear p2p complete list
       -l,--p2p-limit[=down[,up]] get or set p2p speed limit, unlimit: -1
       -D,--download[=url]        list or add url in http downloader
       -C,--download-clear        clear complete http downloads list
       -t,--temp                  get temperature inside
       -T,--time                  get date and time of nas
       -f,--fan[=off|low|high]    get or set fan mode
       -u,--ups                   get ups state
       -d,--disks                 get disks usage
       -s,--shutdown              power off the system
       -r,--restart               restart the system
       -h,--help                  print this help

like any other linux command
Logged