#!/bin/bash ID=$1 NAME=$2 DPASSW=blaPASSWORDbla COOKIE="drwadmin=7e1a9bf4-bdf7-4632-b233-6bbfb369e287; sess_uid=D4HCcTgNAa2xSTvlShT1" MAINURL="http://drweb.kasatkin.org:9080/esuite/network/index.ds?new_station=1" /usr/bin/curl --cookie "$COOKIE" --data "stid=${ID}&name=${NAME}&password=${DPASSW}&confirmation=${DPASSW}&descr=&stationplIP=&stationminIP=&stationplIPv6=&stationminIPv6=&stationplIPX=&stationminIPX=&organization=&department=&country=&countryISO=&province=&city=&street=&floor=&room=&LatitudeDegree=0&LatitudeMinutes=0&LatitudeSeconds=0&LongitudeDegree=0&LongitudeMinutes=0&LongitudeSeconds=0&sGroups=20e27d73-d21d-b211-a788-85419c46f0e6&sGroups=c1eeef66-6bcc-471b-829a-42cdecff6170&prGroup=c1eeef66-6bcc-471b-829a-42cdecff6170" "$MAINURL"