johnwiliams Posted December 30, 2009 Posted December 30, 2009 Hi, Is there any function available in filemaker to get the serial number of system except Get(SystemNicAddress) function. or any other method available to get that serial number. Thanks, John wiliams.
Wim Decorte Posted December 30, 2009 Posted December 30, 2009 What's the serial number? You can get the NIC and IP addresses of the network cards with the get functions. If you want some sort of OS environment variable you'll need to use OS-level scripting. Let us know what exactly you're after and what OS this is.
Fenton Posted December 30, 2009 Posted December 30, 2009 For example, on a Mac, there are 2 ways I know of to get this via FileMaker's Perform AppleScript script step, running an AppleScript using shell scripting; either: do shell script "ioreg -c 'IOPlatformExpertDevice' | awk '/IOPlatformSerialNumber/ {print $4}' | cut -b 2-12" -- or do shell script "system_profiler SPHardwareDataType | grep 'Serial Number'| cut -d ':' -f 2 | cut -c 2-" [be aware however that machines which have had a motherboard replacement may or may not have a unique serial number. Apparently if Apple replaces the motherboard, they may not add the serial number unless you tell them to. At least that is my experience, and what I read is the procedure (may have changed; been a few years). I have a 20" iMac which just has "Serial Numb" or some such.] I don't know know the Windows equivalent. Like to.
Wim Decorte Posted December 31, 2009 Posted December 31, 2009 On Windows you can get it through the WMI (Windows Management Instrumentation - sort of like Apple's System Profiler). A VBscript would look like this: On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_BaseBoard") For Each objItem in colItems Wscript.Echo "Serial Number: " & objItem.SerialNumber Next You can also invoke WMI from the command line by calling "wmic.exe" but I don't have that code ready. A google will help you out there.
bcooney Posted December 31, 2009 Posted December 31, 2009 John, I know that you're using Dunnings' Easy Encrypt and wish to create a license key that locks the runtime to a workstation. Be aware that NIC address can return multiple values (more than one NIC per workstation). Also, they can change if the cards are changed. Also, you'll need a business process to allow a legitimate user to transfer their runtime from one computer to another (they buy a new one, the old one crashes, etc.) Locking to a workstation is a support-intensive approach.
johnwiliams Posted January 4, 2010 Author Posted January 4, 2010 i want to obtain serial no. of machine similar like (nh905659yu7y) can i obtain this using filemaker functions not by using apple scripts.
Wim Decorte Posted January 16, 2010 Posted January 16, 2010 No, you have to call on the OS to get that information...
Recommended Posts
This topic is 5436 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now