11-08-2008
how can I get network services
Hi
Is there a cmd in hpux 11 to get the network services
the network services must display "Listen" like command netstat -an |grep Listen and display the process that is running on a port in HP-Unix at the same time
my request can not use lsof -i command,not to install any extral software
only use basic hp ux command
can I do it!!
thank you
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
While installing a firewall, I was pinging the interface from SCO 5.0.6 Openserver box, while no response, I hit "DEL" to cancel, but no cancel. Then all of a sudden I get BOO-KOO traffic lights on HUB and Switch.... Then a kernel trap error. System froze... Proceeded with a cold boot. Now I have... (8 Replies)
Discussion started by: nashvillek5
8 Replies
2. IP Networking
Solaris v5.6
how do you stop and start the network services? (4 Replies)
Discussion started by: Westy564
4 Replies
3. UNIX for Dummies Questions & Answers
OK I am a complete newbie to Unix. We have a Sunfire V890 running SUNOS Release 5.9. The Operating Environment is Solaris 9. I have been tasked with determining whether or not specific network and solaris services are enabled or disabled. If the services are enabled I need to disable them. I'm... (12 Replies)
Discussion started by: coachgt1
12 Replies
4. IP Networking
i have installd oracle 10 on Solaris 10 now i want to access this database from remote machine.
-bash-3.00$ tnsping 192.168.92.49
TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 17-DEC-2010 21:06:51
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used... (0 Replies)
Discussion started by: akhaliq22
0 Replies
5. Red Hat
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies
6. Shell Programming and Scripting
Hi,
I just started working on a script. After my research, i found a command which can help me:
AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2.
So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies
7. Shell Programming and Scripting
Hi
I want to write a script for netflow service
because my service doesnt send any packet to netflow walker (server).
Although the service is started but it does not send any packet to server until i restart the service
I want to write a script in order to restart the service... (7 Replies)
Discussion started by: mohsen1366
7 Replies
8. Debian
Hello,
I would like to do follow steps.
Set a static IP-Adress on eth0 (For Testing)
Set DHCP on eth0
All steps should be done without a single reboot.
/etc/network/interfaces
iface eth0 inet static
address 192.0.2.7/24
gateway 192.0.2.254How do i perform... (3 Replies)
Discussion started by: int3g3r
3 Replies
LEARN ABOUT REDHAT
getservbyname
GETSERVENT(3) Linux Programmer's Manual GETSERVENT(3)
NAME
getservent, getservbyname, getservbyport, setservent, endservent - get service entry
SYNOPSIS
#include <netdb.h>
struct servent *getservent(void);
struct servent *getservbyname(const char *name, const char *proto);
struct servent *getservbyport(int port, const char *proto);
void setservent(int stayopen);
void endservent(void);
DESCRIPTION
The getservent() function reads the next line from the file /etc/services and returns a structure servent containing the broken out fields
from the line. The /etc/services file is opened if necessary.
The getservbyname() function returns a servent structure for the line from /etc/services that matches the service name using protocol
proto. If proto is NULL, any protocol will be matched.
The getservbyport() function returns a servent structure for the line that matches the port port given in network byte order using protocol
proto. If proto is NULL, any protocol will be matched.
The setservent() function opens and rewinds the /etc/services file. If stayopen is true (1), then the file will not be closed between
calls to getservbyname() and getservbyport().
The endservent() function closes /etc/services.
The servent structure is defined in <netdb.h> as follows:
struct servent {
char *s_name; /* official service name */
char **s_aliases; /* alias list */
int s_port; /* port number */
char *s_proto; /* protocol to use */
}
The members of the servent structure are:
s_name The official name of the service.
s_aliases
A zero terminated list of alternative names for the service.
s_port The port number for the service given in network byte order.
s_proto
The name of the protocol to use with this service.
RETURN VALUE
The getservent(), getservbyname() and getservbyport() functions return the servent structure, or a NULL pointer if an error occurs or the
end of the file is reached.
FILES
/etc/services
services database file
CONFORMING TO
BSD 4.3
SEE ALSO
getprotoent(3), getnetent(3), services(5)
BSD
2001-07-25 GETSERVENT(3)