Getting IP Address in PowerBuilder 5
Hi,
How to get machines IP address using PB5, when google we found the below link
http://eric.aling.tripod.com/PB/tips/pbtip14.htm
As per the above link, we need to use WSOCK32.DLL and PBWS32.DLL(third party DLL ).
Is there any other way to get IP address with out using PBWS32.DLL(third party DLL ) in PB5?
Thanks,
Sundar
Sundar,
If you are tryting to get local IP address, this may be helpful for you...
Here is the script for your reference..
1) Save ipconfig result into .txt file.
of_save_client_ip()
Long ll_file_open , ll_count
FileDelete('C:\done.yes')
FileDelete('C:\client_ip.txt')
ll_file_open = FileOpen( "C:\client_ip.bat" , LineMode!, Write!, LockWrite!,Replace! )
FileWrite(ll_file_open, 'ipconfig')
FileWrite(ll_file_open,'echo done >> C:\done.yes')
FileClose(ll_file_open)
Run( 'C:\client_ip.bat >> C:\client_ip.txt' , Minimized!)
DO
// Pause
FOR ll_count = 1 TO 1000
Yield()
NEXT
LOOP UNTIL FileExists('C:\done.yes')
2) To get Local IP address
of_get_client_ip() return string
String ls_ipaddr = 'NO' , ls_dataline
Long ll_file , ll_read
ll_file = FileOpen('C:\client_ip.txt', LineMode!, Read!, Shared! )
DO
// Read the file
ll_read = FileRead( ll_file , ls_dataline)
// Look for IP Address. . . . . . . . . . . . : 000.00.000.111
IF Pos( ls_dataline, 'IP Address' ) > 0 AND Pos( ls_dataline, ':' ) > 0 THEN
ls_ipaddr = Trim( Mid ( ls_dateline , Pos( ls_dataline, ':' ) + 2 , Len(ls_dateline) ) )
EXIT
END IF
LOOP WHILE ll_read >= 0
FileClose(ll_file)
RETURN ls_ipaddr
Regards,
Jahir
Similar Messages
-
When I open Firefox I do not get an address bar only Google comes up. I don't get a back or forward button nor do I get the tool bar or menu bar. There is no default button. I read the forum but I can not make any corrections because I don't have a tool bar displayed. I am using 3.6. When I turn off my computer and then turn it back on, the default settings still do not return.
It is a long while since I tried Google Toolbar, I am not sure what it changes. But I would not expect it to totally remove your options to use the ordinary toolbars.
■ Try
* press the''' alt '''key on the keyboard, that may return the menu bar
* once you have the menubar '''View -> Toolbars ->''' and select which you need
* you may also use View-> Toolbars -> Customise and drag items back or use the restore default set option.
* right clicking on the toolbars also gets you to the customise and show toolbars options
■ have a look at [[Back and forward or other toolbar items are missing]]
PS
I hope you do not need to resort to editing registry settings, the firefox 'dragons' in prefs are user friendly compared with Windows registry. Messing up firefox prefs only really affects firefox normally; whereas errors in a registry edit may prevent you from even booting the computer. -
How to get Plant address from SAP R/3 to SRM
Hi Gurus,
We need to retrieve the plant address from SAP R/3 to SRM and display it in the output list of the report (SRM).
Suggest any standard FM or should we need to create a Custom Remote enabled FM and put the select query to get the address.
Regards
PaulHi Paul,
Try using the RFC_READ_TABLE function module...
Pass the table name as t001w which contains the plant details.
Hope this helps.
Thanks,
Pradeep -
How can I get the address from a map struct?
Hello,
Who knows how to get the address from a map struct, and what's the meaning of the eighth argument (addr) of ufs_getpage() ?
I developed a modular to encrypt certain files. The approach is: I�fll change the vnode's v_op pointer when opening a file which should be decoded. I make the vnode->v_op point to my own ops struct. I made a new ufs_getpage function like below:
static int newufs_getpage(struct vnode* vp, offset_t off, size_t len,
uint_t* protp, page_t* plarr[], size_t plsz,
struct seg* seg, caddr_t addr, enum seg_rw rw,
struct cred* cr)
call old ufs_getpage(vp, off, len, protp, plarr, plsz, seg, addr, rw, cr);
decode the page.
After reading some source code about kernel, I know the plarr is the page which is read from the disk. But I don't know how to get the address of the page. I tried like below, but failed.
caddr_t baseaddr;
page_t *pp;
pp = plarr[0];
�c�c
baseaddr = hat_kpm_page2va(pp, 0);
�c�c
I logged the baseaddr:
cmn_err(CE_NOTE, �gbaseaddr %s�h, baseaddr);
or
char _buff[8];
int _len;
copyinstr(baseaddr, buff, 8, &len);
cmn_err(CE_NOTE, �gbaseaddr %s�h, _buff);
But I found the baseaddr is not what I want. Is there something wrong with my approach? What's the meaning of the eighth argument (addr) of ufs_getpage()
By the way, is there any documents concerning to the functions such as segvn_fault�Appmapin/ppmapout except the source code?Hiya,
I think the address is the faulting address in segmap.
But why not have a look at the file event management framework in NFSv4:
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/fs/fem.c
To support NFSv4 delegation, FEM provides hooks to intercept filesystem operations.
Maybe you could use that to implement what you want? Probably safer than doing what you are doing now. Go see fem_install().
Cheers,
R.
Message was edited by:
ralphyt -
My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.
I use my iPad to get the address book backed up by iCloud from my iPhone. However, I cannot see the recent new contacts from my iPad. Is there anyway to check the iCloud server to see if my address book backup from my iPhone is still there?
-
I purchased an Air Mac and can't get the address book on it. Does anyone have any ideas on what I should do. I have an IPhone and an IPad and they both have clouds but I don't see one on my Air Mac.
From the link posted in TD's reply
To unhide your purchases
Open the Mac App Store.
Choose Store > Sign In, then enter your Apple ID and password.
Choose Store > View My Account.
Click on View Hidden Purchases from the Account Information page.
From the Hidden Purchases page, locate the app you would like to unhide.
Click the Unhide button.
LN -
Please help: Get IP address of a remote device (wifi kit) from DHCP router
Hi ppl,
I am about to get the IP address for the wifi kit which is connected to the same router with my PC.
I need to control my wifi kit through TCP client communication, but DHCP tends to assign new IP address to my wifi kit when connected to router.
Hence, i wish to write a java function to trace the IP address before starts the communication.
I am thinking to get the wifi kit's IP address based on the Hostname (name of the wifi shield):
As below:
InetAddress thatIp = InetAddress.getByName("Wiznet");
System.out.println("IP E:"+thatIp.getHostAddress());
But i don't think this is secure..
I attempt to research for getting IP address with MAC..
But have ambiguity on the result i found.
It stating i have to get the ARP table from router but it is not a good approach.
I have no luck for next finding on how retrieving the table with Java.
Hereby hope to have your advise how can i get the ip address of my wifi kit in a more dynamic and secure method..
is it using Hostname or MAC address or else...
many thanks.hi... wish to have your advise again.
I tried to retrieve the arp table in java and attempt to extract the IP address based on MAC address for particular devise.
But i stuck with the substring... my code is as below:
Process result = Runtime.getRuntime().exec("arp -a");
BufferedReader output = new BufferedReader
(new InputStreamReader(result.getInputStream()));
String line = output.readLine();
while(line != null){
if ( line.startsWith("default") == true ){
System.out.println("is default");
break;
line = output.readLine();
String ipAdd = line.substring(0, 18);
String MACAdd = line.substring(24, 42);
System.out.println(line.length() + " " + line + " " + ipAdd + " " + MACAdd );
i m trying to sub the IP and MAC accordingly.. but i got error saying
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 42
at java.lang.String.substring(Unknown Source)
at ExecTest.main(ExecTest.java:22)
i dun understand this! as since the length of LINE is 56 , why STRING INDEX OUT OF RANGE happen?!
please advise!!! -
After a computer crash, I had to load Thunderbird (v31.3.0) back into my machine running Windows 8.1, and I successfully imported my address book back up file into Thunderbird (v31.3.0).
My problem is that I don't see an option to sort the address book by "Last" name, which was available with the version of Thunderbird I had before the crash.
How can I get the address book to sort by "Last" name?In 'Address Book'
Select address book
'View' > 'Show name as' > 'Last/First'
The you can sort by Name.
Either click on 'Name' column header to change sort order,
If reversed, then click on 'Name' column header again to reverse the order.
Or
'View' > 'Sort By' > choose 'Name' and 'Ascending' -
When opening a new tab, I keep getting 'The Address isn't valid'. Went through all the fixes given in previous threads, changing the url in about:config, running Firefox in safe mode (problem still exists with plugins disabled) resetting Firefox, changed newtab settings to about:home etc, restarted, deleted cookies. Nothing seems to work. Some other program seems to be overriding the Firefox settings. May be a virus. I am using the latest McAfee software.
I once had an add-on that brought up thumbnails with a new tab but I removed that a while back.
On the right hand side search bar of firefox I can see that Bing is one of the dropdown search engine choices not that it should make a difference but I thougth they were sometimes a bit aggresive.
Anyhow, would love to know if there is a solution as it's making me suspicious of having an undetected visus or hijacking.Thanks for your relpy but I've already tried these solutions and no joy. I tried them again there just to be sure but still no good.
In the mean time I installed a plug-in that does this for me. I used My Homepage 1.2 and it's done the business.
Still don't know what was causing the problem. (And it wasn't a typo, I checked and copied and pasted urls from other locations...) -
Client unable to get IP address on guest wlan
Hi all, I recently setup a 2504 WLC that has two primary WLANs (internal and guest) which get their IP addresses from a central DHCP server using the local router's broadcast forwarding. Things seem to be working well for the internal wlan, but clients on the guest wlan don't seem to be getting IP addresses. If I give the client a static IP they are able to communicate across the wlan okay.
It is worth noting that I am using LAG between the controller and router and this guest wlan is really just a regular wlan (with PSK) that has an access-list applied to force it to the internet only. The access-list should be allowing dhcp requests through, but in any case, I removed the access-list and it made no difference.
Here is a debug client for a machine connected to the guest vlan (vlan 33). The internal wlan is on the 10.10.10.0/24 network (same as wired and same that the AP's are connected to) and the guest wlan is 10.33.0.0/16. I don't understand why I am seeing the dhcp request come from the internal vlan/wlan first and it gets an IP address on this network. I then see a request on the guest wlan/vlan at which point it appears to get a valid IP address on the guest network (10.33.0.0), but the client never sees this.
Thoughts?
Thanks,
Bryan
(Cisco Controller) >debug client 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:32.991: 8c:2d:aa:36:ca:a3 DHCP received op BOOTREQUEST (1) (len 308,vlan 1, port 13, encap 0xec03)
*DHCP Socket Task: Feb 25 00:49:32.991: 8c:2d:aa:36:ca:a3 DHCP processing DHCP DISCOVER (1)
*DHCP Socket Task: Feb 25 00:49:32.991: 8c:2d:aa:36:ca:a3 DHCP op: BOOTREQUEST, htype: Ethernet, hlen: 6, hops: 0
*DHCP Socket Task: Feb 25 00:49:32.991: 8c:2d:aa:36:ca:a3 DHCP xid: 0xbcf5ea3c (3170232892), secs: 0, flags: 0
*DHCP Socket Task: Feb 25 00:49:32.991: 8c:2d:aa:36:ca:a3 DHCP chaddr: 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:32.992: 8c:2d:aa:36:ca:a3 DHCP ciaddr: 0.0.0.0, yiaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:32.992: 8c:2d:aa:36:ca:a3 DHCP siaddr: 0.0.0.0, giaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:32.992: 8c:2d:aa:36:ca:a3 DHCP successfully bridged packet to DS
*DHCP Socket Task: Feb 25 00:49:32.992: 8c:2d:aa:36:ca:a3 DHCP received op BOOTREPLY (2) (len 331,vlan 1, port 13, encap 0xec00)
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP processing DHCP OFFER (2)
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP op: BOOTREPLY, htype: Ethernet, hlen: 6, hops: 0
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP xid: 0xbcf5ea3c (3170232892), secs: 0, flags: 0
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP chaddr: 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP ciaddr: 0.0.0.0, yiaddr: 10.10.10.165
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP siaddr: 10.10.10.246, giaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP server id: 10.10.10.246 rcvd server id: 10.10.10.246
*DHCP Socket Task: Feb 25 00:49:32.993: 8c:2d:aa:36:ca:a3 DHCP successfully bridged packet to STA
*DHCP Socket Task: Feb 25 00:49:32.994: 8c:2d:aa:36:ca:a3 DHCP received op BOOTREPLY (2) (len 308,vlan 33, port 13, encap 0xec00)
*DHCP Socket Task: Feb 25 00:49:32.994: 8c:2d:aa:36:ca:a3 DHCP processing DHCP OFFER (2)
*DHCP Socket Task: Feb 25 00:49:32.994: 8c:2d:aa:36:ca:a3 DHCP op: BOOTREPLY, htype: Ethernet, hlen: 6, hops: 0
*DHCP Socket Task: Feb 25 00:49:32.994: 8c:2d:aa:36:ca:a3 DHCP xid: 0xbcf5ea3c (3170232892), secs: 0, flags: 0
*DHCP Socket Task: Feb 25 00:49:32.994: 8c:2d:aa:36:ca:a3 DHCP chaddr: 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:32.994: 8c:2d:aa:36:ca:a3 DHCP ciaddr: 0.0.0.0, yiaddr: 10.33.1.1
*DHCP Socket Task: Feb 25 00:49:32.995: 8c:2d:aa:36:ca:a3 DHCP siaddr: 10.10.10.246, giaddr: 10.33.0.1
*DHCP Socket Task: Feb 25 00:49:32.995: 8c:2d:aa:36:ca:a3 DHCP server id: 10.10.10.246 rcvd server id: 10.10.10.246
*DHCP Socket Task: Feb 25 00:49:32.995: 8c:2d:aa:36:ca:a3 DHCP successfully bridged packet to STA
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP received op BOOTREQUEST (1) (len 308,vlan 1, port 13, encap 0xec03)
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP processing DHCP REQUEST (3)
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP op: BOOTREQUEST, htype: Ethernet, hlen: 6, hops: 0
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP xid: 0xbcf5ea3c (3170232892), secs: 1, flags: 0
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP chaddr: 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP ciaddr: 0.0.0.0, yiaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP siaddr: 0.0.0.0, giaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP requested ip: 10.10.10.165
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP server id: 10.10.10.246 rcvd server id: 10.10.10.246
*DHCP Socket Task: Feb 25 00:49:33.997: 8c:2d:aa:36:ca:a3 DHCP successfully bridged packet to DS
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP received op BOOTREPLY (2) (len 308,vlan 1, port 13, encap 0xec00)
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP processing DHCP NAK (6)
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP op: BOOTREPLY, htype: Ethernet, hlen: 6, hops: 0
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP xid: 0xbcf5ea3c (3170232892), secs: 0, flags: 8000
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP chaddr: 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP ciaddr: 0.0.0.0, yiaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP siaddr: 0.0.0.0, giaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP server id: 10.10.10.246 rcvd server id: 10.10.10.246
*DHCP Socket Task: Feb 25 00:49:33.998: 8c:2d:aa:36:ca:a3 DHCP successfully bridged packet to STA
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP received op BOOTREPLY (2) (len 308,vlan 33, port 13, encap 0xec00)
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP processing DHCP NAK (6)
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP op: BOOTREPLY, htype: Ethernet, hlen: 6, hops: 0
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP xid: 0xbcf5ea3c (3170232892), secs: 0, flags: 8000
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP chaddr: 8c:2d:aa:36:ca:a3
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP ciaddr: 0.0.0.0, yiaddr: 0.0.0.0
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP siaddr: 0.0.0.0, giaddr: 10.33.0.1
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP server id: 10.10.10.246 rcvd server id: 10.10.10.246
*DHCP Socket Task: Feb 25 00:49:34.000: 8c:2d:aa:36:ca:a3 DHCP successfully bridged packet to STA
*apfMsConnTask_1: Feb 25 00:49:35.320: Stats update: Non Zero valueOne way to test also is to connect a laptop to a port assigned for the guest vlan. If the device gets an IP, then it's something on the WLC you have to configure. If the device doesn't, then it's a network issue or dhcp server issue.
Sent from Cisco Technical Support iPhone App -
How to get Ip Address on Forms6i
Hi,
I tried to get Ip Address using
SYS_CONTEXT('USERENV','IP_ADDRESS') in a database function but the problem it always brings the Forms Server Ip Address instead of Client Ip Address on Web Forms. I'm just wondering is there any way to deal this problem?
Thanks
Rao Guduru
nullIsn't the IP address required
No. -
IOS device failed to get ip address on multiple wlan on the same anchor controller
Dear Experts:
in my implementation, we need 2 WLANs be served on the same anchor controller.
WLAN1: wep/40bit, integration with NAC/OOB on anchor controller for guest wlan service.
and guest account controlled by NACguest server.
WLAN2: wep/40bit, no layer3 secuirty for temporary using.
foreign controller: WiSM on v6.0.196.4 (also testing on 6.0.182.0)
anchor controller: WLC4402 on v6.0.196.4
on WLAN1:
Windows7 client get ip address correctly.
iOS (iPhone4 on 4.3.1/4.3.2, iPad2 on 4.3.1/4.3.2) can get ip address correctly on WLAN1.
WLAN2, iOS device cannot get ip address.
compare with debug message "debug clien mac" + "debug dhcp message enable"
on both foreign and anchor controller.
on foreign controller:
PM state has changed from: DHCP_REQD (7) Change state to RUN (20) last state RUN (20)
on anchor controller:
PM state always stay on: DHCP_REQD (7) Change state to DHCP_REQD (7) last state DHCP_REQD (7)
Enable/Disable DHCP Address Assignment Required is not work.
Enable/Disable DHCP proxy is not work.
Any hit this issue when get ip address failed in multiple WLANs on the same anchor controller?
In attachment log file,
DMZ.log: anchor controller on DMZ.
S3p1.log: WiSM on v6.0.182.0
S3p2.log: WiSM on v6.0.196.4
client mac: 00:1f:3b:05:33:c1, Windows7 Client
client mac: 58:55:ca:cf:d2:07, iPhone4 with 4.3.1,
WLAN1 subnet: 10.61.246.0/23
WLAN2 subnet: 10.61.248.0/23Hi, Nicolas:
just checking the attachment for the run-config on foreign/anchor controller.
DMZ_run.config - anchor controller
s3p1_run.config - WiSM on v6.0.182.0
s3p2_run.config - WiSM on v6.0.196.4
at this moment, we have disable the wlan 10 on foreign controller, and wlan 2 on foreign controller.
Wilson... -
Can't get ipv6 address assigned correctly.
I use NetworkManager and dhclient for auto-configuration but it has some weird problems.
When I boot up my laptop, I only have chance to get access to ipv6 network, when I fail, I tried to delete the connection in Network Management Settings, and then added a new profile, disable and then enable the network again. Sometimes it works well, but sometimes it failed to auto-config.
If I use the command:
$ ip -6 rout
then I'll get the following message:
unreachable fe80::/64 dev lo proto kernel metric 256 error -101
fe80::/64 dev wlan0 proto kernel metric 256
default via fe80::2e0:2ff:fe54:59 dev wlan0 proto static metric 1
every time the default gateway is configured well, sometimes the address the address is missed , and if I do the following:
$ ping6 -I wlan0 -c 4 fe80::2e0:2ff:fe54:59
It responses normally.
PING fe80::2e0:2ff:fe54:59(fe80::2e0:2ff:fe54:59) from fe80::1034:56ff:fe78:9124 wlan0: 56 data bytes
64 bytes from fe80::2e0:2ff:fe54:59: icmp_seq=1 ttl=64 time=5.32 ms
64 bytes from fe80::2e0:2ff:fe54:59: icmp_seq=2 ttl=64 time=6.64 ms
64 bytes from fe80::2e0:2ff:fe54:59: icmp_seq=3 ttl=64 time=10.6 ms
64 bytes from fe80::2e0:2ff:fe54:59: icmp_seq=4 ttl=64 time=3.60 ms
--- fe80::2e0:2ff:fe54:59 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 3.603/6.546/10.617/2.587 ms
do the following:
$ ip -6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 2001:250:4400:d000::161/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::1034:56ff:fe78:9124/64 scope link
valid_lft forever preferred_lft forever
I found I just sometimes can get the ipv6 address start with 2001:
If the address is assigned, then:
$ ping6 ipv6.google.com
PING ipv6.google.com(ipv6.google.com) 56 data bytes
^C
--- ipv6.google.com ping statistics ---
11 packets transmitted, 0 received, 100% packet loss, time 10008ms
response nothing!
Then I switch into Windows 7, if something like above happened, then I managed to set the MAC address to a random value such as 12-34-56-78-91-23, soon, the problem will be corrected, I'll get a new ipv6 address assigned by DHCPv6 server. If I switch back to arch, set the MAC address in NetworkManager, it didn't have function at most time, and the ipv6 address even won't change!
Can anyone help me with this problem?
by the way, I never get ipv6 address when I use dhcpcd.bernarcher wrote:
Hello and welcome to the forums heliumhgy.
Just in case you are wondering where your post has been gone: The moderators board received this message from you:
I dont need tunnel to access to ipv6, My univ use dual-stack to get both ipv4 and v6 work around all campus.
This is because you inadvertently used the "Report" link. But don't worry this happens rather often.
Just cause I caught the glimpse of re-blabla, and mistaken it as reply
Last edited by heliumhgy (2012-11-29 03:16:11) -
How to get Mail address of an Employee in Workflow ?
Hello Everybody ,
I want to send mail to employee through workflow . I have Employee number PERNR but which method and B.O should i used to get email address of that employee .?
Any solution .?
Regards,
Sandeep Jadhavhi:
Try the function module HR_FBN_GET_USER_EMAIL_ADDRESS
else Create a Z_function module and put the following code as
ORM find_email_address USING p_uname
CHANGING p_recextnam LIKE soos1-recextnam.
DATA: t_pernr LIKE pa0105-pernr,
t_email LIKE pa0105-usrid_long.
STEP 1 - Find personnel number for UNAME
SELECT SINGLE pernr INTO t_pernr
FROM pa0105
WHERE subty = '0001' AND
endda >= sy-datum AND
begda <= sy-datum AND
usrid = p_uname.
Employee record found
IF sy-subrc = 0.
STEP 2 - Find email address for personnel number
SELECT SINGLE usrid_long INTO t_email
FROM pa0105
WHERE pernr = t_pernr AND
subty = '0022' AND
endda >= sy-datum AND
begda <= sy-datum.
IF sy-subrc = 0.
IF NOT p_recextnam IS INITIAL.
CONCATENATE p_recextnam t_email
INTO p_recextnam SEPARATED BY ','.
ELSE.
p_recextnam = t_email.
ENDIF.
ELSE. "Never found an email address for employee
WHO SHOULD WE SEND TO HERE??? ***
ENDIF.
Employee number not found. Search in ADR6 table
ELSE.
See if user name is in the username table.
i.e. The user is not an employee
SELECT SINGLE addrnumber persnumber
INTO (usr21-addrnumber, usr21-persnumber)
FROM usr21
WHERE bname = p_uname.
IF sy-subrc = 0.
Found user name now let's get the email address
SELECT SINGLE smtp_addr INTO t_email
FROM adr6
WHERE addrnumber = usr21-addrnumber AND
persnumber = usr21-persnumber.
IF sy-subrc <> 0 OR t_email IS INITIAL.
WHO SHOULD WE SEND TO HERE??? ***
ELSE. "Found email
IF NOT p_recextnam IS INITIAL.
CONCATENATE p_recextnam t_email
INTO p_recextnam SEPARATED BY ','.
ELSE.
p_recextnam = t_email.
ENDIF.
ENDIF.
ELSE. "UNAME just does not have an email address addigned at all
WHO SHOULD WE SEND TO HERE??? ***
ENDIF.
ENDIF.
Regards
Shashi -
I only get Facebook addresses when trying to compose email. How do I update my contacts to reflect other email addresses?
Navigate to Settings, then Facebook, then Contacts OFF.
Maybe you are looking for
-
All the implications of placing text from another file
Hi all, I have a large document with masters that I use for my proposals. I created all the masters I need in this file, then when I get a request for proposal, I just copy out the masters I need for that particular one (depending on the products req
-
Hello macintosh family! I would like to ask how can I change the document margins within a different section in the same document?
-
IWeb 08 slideshow modifications
iWeb08's non-.mac slideshow is a vast improvement from '06 and eliminated my need to use Simpleviewer or SlideShow Pro. However, the viewable window size (both on full screen option or smaller window viewer) cuts off part of my photo titles which are
-
Hi to all, I worked in Adobe Illustrator (AI) CS3 before installing the trial version of AI CS5 and i was created some files with FZ BASIC 18 font. And now when i open this files and save that to pdf format isn't the same font. Is like 'bold' and th
-
Is it possible to connect the same device to multiple stores?
I would like to know if it is possible to have the same iPad (or iPhone) connected both to Apple app store and to a private store, in order to have the possibility to download some apps from one store and some apps from the other one. Regards, Ambra