Blog Posts by brucegoose03

Ask a question

Reporting on speed tests on your workstations - K1000

Intro

This article will show you how to use a free utility called DownTester to run a speed test remotely and return the results within your K1000. 

Description:

This script uses DownTester to output the speedtest results to a file, then a Custom Inventory Rule returns the results to each device. Included in the zip file is the script, and the CIR. 
This script checks to see first if C:\Temp\Downtester exists, if so it runs the tester, if not it creates the directory and then runs the test and outputs to a .txt file


Instructions


Import the script and Custom Inventory Rule (CIR) that I've created here:


Download the zip and extract the files to the clientdrop share of the K1000 and import it under Settings > Resources > Import. From there the script can be deployed to all the Windows computers from where the device action(s) shall be executed.

Preview of script:

j6vKQX.png


For the CIR, here is the rule I use:
ShellCommandTextReturn(type C:\temp\DownTester\speedtest_results.txt)

I also have the script upload the .txt file to device inventory, but you don't have to do that and the CIR. I left those there so you can have options depending on what you want. 

Here is an example output of what the rule will return. You can adjust what files it tests downloading from within the GUI of the Downtester software, and it saves your settings into the .cfg file
:
UuUS11.png

Shout out to Patrick Warme for the help with Downtester. I didn't even know about it until he showed it to me. Also provided the .bat file that i altered for these tests to work with the K1. 
View comments (2)

Hardware change notification alert - K1000

There are some situations where you might need to get notified if something like RAM amount changes on your devices. 

This article shows an example of how you could accomplish something like this. 

Method 1: MySQL method


  1. Create a new device notification (Reporting > Notifications > Choose Action > New > Device Notification)
  2. Use the default search it makes (doesn't matter since we will be changing in the next step) and click Save
  3. Once created, click the name of your notification, and click "To edit the Notification using this editor, Click Here". To see the list of notifications, click Reporting > Notifications
  4. Paste the MySQL query from below in:

Select Distinct
  A.NAME As "Machine Name",
  A.VALUE1 As 'RAM Before',
  A.VALUE2 As 'RAM After'
From
  ASSET_HISTORY A
Where
  A.FRIENDLY_FIELD_NAME = 'RAM Total' AND
  A.TIME > Date_Sub(Now(), Interval 24 hour)

I have this looking at any RAM changes within the last 24 hours and set it up as a notification, but this could also be done within a report. 

Method 2: Asset History search


If you want a more GUI-friendly way to build something, you can use Settings > History > Asset History Reporting to do advanced searches, that you can then turn into reports/notifications. This will be similar to Method 1 since we will still ultimately use a MySQL query in the end, but this will help you build your notification much easier from scratch. 

TMHUar.png


In this example above, I did an advanced search where Field begins with RAM, and Date is during this quarter, but you can customize it whenever you want. 

Then, you can click Choose Action > Create Report. 

You will then be given the MySQL for the report it would create. 

DhphRK.png

Follow the steps from Method 1 to create a custom notification. 



I hope you enjoyed this article, Please comment/vote for any feedback you have. 

Thanks!


Be the first to comment

Join WiFi networks via script

PROBLEM:
You need an automated way to join your laptops to WiFi networks, without having to give out the WiFi passcode. 

SOLUTION:
Use the following method to join your Windows 7+ laptops to your WiFi networks. This can be used on either the K1 or K2 since it it just a batch file (K2 instructions - stay tuned)

  1. From and admin elevated command prompt, export your profiles from a laptop that has already successfully joined the wifi network(s) you want to push out
  1.    netsh wlan export profile key=clear
  1. This will export every profile .xml to the current directory you are in. 
For K1 - Create a new Online Shell ScriptFor user to run as, I used the local system account, but admin accounts can work as well. 
  1. NOTE: You may run into this problem: https://jira.labs.dell.com/browse/K1-18674
Attach the profile .xml(s) to your scriptIn the text box, use this command:
  1. netsh wlan add profile filename="INSERT_FILENAME_HERE.xml"
  1. NOTE: Be sure to replace the correct filename
If you have multiple profiles you want ot import, you can add multiple netsh commands all to the same script, as long as they are attached to the scriptChange the "script.sh" to "script.bat" so it will work on WindowsRun your script
Now, take your laptop off of the Ethernet connection, and watch as you are automatically joined to your network!

Now that you have this, you can create as many scripts as needed and apply them to various systems using Smart Labels. 

E1CCUi.png

SOURCE/REFERENCE: http://www.windowscentral.com/how-manage-wireless-networks-using-command-prompt-windows-10
View comments (2)

Custom Inventory Rule - Dealing with spaces in path names

QUESTION:


The other day I was looking to make a Custom Inventory Rule (CIR) for something on a Mac OSX device, and I wasn't having the best luck. 
One question I had, was if the path or filename had a space in it, do I need double quotes? Do I need to escape the space?

ANSWER:

Nothing special is needed. 

EXAMPLE 1:
DirectoryExists(/Applications/Utilities/Disk Utility.app)
EXAMPLE 2:
FileExists(/Library/Application Support/Dell/KACE/data/version.txt)


Notice that there is no backslash (\) between 'Application Support' and not double quotes ("") around the path. 
Just copy/paste the path as is and you're all set. 


I couldn't find this info written down anywhere so I thought I would share. 

Cheers!




View comments (1)

Adjusting advanced Java settings

I had a great question the other day about how to adjust one of the Advanced Java settings. 
The one in question was allowing Mixed Code:

tey5xs.png


By default, this is Enable - show warning if needed

For this specific scenario, we needed to set this to Disable

Doing some googling, I found some articles about it:

 

http://www.syswow64.co.uk/2013/05/java-7-update-21-1721-enterprise.html

 

https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/properties.html

  

Using this as a baseline, I wrote some rules in Desktop Authority (DA) to create a directory, and copy a file over from a share.

 Figure 1.1: Creating the folder/path

UM8b7L.png


Figure 1-2: Copying the file down to the client

eaxOuH.png




Contents of the properties file:

 

#deployment.properties

#Thu Apr 14 14:45:17 CDT 2016

deployment.system.config.mandatory=TRUE

deployment.system.config=file:///C:/Windows/Sun/Java/deployment.properties

deployment.security.mixcode=DISABLE

 

 

 Once I did that, logged in and out and let copy the file over and sets the options defined in the properties file.

 

You could do this as well from the K1 as a simple File Sync job as well, but just though I would share that if anyone was interested.

 


Be the first to comment
Showing 1 - 5 of 35 results

Top Contributors

Talk About Application Repackaging