source: client/shared/scripts/generateMenuDefault @ 9d859d0

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
Last change on this file since 9d859d0 was 1873b9a, checked in by albertogp <albertogp@…>, 13 years ago

Versión 1.0.4, #495: Integrar ticket en rama de desarrollo.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@3052 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#ª/bin/bash
2
3source /tmp/net-eth0.conf
4FILEINFOHTML=/opt/opengnsys/log/`ogGetIpAddress`.info.html
5FILEINFOCACHE=/opt/opengnsys/log/`ogGetIpAddress`.cache.txt
6ogMountCache
7CACHECONTENIDO=`ls -m /opt/opengnsys/cache/opt/opengnsys/images`
8
9SPEED=$(ethtool $DEVICE | grep Speed | awk -F": " '{print $2}')
10DUPLEX=$(ethtool $DEVICE | grep Duplex | awk -F": " '{print $2}')
11CACHESIZEFREE=$(ogGetFreeSize `ogFindCache`)
12expr $CACHESIZEFREE / 1024 > /opt/opengnsys/log/`ogGetIpAddress`.cache.txt && echo '.MB,' >> /opt/opengnsys/log/`ogGetIpAddress`.cache.txt
13
14#
15#  echo '';
16#
17
18cat > $FILEINFOHTML << EOF
19<div align="center" style="font-family: Arial, Helvetica, sans-serif;">
20<p style="color:#999999; font-size: 16px; margin: 2em;">
21
22<table border=1 width="100%">
23<tr>
24<TD rowspan=2><P align=left><IMG border=0 src="../images/iconos/logoopengnsys.png"><P> </td>
25<td> Hostname: </td> <td> IP </td> <td> MAC </td> <td> Speed </td> <td> duplex </td> </tr>
26<tr>  <td>$HOSTNAME  </td> <td> $(ogGetIpAddress) </td> <td> $(ogGetMacAddress)  </td> <td> $SPEED </td> <td>  $DUPLEX </td> </tr>
27</table>
28
29</p>
30<p style="font-size: 14px; margin: 2em;">
31</p>
32</div>
33
34EOF
35cat >> $FILEINFOCACHE << EOF
36$CACHECONTENIDO
37EOF
Note: See TracBrowser for help on using the repository browser.