- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disabling Snmp
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
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
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
тАО02-16-2004 08:11 AM
тАО02-16-2004 08:11 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2004 08:41 AM
тАО02-16-2004 08:41 AM
SolutionThe best way is to disable the startup and kill scripts and make the script non-executable.
Dont forget to comment it out of /etc/servcies to free up those ports if you need to lock them down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2004 09:30 AM
тАО02-16-2004 09:30 AM
Re: Disabling Snmp
To turn off any start/stop service in /sbin/init.d, use the corresponding configuration script in /etc/rc.config.d. Most (but not all) will have a 1:1 naming convention. For instance, ems has the same name in both directories. Alas, several scripts use a 'combination' config file such as netconf or netdaemons. However, for SNMP, the choice is easy. Just do this:
for MYSCRIPT in /sbin/init.d/Snmp*
do
$MYSCRIPT stop
done
vi /etc/rc.config.d/Snmp*
and in vi, type G to go to the end of the file, set =1 to =0, then save the file and type :n to go to the next file and repeat until done. (or just edit each Snmp file in /etc/rc.config.d one at a time). Now you've stopped all Snmp services (not a bad idea at all) and disabled these services from starting at the next reboot.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2004 09:33 AM
тАО02-16-2004 09:33 AM
Re: Disabling Snmp
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 07:10 PM
тАО02-19-2004 07:10 PM
Re: Disabling Snmp
subagent.
The main issue with SnmpFddi4 startup script
is that it doesn't have a corresponding
configuration file in /etc/rc.config.d/
directory. As Todd has mentioned, config
files for subagents(in etc/rc.config.d/
directory) doesn't seem to be mandatory.
I understand that absence of FDDI's
configuration file in etc/rc.config.d/
directory is an usability issue and doesn't
provide a proper uniform mechanism to disable
subagent's start.
FDDI technology being legacy is getting
obsoleted during 11.31 and as you are already
aware of the workarounds available for this
issue. Also, as no customer has ever
complained about this, I think the ROI is not
worth the effort required to patch this
issue. Please let me know your opinion
about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2004 12:28 AM
тАО02-20-2004 12:28 AM
Re: Disabling Snmp
The reality is that without a config script, you can have a true hodge-podge (technical term) of solutions (chmod -x or rename the script or remove the script, etc) all of which (because they are in /sbin/...) are subject to patch changes. SNMP is the subject of many security concerns so it should be easily configurable. I don't want a disabled service to sneak back in after patching. True, FDDI is going away but the code will exist (11.00, 11.11) for many years. If an swremove will remove FDDI and the start/stop script, then that would be a good alternative.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 02:36 AM
тАО06-04-2004 02:36 AM
Re: Disabling Snmp
I now see Snmp* in /etc/rc.config.d/ that I didnt see before... maybe I just missed them.
Three of the dates are older "Pre-Install" dates of my host so I dont know when they might have been installed unless I go back and check my patch install history...
So I can also now disable my own snmp and lock down that port.
I will have to check and post back again.
NO points here please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 03:50 AM
тАО06-04-2004 03:50 AM
Re: Disabling Snmp
SnmpHpunix
SnmpMaster
SnmpMib2
SnmpTrpDst
Unfortunately, none control /sbin/init.d/SnmpFddi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 04:00 AM
тАО06-04-2004 04:00 AM
Re: Disabling Snmp
I found this method of disabling SNMP:
cd /sbin/rc2.d
for file in S565OspfMib S941opcagt S570SnmpFddi
do mv -f $file .NO$file
done
ch_rc -a -p SNMP_HPUNIX_START=0 /etc/rc.config.d/SnmpHpunix
ch_rc -a -p SNMP_MASTER_START=0 /etc/rc.config.d/SnmpMaster
ch_rc -a -p SNMP_MIB2_START=0 /etc/rc.config.d/SnmpMib2
ch_rc -a -p SNMP_TRAPDEST_START=0 /etc/rc.config.d/SnmpTrpDst
Elena