918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Line | |
---|
1 | #ª/bin/bash |
---|
2 | |
---|
3 | source /tmp/net-eth0.conf |
---|
4 | FILEINFOHTML=/opt/opengnsys/log/`ogGetIpAddress`.info.html |
---|
5 | |
---|
6 | SPEED=$(ethtool $DEVICE | grep Speed | awk -F": " '{print $2}') |
---|
7 | DUPLEX=$(ethtool $DEVICE | grep Duplex | awk -F": " '{print $2}') |
---|
8 | |
---|
9 | # |
---|
10 | # echo ''; |
---|
11 | # |
---|
12 | |
---|
13 | cat > $FILEINFOHTML << EOF |
---|
14 | <div align="center" style="font-family: Arial, Helvetica, sans-serif;">' |
---|
15 | <p style="color:#999999; font-size: 16px; margin: 2em;"> |
---|
16 | |
---|
17 | <table border=1> |
---|
18 | <tr> |
---|
19 | <TD rowspan=2><P align=left><IMG border=0 src="../images/iconos/logoopengnsys.png"><P> </td> |
---|
20 | <td> Hostname: </td> <td> IP </td> <td> MAC </td> <td> Speed </td> <td> duplex </td> </tr> |
---|
21 | <tr> <td> $HOSTNAME </td> <td> $(ogGetIpAddress) </td> <td> $(ogGetMacAddress) </td> <td> $SPEED </td> <td> $DUPLEX </td> </tr> |
---|
22 | </table> |
---|
23 | |
---|
24 | |
---|
25 | </p> |
---|
26 | <p style="font-size: 14px; margin: 2em;"> |
---|
27 | </p> |
---|
28 | </div> |
---|
29 | |
---|
30 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.