OPENNMS how to test snmp port ok
# ssh -p 8101 admin@localhost
Password authentication
Password:
____ _ _ __ __ _____
/ __ \ | \ | | \/ |/ ____|
| | | |_ __ ___ _ __ | \| | \ / | (___
| | | | '_ \ / _ \ '_ \| . ` | |\/| |\___ \
| |__| | |_) | __/ | | | |\ | | | |____) |
\____/| .__/ \___|_| |_|_| \_|_| |_|_____/
| |
|_|
OpenNMS (21.0.3) on Apache Karaf (4.1.2)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' to exit this console.
admin@opennms()> poll org.opennms.netmgt.poller.monitors.SnmpMonitor 192.168.70.10
...
Service is Down on 192.168.70.10 using org.opennms.netmgt.poller.monitors.SnmpMonitor
Reason: SNMP poll failed, addr=192.168.70.10 oid=.1.3.6.1.2.1.1.2.0
admin@opennms()> poll org.opennms.netmgt.poller.monitors.SnmpMonitor 192.168.70.10
Service is Up on 192.168.70.10 using org.opennms.netmgt.poller.monitors.SnmpMonitor:
response-time: 0.9282
admin@opennms()> poll org.opennms.netmgt.poller.monitors.SnmpMonitor 192.168.70.14
Service is Up on 192.168.70.14 using org.opennms.netmgt.poller.monitors.SnmpMonitor:
response-time: 1.1582
admin@opennms()> poll org.opennms.netmgt.poller.monitors.SnmpMonitor 192.168.70.15
Service is Up on 192.168.70.15 using org.opennms.netmgt.poller.monitors.SnmpMonitor:
response-time: 1.3335
admin@opennms()> poll org.opennms.netmgt.poller.monitors.SnmpMonitor 192.168.70.15
Service is Up on 192.168.70.15 using org.opennms.netmgt.poller.monitors.SnmpMonitor:
response-time: 1.0122
admin@opennms()> Connection to localhost closed by remote host.
Connection to localhost closed.
# Connection closing...Socket close.
No comments:
Post a Comment