- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FInd PC Name or IP Address
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:33 AM
06-09-2004 08:33 AM
FInd PC Name or IP Address
Thanks,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:36 AM
06-09-2004 08:36 AM
Re: FInd PC Name or IP Address
If you have lsof installed, that may be able to do it as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:41 AM
06-09-2004 08:41 AM
Re: FInd PC Name or IP Address
Had a script like this:
#!/bin/sh
# triton31.usage
#
# Geoff Wild October 1998
# Set up environment
BSE=/usr6/triton3.1/bse
BSE_TMP=$BSE/tmp
PATH=$PATH:$BSE/bin
export BSE BSE_TMP PATH
# Set up logfile
logfile=/tmp/triton.usage.log
if [ -f $logfile ];
then
rm $logfile
touch $logfile
else
touch $logfile
fi
echo `date` >>$logfile 2>&1; /usr6/triton3.1/bse/bin/licmon6.1 -w|grep -v SERVER| wc|awk '{print "T
here are",$1, "Triton 3.1 Users"}' >>$logfile 2>&1
That may give you some idea - I'm sure there is a command to list userids connected...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:44 AM
06-09-2004 08:44 AM
Re: FInd PC Name or IP Address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:47 AM
06-09-2004 08:47 AM
Re: FInd PC Name or IP Address
#!/bin/sh
#
#
#
# Modification Log
#
# Edited by Description Date
#
#
# Setup Environment
#
BSE=/usr6/triton3.1/bse
BSE_TMP=$BSE/tmp
PATH=$PATH:$BSE/bin
export BSE BSE_TMP PATH
#
#
date
licmon6.1 << EOF | grep -v -E 'licmon|END'
u
quit
EOF
licmon6.1 << EOF | awk '{print $3}'|grep -v -E 'jamaica|USER'| awk '{FS="."} {print $1}' | sort | uniq -c | sort -nr | grep -vE "^ [0-9] $"
who
quit
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 09:32 AM
06-09-2004 09:32 AM
Re: FInd PC Name or IP Address
We use baan here too on different platforms. I normally use the netstat comand to find the client bshell user's hostname or ipaddress. You mentioned that "I tried netstat but to no avail.", ca you elaborate on that.
What I normally do is,
# netstat -an | grep "\.7150" | awk {'print $5'} --> for users signing on via blogind method
or
# netstat -an | grep "\.512" | awk {'print $5'} --> for logged on via rexec.
regds,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 05:41 PM
06-09-2004 05:41 PM
Re: FInd PC Name or IP Address
#last -R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 08:20 AM
06-10-2004 08:20 AM
Re: FInd PC Name or IP Address
Thanks again
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 08:23 AM
06-10-2004 08:23 AM
Re: FInd PC Name or IP Address
If you drop the -n from the netstat command it will attempt hostname lookups & display that instead. Of course the PCs *must* be in DNS to get a name returned. If the IP is not resolvable then netstat will return the IP.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:00 AM
06-11-2004 07:00 AM
Re: FInd PC Name or IP Address
Most of the PCs use DHCP (dynamic IP). The funny thing is that if you grep the Unix/BaanIV user name, the hostname or PC name would be displayed. Now that I use a Unix script instead of the BaanIV bshell6.1 program, I don't see it anymore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:44 AM
06-11-2004 07:44 AM
Re: FInd PC Name or IP Address
~Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:52 AM
06-11-2004 07:52 AM
Re: FInd PC Name or IP Address
rroth 25266 623 0 14:29:50 ? 0:00 /bin/ksh /baan/bse/bin/script6.2 -1 545 0 1
rroth 25275 25266 0 14:29:51 ? 0:06 /baan/bse/bin/bshell -1 545 0 1
rroth 25276 25275 0 14:29:53 ? 0:00 oracle8 (rroth:25275/PIPE) 25275 321 10 11
rroth 25278 1 0 14:29:53 ? 0:00 oraclebaanIV (DESCRIPTION=(LOCAL=YES)(SDU=8192)(TDU=8192)(AD