1832350 Members
2588 Online
110041 Solutions
New Discussion

Re: SNMP!

 
Robert DJ
Frequent Advisor

SNMP!

Hai,

The SNMP protocol has to be deativated permanently.Is it SNMP Vulnerable for use, if so why?.What might happen if disabled.

One more ? In a shell script can we comment
with any character for any line in a file.
If possible? pls let me know.

Thank you in advance.

Regards,
Robert
Robert DJ
4 REPLIES 4
Ravi_8
Honored Contributor

Re: SNMP!

Hi, Robert

Yes SNMP gives a chance to hackers,so in all CMM level organization systems SNMP will be disabled.
to do this
#cd /etc/rc.config.d

you can see 4 Snmp file , open each file and set SNMP_xxxxx_START flag to 0.

after a reboot SNMP will be permanently disabled.

In any shell script to comment any line, begin that line with #
never give up
Robert DJ
Frequent Advisor

Re: SNMP!

Hai Ravi,

The SNMP Prob is sorted out.....
Thanks a ton.

But I have probs in commenting from a shell script.

Eg:-
The contents of the file test.txt is,
start=1
reboot=2
this is a test
start_srv_bac=0

I want to change the start_srv_bac value from 0 to 1 in shell script

As a result, it should b like this,

start=1
reboot=2
this is a test
start_srv_bac=1

The value of start_srv_bac is changed to 1

My Question is how do you give it using a shell script.
Robert DJ
Robert DJ
Frequent Advisor

Re: SNMP!

Hai Ravi,

The SNMP Prob is sorted out.....
Thanks a ton.

But I have probs in commenting from a shell script.

Eg:-
The contents of the file test.txt is,
start=1
reboot=2
this is a test
start_srv_bac=0

I want to change the start_srv_bac value from 0 to 1 in shell script

As a result, it should b like this,

start=1
reboot=2
this is a test
start_srv_bac=1

The value of start_srv_bac is changed to 1

My Question is how do you give it using a shell script.

Thanks in Advance.

Regards,
Robert.
Robert DJ