Append MAC Addresses to Historic File
Log In or Register to download the BES file, and more.

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

ID6135
StatusQA - Ready for Production Level Testing
TitleAppend MAC Addresses to Historic File
CategoryMeta Data
SourceTangora
Source Release Date8/7/2015 12:00:00 AM
KeywordsMAC, History
Added by on 8/10/2015 7:05:04 AM
Last Modified by on 8/10/2015 7:07:17 AM
Counters 5701 Views / 7 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 97 fixlets and 102 analyses   * Results in a true/false
Show indented relevance
true

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:
Share this page on Yammer

Comments

Log In or Register to leave comments!
ctangora -
I click on update content, and submit the updated .bes file, but it does nothing.
jgstew -
what is the error or problem you are having uploading a new version?
ctangora -
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)))
jgstew -
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.