can't save the file : snmpd.conf

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

can't save the file : snmpd.conf

Post by slimix00 »

I configured the snmpd.conf file

and to save it in the editor vi

I sould type :wq

the problem is that it considered it as a text not as a command

???????
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: can't save the file : snmpd.conf

Post by nscott »

Ah, the rush and exhilaration of learning vi.

Keep in mind in vi, you have to be insert mode to type text. To get out of insert mode press the Esc key. Then type

:wq

If this doesn't work, check the bottom of the screen for an error message. Does it say permission denied? Write to a read-only file? To let vi know you're serious you can always put an ! at the end like so:

:wq!

Here is a vi cheat sheet: http://www.lagmonster.org/docs/vi.html
Nicholas Scott
Former Nagios employee
Locked