SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2001
    Location
    Fremont, CA, 94538
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Returning the Silk Client name

    Does anybody know a function or method that returns the HostName of the machine that SilkTest is running on? I am currently using a compiler constant for it, but it would be far better if I could get this dynamically-- without changing it manually.



    ------------------
    Marc Kaplan
    ApplianceWare
    "The New Vision In Appliance Networking"
    Marc Kaplan
    ApplianceWare
    The New Vision In Appliance Networking

  2. #2
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Returning the Silk Client name

    Try SYS_GetRegistryValue ()
    and look for ComputerName for your machine name, assuming your client resides in the same machine as your host.

    For a target Agent's machine name, I guess you can use the name from your Connect (sMachine) function, providing you name sMachine the same as the target's machine name.


    [This message has been edited by Gilbert (edited 03-21-2001).]

    [This message has been edited by Gilbert (edited 03-21-2001).]

  3. #3
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Returning the Silk Client name

    FYI: I was searching my registry (win2k machine) for my computername and it looks like it's stored in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\ComputerName\ComputerName value:computername

    Using SYS_GetRegistryValue() sounds like the way to go.

  4. #4
    Junior Member
    Join Date
    Mar 2001
    Location
    Fremont, CA, 94538
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Returning the Silk Client name

    Great, it worked.

    I was figuring that I would have to get a reg value, but I did not know where to get it.



    ------------------
    Marc Kaplan
    ApplianceWare
    "The New Vision In Appliance Networking"
    Marc Kaplan
    ApplianceWare
    The New Vision In Appliance Networking

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:38 AM.

Copyright BetaSoft Inc.