Refer to the Tutorial: Discover your Machines' Hardware Configurations
Please disregard the content below as it is being updated.
A Machine profile contains information extracted by a Script executed by the LSM RAM Agent
Collecting a profile is as simple as using a pre-existing Payload or adding a Script as a Payload stage
LSM-provided Payload:
Add a Script as a stage in any Payload:
Profiles are displayed in the GUI: Machines > Machine Details
No Profile collected for this Machine:
Profile collected for this Machine, viewed in unexpanded box:
Profile collected for this Machine with the text box partially expanded:
Profile collected for this Machine searched using Cntl-F "find on page":
Machine profiles are stored as text files, organized in directories by a Machine's MAC address
Machine profiles parent directory:
/home/LinMin/service/MachineProfiles/
For example:
# ll /home/LinMin/service/MachineProfiles/
total 0
drwxr-xr-x. 2 root root 253 Jan 25 17:53 00-25-25-d3-5e-16
drwxr-xr-x. 2 root root 172 Jan 25 12:05 00-39-21-3e-2b-f9
drwxr-xr-x. 2 root root 172 Jan 24 17:30 00-50-12-29-72-bb
drwxr-xr-x. 2 root root 172 Jan 24 17:10 00-50-12-34-4b-aa
In this case, there are 3 profiles that have been collected for this Machine:
# ll /home/LinMin/service/MachineProfiles/00-25-25-d3-5e-16/
total 1400
-rw-r--r--. 1 root root 475264 Jan 24 18:18 PayloadObtained_00-25-25-d3-5e-16_20190124-181806_Machine-profile.txt
-rw-r--r--. 1 root root 475689 Jan 24 18:48 PayloadObtained_00-25-25-d3-5e-16_20190124-184824_Machine-profile.txt
-rw-r--r--. 1 root root 475057 Jan 25 17:53 PayloadObtained_00-25-25-d3-5e-16_20190125-175421_Machine-profile.txt
Customize what information gets collected in a Profile
Step 1: Locate the original Script that gets executed by the RAM Agent:
/home/LinMin/service/serviceScripts/target_os_Scripts/LinMin_ProfileClientSystem.sh
Step 2: Never edit the Script directly. Always make a copy and edit your copy:
# cp -p LinMin_ProfileClientSystem.sh My_ProfileClientSystem.sh
# gedit My_ProfileClientSystem.sh
Step 3: Locate the launching Script:
/home/LinMin/service/serviceScripts/ram_os_Scripts/LinMin_Get_Machine_Profile.sh
Step 4: Make a backup copy of the Script, then exit the original:
# cp -p LinMin_Get_Machine_Profile.sh LinMin_Get_Machine_Profile_backup.sh
# gedit LinMin_Get_Machine_Profile.sh
Step 5: Replace the existing value with the name of your new Script:
Change:
ScriptToExecute='/tmp/LinMin/serviceScripts/target_os_Scripts/LinMin_ProfileClientSystem.sh'
To:
ScriptToExecute='/tmp/LinMin/serviceScripts/target_os_Scripts/My_ProfileClientSystem.sh'