Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Marko
New Contributor

Restart SNMP service

Hi all,

 

Is there a way of restarting the snmp service for bandwidth whiteout restarting the fw 

3 REPLIES 3
CapnJoe
New Contributor

To test the SNMPD (SNMP Daemon) the following CLI commands are useful:

To get to the SNMP Diag menu (non-VDOM):

[ol]
  • diag test application snmpd 44[/ol]

    The following menu will display:

    SNMP Daemon Test Usage 1: display daemon pid 2: display snmp statistics 3: clear snmp statistics 4: generate test trap (oid: 999) 5: generate deploy traps 99: restart daemon

     

    To Restart the Daemon type:

    diag test application snmpd 99

     

    For VDOMs:    config global    diagnose sys top - find PID of snmpd    diagnose sys kill 11 <pid>

  • emnoc
    Esteemed Contributor III

    FWIW

     

    sometime the diag sys top doesn't show the proc id,  so a sure way is to query the linux /var/run directory

     

    e.g

    FGT110C (global) # fnsysctl ls /var/run/snmpd.pid /var/run/snmpd.pid

    FGT110C (global) # fnsysctl cat /var/run/snmpd.pid 123

     

    then kill the  proc using diag sys  kill or fnsysctl kill -9 <pid>

     

     

    Just re cat the file to ensure you have a new pid.

     

    http://socpuppet.blogspot...on-or-any-daemons.html

    PCNSE 

    NSE 

    StrongSwan  

    PCNSE NSE StrongSwan
    Marko
    New Contributor

    Tried that and gave me a new PID, but no response in the snmp

    Labels
    Top Kudoed Authors