- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restart network services
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-18-2007 01:50 AM
тАО07-18-2007 01:50 AM
restart network services
plz tell how can i restart all network services in one command in HP-UX.
Thnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 02:07 AM
тАО07-18-2007 02:07 AM
Re: restart network services
shutdown
reboot
And restart the entire system.
Otherwise, there is no single command to do EVERYTHING.
You can restart the inetd daemon with /sbin/init.d/inetd. NFS services have 3 different scripts in /sbin/init.d. You also have sendmail, syslog, and ssh that have their own scripts there as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 02:40 AM
тАО07-18-2007 02:40 AM
Re: restart network services
You could transition from your current run-level (most likely 3), to 1, and back again via the 'init' command. Of course, doing so may lead to unwanted side-effects.
As Patrick suggests, the safest method is to reboot.
Alternatively, here's a list of init scripts containing "net":
# grep -l net /sbin/init.d/*
/sbin/init.d/SnmpHpunix
/sbin/init.d/hpbtlan
/sbin/init.d/hpether
/sbin/init.d/hpgelan
/sbin/init.d/hpiether
/sbin/init.d/hpigelan
/sbin/init.d/hpsmh
/sbin/init.d/inetd
/sbin/init.d/inetsvcs
/sbin/init.d/net
/sbin/init.d/net.init
/sbin/init.d/nettl
/sbin/init.d/nfs.client
/sbin/init.d/nfs.core
/sbin/init.d/nfs.server
/sbin/init.d/nis.client
/sbin/init.d/nis.server
/sbin/init.d/nisplus.client
/sbin/init.d/nisplus.server
/sbin/init.d/rarpd
/sbin/init.d/rdpd
/sbin/init.d/swagentd
/sbin/init.d/swconfig
/sbin/init.d/vxnm-vxnetd
/sbin/init.d/vxvm-iscsi
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 02:48 AM
тАО07-18-2007 02:48 AM
Re: restart network services
inetd -c
but if you want to stop the network and restart it again
then login to console and do
/sbin/init.d/net stop
/sbin/init.d/net start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 02:04 AM
тАО07-19-2007 02:04 AM
Re: restart network services
#/sbin/init.d/net stop (to stop services)
#netstat -rn (to verify)
#/sbin/init.d/net start (to start services)
-Srini