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

Graceful shut down for fortinet

Hi, a customer of mine looking for power backup solution where in case of power outage the servers and network equipment goes down by setting up certain threshold. So we zero in on APC with snmp card where server can be shut down gracefully.But what about other network equipment like fortigate.Can this be done or not? Any input on this. Reg, Sushil
7 REPLIES 7
g3rman
New Contributor

SNMP on the Fortinet is read-only (as it should be for any firewall :). The only way would be a command line script.
A Real World Fortinet Guide Configuration Examples & Frequently Asked Questions http://firewallguru.blogspot.com
A Real World Fortinet Guide Configuration Examples & Frequently Asked Questions http://firewallguru.blogspot.com
emnoc
Esteemed Contributor III

Do you really need to gracefully shutdown the fortigate down? We aren' t really talking about a open file-system thats needs to be uumounted or closed.

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
rwpatterson
Valued Contributor III

Maybe FAZs and HDD models...

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
sushil
New Contributor

Emnoc will that not be a problem if it goes down unexpectedlly?It is 80C and don' t have hdd. G3man..Can you suggest me a script.Say if battery backup of UPS is about to exhaust then the FG shuts down automatically. Reg, Sushil
emnoc
Esteemed Contributor III

I don' t, I have only one HD model and so far nothing been broken from not shutting it down. I maintain about4 FWF60B thru out some SMB operations and they almost never been shutdown. Gracefull would be the perferred means for shutting it off, but it so far has not made any issues for me.

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Not applicable

Something like this should do the trick
 #!/usr/bin/expect -f
 set timeout 60
 spawn ssh admin@1.1.1.1
 expect “password: $”
 set send_slow {1 0.05}
 send -s “password\r”
 send_user “password\r”
 send -s " execute shutdown\n" 
 send -s " y\n" 
 interact
 
sushil
New Contributor

Will it respond to battery threshold set using snmp card in ups and execute shutdown?
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors