How to get PC host name using labview
hi,
I have a need to display the pc host name(login name) in my application. How can i get it using labview in runtime i.e. if i write a program and execute it in different PC systems/same system with different users, then i should get the corresponding login names.
Can any one help me on this?
Thanks,
Regards,
Arvinth
Solved!
Go to Solution.
Well, the PC host name and the login name are two different things, so which one are you trying to get? Darin's snippet gives you the login name. If you want the PC name use this method.
Similar Messages
-
How to get the computer name using C#?
Hi all,
Does anyone know how to get the computer name using c#?
ThanksTry this, string computer_name = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Naren. -
How to get XI host name & IP address in Message Mapping
Hi,
Does anyone have an idea how we can get XI host name & IP address dyanamically in our mapping.
Thanks in advance.
Regards,
SarveshHi,
Please find the code below for the UDF which serves the function: to check value for the PI system id (probably use System.getProperty("SAPSYSTEMNAME")) - if the system name is PIP then the function returns u201CPu201D; otherwise the function should return u201CTu201D
String SystemID = null;
SystemID = System.getProperty("SAPSYSTEMNAME");
if (SystemID.equals("PIP"))
result.addValue("P");
else result.addValue("T");
No input is required for the UDF and also no import packages required apart from the default ones in UDFs..
regards,
Kishore -
How to get a host-name representing a WebLogic cluster
Hi guys,
We are using weblogic to deploy a service. Service uses the below property to connect on managed port and get datasource informations
PROVIDER_URL=t3://abc.com:20005
Now this is fine but in PRODUCTION we have cluster who have 2 machines-manged server (mt1 and mt2) on which service is deployed.
Now what could be the PROVIDER_URL value inside the service code? we can't choose any of the mt1 (or mt2) as if that server down then service will not respond. We need to use a kind of abstarct host name so that this t3:// access
always will be there. In the env we have LBR but that is an OHS which listen http only. Can any body tell me how to fix this issue?
Thanks in advance.Here you can find some examples:
Oracle Fusion Middleware Programming JNDI for Oracle WebLogic Server - 11g Release 1 (10.3.6)
Best Regards
Luz -
How to get the Host name of Unix server
Hi all,
I am need to use the Host name of application server for some purpose.
where can i see the host name of the unix server ?SYST-HOST or SY-HOST contain the name of the application server.
You may also use the following internal call to get the actual application server
call 'C_SAPGPARAM'
id 'NAME' field 'rdisp/myname'
id 'VALUE' field servername.
For the IP adress
CALL FUNCTION 'DB_DBRELINFO'
IMPORTING
dbinfo = dbinfo.
READ TABLE kernel_version INDEX 11.
kinfostruc-ip_address = kernel_version-data.
Regards -
How to get the directory name using vnode address
All,
I am writing a C program and need info on the following:
1. I have got the vnode address of the current directory. my question is "How to get the inode information (in particular, directory name) from the vnode address ?". What calls i need to use in order to get the info ?
2. Any helpful web sites containing the above information ?
Thanks in advancepackage x.y;
import java.io.File;
public class Test {
public static void main(String[] args) {
System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
} -
How to get the forma name using the Spool number
Hi all,
Please tell me how to find the Script name or Smartform name using the SPOOL NUMBER
Regards
AjayHi Ajay,
you could use the FM 'SSF_FUNCTION_MODULE_NAME' inorder to get the Smart Form Function Module name by giving the name of the form.
Reward points if this helps,
Kiran -
How to get the Host name and port number
Hi all,
I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
Regards,
VinothHi Kanagaraja,
My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
Thanks for your reply.
-Vinoth -
How to get the font name used in document?
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..Oviya... wrote:
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..
Are you talking about the location of the font? -
How to get all GroupSpaces name using Spaces API, irrespective of user logged in?
Hi
Can anyone please tell me, how to retrieve list of all group spaces using Spaces API. I have used this method getGroupSpaces(null) to retrieve all group spaces, however it returns only the logged in members groups.
Is there any way to get all groupspaces details?
Regards
Raji don't think so other than admin user can get all group spaces informaiton, is it possible in webcenter portal:spaces default deployment?
-
How to get Supervisor/Managers name using SQ01...
Hi,
I am stumped and need your help.
I have defined an infoset ZZ_HR_DATA with logical database. In the Infotype 0001, under additional selections, I have the field "Name of superior (organizational assignment)" and it's technical name is SYHR_A_P0001_AF_MANAGERN. I am OK so far.
When I define a query against this info type, it is not showing as a field to select. What went wrong?
The query shows another similar field SYHR_A_P0001_AF_MANAGERN and Quickviewer is displaying this as well.
Regards
VennyPl check this hr abap technical. you can probably use the logic in the code section of your infoset for the additional fields.. be it the name/number of the supervisor.
~Suresh -
How can I get the host name from Email address?
hi
When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanksStripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
http://www.stopspam.org/email/headers/headers.html
Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
Sean -
How to resolve a host name from IP using JNDI/DNS service provider
Hi
I got two questions on JNDI/DNS service provider:
1) How to resolve a host name when i got an IP
I understand How I do it inverse.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
env.put(Context.PROVIDER_URL, "dns://"+server+"/"+domain);
DirContext ictx = new InitialDirContext(env);
Attributes attrs1 = ictx.getAttributes(host, new String[] {"A"});
2) This example above works when I specify the domain in the provider url.
If I am not specifing a domain but only the dns server I got an NameNotFoundException.
What should I do if I don't got the domain?
get the availible domains and loop on them?Hi,
if your DNS server supports that, you can do a reverse DNS lookup. This works as follows:
String server = "your.dns.server";
String domain = "in-addr.arpa";
String ip = "4.3.2.1";
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
env.put(Context.PROVIDER_URL, "dns://" + server + "/" + domain);
DirContext ictx = new InitialDirContext(env);
Attributes attrs1 = ictx.getAttributes(ip, new String[] {"PTR"});1: Use the pseudo-domain in-addr.arpa
2: Use the reverse IP address for lookup, i.e. if your host has 1.2.3.4, use 4.3.2.1!!
3: Request the PTR attribute
see also [http://en.wikipedia.org/wiki/Reverse_DNS_lookup|http://en.wikipedia.org/wiki/Reverse_DNS_lookup]
Martin -
How to get the owner name for the file in ftp using abap ?
Hi folks ,
How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
but doest work out me . Helping in this regard highly appreciated ...
Thanks and regards,
Swarupa VanarchiHi
dont you have used the os user while calling the FTP_CONNECT FM?
Hope you are not talking about the user executing the FTP program.
Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
May be i am going too far with if and elses here as your question possesses no clarity.
Plz elaborate your requirement before anybody can help.
Regards
sateesh -
How to get the form name which is used in standard tcode like me23n in sap
how to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PMhow to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM
Maybe you are looking for
-
New Button not appearing in Choose company screen
Hi All, Today at one of our customer we found that when we goto choose company screen with user with super user authorisation, New button (used to create new company) doesn't appear. Customer uses SAP B1 2007 B Patch Level 08 Does anybody has idea wh
-
My system is beachballing every 3 minutes or so, I read in a thread that by installing Shark tools and doing a system trace when the error occurs, you might find the source of the problem. I did a system trace and I keep getting postmaster processes
-
IE Display Problem - v2 Upgrade
<p>Have just upgraded HTML DB from v1.6 to v2.0 and whilst the login pages (both normal and admin interfaces) seem to look fine when requested, clicking on the login button doesn't do anything. </p> <p>Also, IE 6 (unfortunately I can't install other
-
Career help. Whether to stay with Xi or to take up ABAP with webdynpro ?
I have a situation where in I would like to get some professional help from you people here. I am sorry if I am expecting too much. And please caution me if this question is not supposed to be asked here. The situation is that I have completed my
-
Is it possible to have a field in the form to insert an image, like in Adobe livecyle?
Should I use Adobe livecyle, does it still exists?