Posts

Showing posts from 2014

Check the physical status of an Ethernet port in Linux

Using in-built command : root@abcd~# ethtool <ethX> for eg: root@abcd~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000001 (1) Link detected: yes check the last line if it shows yes then that ethernet port is up. OR root@abcd~# dmesg | grep eth

Enable Remote Admin Glassfish

GlassFish 3.1.2+ does not allow remote administration out-of-the-box. To activate remote administration you will have to set an admin password before performing the actual enabling: asadmin change-admin-password --domain_name [DOMAIN_NAME] asadmin enable-secure-admin --port [PORT_NAME]