There is no dmesg command, since the kernel does not keep a buffer of its messages. syslog however dumps them into /var/log/dmesg, so you can simply cat that.