First page Back Continue Last page Overview Graphics
Demo Of Net-SNMP Commands
snmpconf
(Daemon, not command:) snmpd
(Daemon, not command:) snmptrapd
- no rc script!
- Can log to via the syslog, or to a file, including STERR and STOUT.
- Customizable log format.
snmpcmd
snmpstatus -v2c -c public localhost
Notes:
VI. SNMP commands
A. snmpconf
i. If one is going to run an agent and knows little about SNMP, this is a good command to start with. It walks a new administrator setting up:
a) the agent configutation file, snmpd.conf
b) the configuration file for the daemon that receives traps, snmptrapd.conf
c) a “common options” file for SNMP commands, snmp.conf.
ii. When setting up the snmpd.conf file, it will allow one to set
a) access controls (communities names and OID access)
b) what to monitor on the system,
c) where to send traps.
B. snmpd
i. This is a daemon, not a command.
ii. This is the agent software that should be configured to start up automatically to answer queries and send traps to your network mangement system for this host.
C. snmptrapd
i. This is a daemon, not a command.
ii. This is the software that listens for traps sent by agents.
iii. In the distributions I tried, their packages did not include an rc script. Thus, it requires a little extra work to use this.
iv. Can log via the syslog, or to a file, including STERR and STOUT.
v. One can customize the log format, if that will help you integrate it with one's other management systems.
D. snmpcmd
i. So many of the SNMP commands have similar options, the Net-SNMP project has put their description under a single man page. “man snmpcmd” will get you that description.
E. snmpstatus -v2c -c public localhost
i. Outputs whether agent is up and reports some standard information about it.