Linux command
snmptest 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start interactive SNMP session
snmptest -v [2c] -c [public] [host]
Test with SNMPv3
snmptest -v [3] -u [user] -l authPriv -a SHA -A [authpass] [host]
说明
snmptest provides an interactive SNMP session for testing and debugging. Send arbitrary SNMP requests interactively. Part of Net-SNMP suite for development and troubleshooting.
参数
- -v _version_
- SNMP version (1, 2c, 3).
- -c _community_
- Community string.
- -u _user_
- SNMPv3 username.
- -l _level_
- Security level.
FAQ
What is the snmptest command used for?
snmptest provides an interactive SNMP session for testing and debugging. Send arbitrary SNMP requests interactively. Part of Net-SNMP suite for development and troubleshooting.
How do I run a basic snmptest example?
Run `snmptest -v [2c] -c [public] [host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v _version_ do in snmptest?
SNMP version (1, 2c, 3).