Appendix D
CGI Commands
SMB/CIFS Server/SharedFolder Commands
SMB/CIFS Server Survey
Method: GET
URL:http://<ip>/adm/smb_survey.cgi[?parameter=value[¶meter=value...]]
Parameter |
| Value and description |
|
|
|
|
|
|
| (Optional) The timeout in seconds of the CGI |
|
timeout |
| The CGI will stop surveying and return the result if it times out. |
|
|
| Valid values: |
|
|
|
|
|
action |
| (Optional) This CGI will terminate survey action. |
|
| stop |
| |
|
|
| |
|
|
|
|
Return: | The result will be returned in XML format (the content size depends | on how | |
| many servers are in the network). A successful request returns the | result of | |
| the Samba site survey as shown below (this is case sensitive): |
|
HTTP/1.0 200 OK\r\n
…
...
\r\n
<?xml version=”1.0”
<WorkGroup>\r\n
<Name></Name>\r\n
<List>\r\n
<Server>\r\n
<Name></Name>\r\n
<Comment></Comment>\r\n
</Server>\r\n
...
</List>\r\n
</WorkGroup>\r\n
...
</List>\r\n
XML tag description:
Parameter
Value and description
Name (WorkGroup) | The work group name (up to 15 characters) |
|
|
Name (Server) | The PC name of the server (up tp 63 characters) |
|
|
Comment (Server) | The description of the server (up to 256 characters) |
|
|
39 |