command to get current volume level Is there any adb command to know the current volume level of android device?

I find this somewhere:
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "select * from system where name like '%volume%';"

but it's throwing following error:
Error: unable to open database "/data/data/com.android.providers.settings/databases/settings.db": unable to open database file
Use command adb shell dumpsys audio. It will list all the volume related information. e.g for alarm volume look for STREAM_ALARM in output logs.

- STREAM_ALARM:
    Muted: false
    Min: 0
    Max: 7
    Current: 2 (speaker): 7, 40000000 (default): 6
    Devices: speaker