Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

Poll
What do you expect from your SI Implementation partner for the success of ERP implementation.
Bring best practices - Not to offer more CR's Leveraging standard functions
20%
Need more honesty to work with the Users until their processes are fully mapped & Users are trained
40%
Focus on process automation/ integrations/ Real time data/ BI analytics
13%
Stick to basics
27%
Total votes: 15

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 24th August 2007, 17:28
spartacus's Avatar
spartacus spartacus is offline
Guru
 
Join Date: Dec 2001
Location: Germany
Posts: 773
spartacus is on a distinguished road
Baan: BaanERP 5.0c - DB: Oracle 8 - OS: SunOS 5.9
IP-adress of client
Baan: iBaanERP 5.0c
C/S: None/Unknown

Is there a way to determine the ip-adress of the actual client/user from Baan or via unix/bshell?

OK, we are on Baan 5c!
Reply With Quote
  #2  
Old 24th August 2007, 18:41
mig28mx's Avatar
mig28mx mig28mx is offline
Guru
 
Join Date: Nov 2003
Location: Mexico
Posts: 439
mig28mx is on a distinguished road
Baan: Baan IV, BaanERP V - DB: Oracle 9i, Oracle10g,Oracle11 - OS: HP Unix 11, Intel RedHat ES
last -1 -R

Hello Spartacus,
On HP-unix the command last -1 -R gives the last time when a user was logged on and also the ip address of the client. I don´t know if in Solaris there is a equivalent command.

Good luck.
__________________
We talk Baan!
Reply With Quote
  #3  
Old 25th August 2007, 07:03
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,876
Hitesh Shah is on a distinguished road
Baan: ERP Ln - DB: MSSQL - OS: Windos
ip address

On solaris the command is 'last -n 1 [username]' .
__________________
Hitesh R Shah
Reply With Quote
  #4  
Old 25th August 2007, 11:43
kaukul's Avatar
kaukul kaukul is offline
Senior Member
 
Join Date: Jun 2005
Location: Mumbai
Posts: 228
kaukul is on a distinguished road
Baan: Baan IV C4, LN, FP2 - DB: Informix, Oracle - OS: Unix, Windows
You can get "Computer Name" of client

Hi,

By running command "ps -ef | grep bshell" on the application server, you can get "Computer Name" of client.

Refer below Example:

ps -ef|grep bshell|pg
user1 23958 354 0 12:51:50 ? 0:12 bshell (p116144@4068mp:3904/SOCKET<p116144@4068MP:3904>) -1 545 0 1 ttstpoledae
user2 24185 354 0 13:36:48 ? 0:02 bshell (p997275@5092mp:3960/SOCKET<p115431@5092MP:3960>) -1 545 0 1

Regards,
Kaustubh
Reply With Quote
  #5  
Old 27th August 2007, 11:53
spartacus's Avatar
spartacus spartacus is offline
Guru
 
Join Date: Dec 2001
Location: Germany
Posts: 773
spartacus is on a distinguished road
Baan: BaanERP 5.0c - DB: Oracle 8 - OS: SunOS 5.9
Hi,

thank u all!!

I tried the "last" command on our SunOS. In my case it doesn't deliver directly the IP-Adress, but some kind of alias or a domain for it. I can "ping" that and then I will see the IP.

Unfortunatelly that is such as uncomfortable, as the use of "ps -ef..." as Kaustubh describes.

More strange is, that it only delivers values for my own user. For other persons I get only an info about the begin of "wtmp". Maybe a prob ob permissions?

Regards
Richard
Reply With Quote
  #6  
Old 27th August 2007, 12:26
kaukul's Avatar
kaukul kaukul is offline
Senior Member
 
Join Date: Jun 2005
Location: Mumbai
Posts: 228
kaukul is on a distinguished road
Baan: Baan IV C4, LN, FP2 - DB: Informix, Oracle - OS: Unix, Windows
is "last" command useless in this case...

Quote:
Originally Posted by spartacus View Post
More strange is, that it only delivers values for my own user. For other persons I get only an info about the begin of "wtmp". Maybe a prob ob permissions?

Regards
Richard
Hi,

The last command gives list of users who had last logged into unix system and not "the list of users logged in through baan".

I think in your company, only you are accessing baan server through telnet session and that is why, only your IP is appearing there...You can even try to login to the server via telnet through some other PC and then check output of last command. It should also add that IP there...

