hp-ux配置snmp及启停

启动关闭
/sbin/init.d/SnmpMaster start
/sbin/init.d/SnmpMib2 start
/sbin/init.d/SnmpMaster stop


修改配置文件
/etc/snmpd.conf

 

附录:
/etc/snmpd.conf =>Configurationfile of NNM
/etc/snmpd =>This script starts up the SNMP Master Agent and all subAgents
who have been configured in /sbin/SnmpAgtStart.d
/etc/rc.config.d/SnmpMaster // Startup config for Master Agent
/etc/rc.config.d/SnmpHpunix // Startup config for HpUnix subAgen
libSaMib2.sl // MIB2 subAgent
libSaHpunix.sl // HpUnix subAgent
/usr/sbin/subagt_ld // SharedLib SubAgent loader
/usr/sbin/subagt_unld // SharedLib SubAgent unloader
snmpd(1M) // Manual startup script
snmpd.conf(4) // SNMP configuration

 

如果管理员不想自动启动SNMP服务,可以用vi编辑器修改如下文件:

/etc/rc.config.d/SnmpMaster

SNMP_MASTER_START=1
改为:
SNMP_MASTER_START=0

/etc/rc.config.d/SnmpHpunix

SNMP_HPUNIX_START=1
改为:
SNMP_HPUNIX_START=0


/etc/rc.config.d/SnmpMib2

SNMP_MIB2_START=1
改为:
SNMP_MIB2_START=0


想获得更多信息,请查看手册
# man snmpd

你可能感兴趣的:(配置管理,UP,HP)