Skip to main content

So after reading Emily Kausalik's blog I wanted to figure out how to customize Self Service even more and found this directory:



/Library/JSS/Tomcat/webapps/ROOT/WEB-INF/frontend/osxselfservice


This has all the pages that make up Self Service, I started looking at the index.jsp and found some interesting stuff rem'd out:



```
<!-- Taking these out for the time being. May change in the future



<img src="../images/selfservice2/background/rightColDivider.png" alt="rightColDivider" width="180" height="12" />



jQuery form select styling option - http://pixelmatrixdesign.com/uniform/
<select id="categorySelect" onchange="newCategorySelected(this.options[this.selectedIndex].value);">



</select>



<ul class="appHighlight">
<li><a href="#">iLife '11</a></li>
<li><a href="#">Adobe CS5</a></li>
<li><a href="#">Microsoft Office 2011</a></li>
<li><a href="#">Angry Birds</a></li>
</ul>
</div>-->



So I then proceeded to add my stuff:


<div id="rightcolumn">



<!--BEGIN QUICKLINKS-->
<div id="quickLinks">
<div class="quickLinksHeader">
<ul>
<!-- You need to log into self service -->
<li><h1>Hello <%=System.getProperty("user.name") %></h1></li>
</ul>
</div>
</div>
<div class="quickLinksContent">
<ul id="genericRightHeader">
<ul class="appHighlight">
<li>OS: <%= System.getProperty("os.name") %> <%= System.getProperty("os.version") %>
<li>IP Address: <%= request.getRemoteAddr() %></li>
<li>Centrify Mode: {ctfyMode} </li>
<li>Available Updates: {susLIST} </li>
<li>HDD Status: {dutilSMART}</li>
<li></li>
</ul>
</div>
```



Only issue is that JSP won't read anything from Bash (I am not an expert in JSP or much else w/things that start w the letter Java, JQuery, JScript, etc.) I HOPE I AM WRONG on this!



my goal is to figure out how to get the commands below:



Available Updates
softwareupdate -l | some soft of awk command.



Smart Status
SMART=diskutil info disk0 | grep SMART ## Smart Disk Status
echo "${SMART}"



Any help would be great!



Ken

Be the first to reply!

Reply