a guess...

Regards,
Kaustubh
Reply With Quote
  #7  
Old 7th September 2007, 14:24
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,492
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
Hi,

Since you are on Baan 5, have you tried get.bw.hostname()?

- George
__________________
_
George Abdo
Thabet.Net
Reply With Quote
  #8  
Old 7th September 2007, 16:06
spartacus's Avatar
spartacus spartacus is offline
Guru
 
Join Date: Dec 2001
Location: Germany
Posts: 773
spartacus is on a distinguished road
Baan: BaanERP 5.0c - DB: Oracle 8 - OS: SunOS 5.9
Hi George,

thank you for that hint. I haven't seen this function before. I think I will try it!


Richard
Reply With Quote
  #9  
Old 7th September 2007, 17:45
lbencic's Avatar
lbencic lbencic is offline
Guru
 
Join Date: Dec 2001
Location: Lisle, IL, USA
Posts: 1,148
lbencic will become famous soon enough
Baan: 2.2d - LN - DB: most - OS: most
Hi All -
We have a free tool on our web site that you can load, it's a Baan session that runs and collects the users login information for you to view at any time, such as:
Client IP Address
Client BW Version
Client OS and Version

All of the information can be found using the commands in this post & others, this just does the collection for you and gives a way to view it in Baan.

http://www.rmcis.com/BaanTools.htm

It will ask for your name & email, etc.
Reply With Quote
  #10  
Old 11th September 2007, 15:12
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,492
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
get.bw.ip.address

I have just seen the get.bw.ip.address function. I think it is exactly what you need. It is not in the Wiki yet but it should work on your Baan.

Quote:
Syntax
string get.bw.ip.address( )

Description
This returns the ip-address of the system of the BW or Webtop client (if available)

Return values
Return value Function succeeded, return value is the requested ip-address
Empty string Information is not available

Context
Bshell function.
__________________
_
George Abdo
Thabet.Net
Reply With Quote
  #11  
Old 12th September 2007, 14:24
spartacus's Avatar
spartacus spartacus is offline
Guru
 
Join Date: Dec 2001
Location: Germany
Posts: 773
spartacus is on a distinguished road
Baan: BaanERP 5.0c - DB: Oracle 8 - OS: SunOS 5.9
Hi George,

sounded really great, but my compiler can't find this function. Is there any include or SP-Level necessary?

Some typing error?
I tried:
Code:
domain tcmcs.str20 myip
myip = get.bw.ip.address()

Richard
Reply With Quote
  #12  
Old 12th September 2007, 14:28
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,492
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
No typing error. This is the documentation information that the function was found in:
Quote:
Code: H1004 EN-US
Group: Development Help
Build: 7.5_a build 615
Build date: June 26, 2003
Did the get.bw.hostname() function work?

- George
__________________
_
George Abdo
Thabet.Net
Reply With Quote
  #13  
Old 12th September 2007, 15:03
spartacus's Avatar
spartacus spartacus is offline
Guru
 
Join Date: Dec 2001
Location: Germany
Posts: 773
spartacus is on a distinguished road
Baan: BaanERP 5.0c - DB: Oracle 8 - OS: SunOS 5.9
"get.bw.hostname()" works.

I searched the Baan Support for the document code: "H1004 EN-US" but, can't find anything. What kind of doc is that "H......"? Think I saw that kind of code alreday somewhere, but at the moment I have no glue where :-(
I also searched knowledgebase for: "get.bw.ip.address()" but found also nothing.
Reply With Quote
  #14  
Old 12th September 2007, 15:15
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,492
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
It is a CHM file that was posted here in BB (I can not find the thread yet. I will post it when I find it.). It is written in it that it is for BaanERP. I found the function also in our LN manual (and it surely works in LN).
__________________
_
George Abdo
Thabet.Net
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BAAN Client DNS Issues SSA has no answer. phatbastage Miscellaneous 2 6th September 2005 16:29
to get the ip adress in client mrubik Tools Development 2 14th August 2005 15:33
Launching a BW client avpatil Tools Development 6 23rd September 2004 08:50
Color of client background/company name in menu browser estotz Tools Administration & Installation 7 1st May 2003 20:45


All times are GMT +2. The time now is 01:09.


©2001-2023 - Baanboard.com - Baanforums.com