NHttp Bidirectional commands on the SNMP engine

The following bidirectional commands operate on the SNMP engine:

  • print_engines
  • get_engine_info
  • update_engine
  • set_engine_correction

print_engines command:

$OMNIHOME/bin/nco_http -uri http://:/probe/common -datatype application/json -data '{"eventfactory": [{"snmp_action":"print_engines", "file_path":""}]}' -method post

snmp_action: print_engines

Mandatory parameter:

$file_path

get_engine_info command:

$OMNIHOME/bin/nco_http -uri http://:/probe/common -datatype application/json -data '{"eventfactory": [{"snmp_action":"get_engine_info", "engine_id":"<engine_id>"}]}' -method post

snmp_action: get_engine_info

Mandatory parameter:

$engine_id

update_engine command:

$OMNIHOME/bin/nco_http -uri http://:/probe/common -datatype application/json -data '{"eventfactory": [{"snmp_action":"update_engine", "engine_id":"<engine_id>", "engine_boot":"","engine_time":"", "$engine_host":"", "send_probewatch":""}]}' -method post

snmp_action: update_engine

Mandatory parameter:

$engine_id

Optional parameters (at least one must be avaialble):

$engine_boot

$engine_time

$engine_host

$send_probewatch: 0 - disable; 1 - enable ProbeWatch on successful update_engine

set_engine_correction command:

$OMNIHOME/bin/nco_http -uri http://:/probe/common -datatype application/json -data '{"eventfactory": [{"snmp_action":"set_engine_correction", "engine_err":"<err_string>", "engine_info":"<info_string>", "alert_id":"<aler_id>"}]}' -method post

snmp_action: set_engine_correction

Mandatory parameters:

$engine_err

$engine_info

$alert_id

Note: set_engine_correction is for the engine update automation, it is issued from the ObjectServer trigger.