Append MAC Addresses to Historic File
| 0 Votes |
Description
For use to track transient MAC's on all machines.
Appends current MAC associated with machine to file in client storage folder.
This file is then read by a custom property to get a historic list of MAC's associated with each machine.
Property Details
| 6135 | |
| QA - Ready for Production Level Testing | |
| Append MAC Addresses to Historic File | |
| Meta Data | |
| Tangora | |
| 8/7/2015 12:00:00 AM | |
| MAC, History | |
| ctangora on 8/10/2015 7:05:04 AM | |
| ctangora on 8/10/2015 7:07:17 AM | |
| 5701 Views / 7 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
delete __appendfile
if {windows of operating system}
parameter "hMAC" = "{(storage folder of client as string) & "\historicMAC.list"}"
else
parameter "hMAC" = "{(storage folder of client as string) & "/historicMAC.list"}"
endif
if {exists file "historicMAC.list" of folder (storage folder of client as string)}
appendfile {concatenation "%0d%0a" of lines of file (parameter "hMAC")}
endif
appendfile {concatenation "%0d%0a" of mac addresses of adapters of network}
delete "{parameter "hMAC"}"
copy __appendfile "{parameter "hMAC"}"
delete __appendfile
appendfile {concatenation "%0d%0a" of unique values of lines of file (parameter "hMAC")}
delete "{parameter "hMAC"}"
copy __appendfile "{parameter "hMAC"}"
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
| Social Media: |
Comments
|
|
|
| I click on update content, and submit the updated .bes file, but it does nothing. | |
|
|
|
| what is the error or problem you are having uploading a new version? | |
|
|
|
| I fixed it, but it doesn't seem to want to upload here. The relevance I am using now is... (not exists file "historicMAC.list" of folder (storage folder of client as string) OR (set of (lines of file "historicMAC.list" of folder (storage folder of client as string)) does not contain set of (mac addresses of adapters of network))) | |
|
|
|
| I would recommend adding relevance to this so that it only runs if the current MAC addresses are not already found within the historicMAC list. | |

