2010/3/24 Leonardo Cezar <[email protected]>:
> Modo de usar:
>
> SELECT get_mac('en0');
Algumas considerações:
Antes de preparar faça:
$ cpan -i Net::Frame::Device
(Re)considerações:
Rodando num OSx10.6.2 o módulo Device do Perl5 (instalação via port)
foi incapaz de retornar os atributos da interface de rede en0, no
entanto a biblioteca nativa do Perl (/Library/Perl/...) retorna sem
problemas.
Talvez eu tenha identificado um inseto no pacote Net???
Para Linux (Debian Squeeze) ele funciona com sucesso:
postgres=# select get_mac('eth0');
get_mac
-------------------
08:00:27:96:9e:ff
(1 row)
version
--------------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.4.2 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Debian 4.4.2-9) 4.4.3 20100108 (prerelease), 32-bit
Abraço!
-Leo
--
Leonardo Cezar
http://www.aslid.org.br
http://postgreslogia.wordpress.com
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral