Yealink Forums
Assign User management for Sites - Printable Version

+- Yealink Forums (
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Yealink Device Management Platform (/forumdisplay.php?fid=61)
+--- Thread: Assign User management for Sites (/showthread.php?tid=42236)

Assign User management for Sites - ysvn - 11-14-2018 02:05 AM

Hi there,

Can i assign some one for 1 or more sites ? . so they can only view/edit SIP account or Devices on this site

Many thank

Change date format with awk - Dale2 - 04-19-2019 05:48 AM

I have a log file, I'm trying to reformat using sed/awk/grep but running into difficulties with the date format. The log looks like this: - - [28/Mar/2019:11:43:58 +0000] "GET /e9bb2dddd28b/ HTTP/1.1" "-" "Yealink W52P 00:00:00:00:00:00" 404 - 1 5 0.146
I would like the output as so:

Yealink,,28-03-2019 11:43:58
I have tried the following:

grep Yealink access.log | grep 404 | sed 's/\[//g' | awk '{print "Yealink,",$1,",",strftime("%Y-%m-%d %H:%M:%S", $4)}' | sed 's/, /,/g' | sed 's/ ,/,/g'
edit - removing [ before passing date string to strftime based on comments - but still not working as expected UPSers

However this returns a null date - so clearly I have the strftime syntax wrong:

Yealink,,1970-01-01 01:00:00